Skip to content

Bump line-profiler from 4.2.0 to 5.0.2#296

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/pip/line-profiler-5.0.2
Closed

Bump line-profiler from 4.2.0 to 5.0.2#296
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/pip/line-profiler-5.0.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 2, 2026

Bumps line-profiler from 4.2.0 to 5.0.2.

Release notes

Sourced from line-profiler's releases.

Version 5.0.2

What's Changed

Full Changelog: pyutils/line_profiler@v5.0.1...refs/heads/release

Version 5.0.1

Mostly bug fixes, 3.14 support, and minor UX tweaks.

What's Changed

New Contributors

Full Changelog: pyutils/line_profiler@v5.0.0...refs/heads/release

Version 5.0.0

This is a major update to the line-profiler package. All APIs should still be backwards compatible with the 4.x branch, but we decided to bump the the new major version 5.x due to the number of new features and changes in the underlying C code. We do plan to introduce changes in defaults in the next 6.x release in an effort to streamline usage.

Big thanks to @​TTsangSC who put an enormous amount of work into this 🙏 .

Highlights

... (truncated)

Changelog

Sourced from line-profiler's changelog.

Changes

5.0.1

* ENH: improved type annotations and moved them inline

5.0.1

  • FIX: Prevented duplicate or inconsistent profiler output under Python 3.14 when multiprocessing is used.
  • ENH: Add %%lprun_all for more beginner-friendly profiling in IPython/Jupyter #383
  • FIX: mitigate speed regressions introduced in 5.0.0
  • ENH: Added capability to combine profiling data both programmatically (LineStats.__add__()) and via the CLI (python -m line_profiler) (#380, originally proposed in #219)
  • FIX: search function in online documentation
  • FIX: ref-count leaks #372
  • FIX: mitigate speed regressions introduced in 5.0.0 #376
  • FIX: Use import system to locate module file run by kernprof -m #389
  • FIX: Fixed build on Windows-ARM64 and now building wheels therefor in CI #391
  • FIX: Move away from older, (temporarily-)deprecated importlib.resources APIs in line_profiler.toml_config #406
  • CHANGE: remove default alphabetical sorting of profiled functions
  • FIX: Restored building and testing of Linux-ARM64 wheels #402

5.0.0

* FIX: win32 encoding issues
* ENH: Add support for ``sys.monitoring`` (Python >= 3.12)
* FIX: Fixed issue when calling ``kernprof`` with neither the ``-l`` nor ``-b`` flag; also refactored common methods to ``LineProfiler`` and ``ContextualProfile``
* FIX: Fixed auto-profiling of async function definitions [#330](https://github.com/pyutils/line_profiler/issues/330)
* ENH: Added CLI argument ``-m`` to ``kernprof`` for running a library module as a script; also made it possible for profiling targets to be supplied across multiple ``-p`` flags
* FIX: Fixed explicit profiling of class methods; added handling for profiling static, bound, and partial methods, ``functools.partial`` objects, (cached) properties, and async generator functions
* FIX: Fixed namespace bug when running ``kernprof -m`` on certain modules (e.g. ``calendar`` on Python 3.12+).
* FIX: Fixed ``@contextlib.contextmanager`` bug where the cleanup code (e.g. restoration of ``sys`` attributes) is not run if exceptions occurred inside the context
* ENH: Added CLI arguments ``-c`` to ``kernprof`` for (auto-)profiling module/package/inline-script execution instead of that of script files; passing ``'-'`` as the script-file name now also reads from and profiles ``stdin``
* ENH: In Python >=3.11, profiled objects are reported using their qualified name.
* ENH: Highlight final summary using rich if enabled
* ENH: Made it possible to use multiple profiler instances simultaneously
* ENH: various improvements related to auto-profiling:
  • kernprof -p target entities are now imported and profiled regardless of whether they are directly imported in the run script/module/code (old behavior restored by passing --no-preimports)
  • kernprof -v and the new -q now control the verbosity level instead of being a boolean, allowing diagnostic outputs or output suppression
  • On-import profiling is now more aggressive so that it doesn't miss entities like class methods and properties
  • LineProfiler can now be used as a class decorator
  • FIX: Fixed line tracing for Cython code; superseded use of the legacy tracing system with sys.monitoring
  • FIX: Fixed edge cases where: </tr></table>

... (truncated)

Commits
  • 8929fcd FIX: building Linux-ARM64 wheels (#402)
  • 0c769c1 Offending test now checking sys.version_info and switching behaviors (#421)
  • 8292b11 ruff format (#420)
  • 64c0841 Type fix base (#419)
  • 88590a0 Fix version consistency
  • f81fe08 [skip ci] Start branch for 5.0.2
  • 52f937b Prevent duplicate output in 3.14 (#415)
  • 3aa7504 Allow test_kernprof_sys_restoration to match python3.XX binaries (#410)
  • 2df0060 Fix build on Python 3.14 by isolating internal C headers and removing inline ...
  • 5eb4a00 Remove default alphabetical ordering of profiled functions in text output (#414)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [line-profiler](https://github.com/pyutils/line_profiler) from 4.2.0 to 5.0.2.
- [Release notes](https://github.com/pyutils/line_profiler/releases)
- [Changelog](https://github.com/pyutils/line_profiler/blob/main/CHANGELOG.rst)
- [Commits](pyutils/line_profiler@v4.2.0...v5.0.2)

---
updated-dependencies:
- dependency-name: line-profiler
  dependency-version: 5.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Mar 2, 2026
@BrianPugh BrianPugh closed this Mar 5, 2026
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Mar 5, 2026

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/pip/line-profiler-5.0.2 branch March 5, 2026 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant