Skip to content

Bump line-profiler from 4.2.0 to 5.0.1#294

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/pip/line-profiler-5.0.1
Open

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

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 9, 2026

Bumps line-profiler from 4.2.0 to 5.0.1.

Release notes

Sourced from line-profiler's releases.

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

  • New TOML configuration files: control defaults via [tool.line_profiler] in pyproject.toml. See docs for an example.
  • Much better auto-profiling: use -p <modname> or prof-mod in config to profile top-level callables
  • New CLI modes: run modules with -m, inline scripts with -c, and profile from stdin with -
  • Switched to sys.monitoring on Python 3.12+ (with fallback support)
  • Improved support for profiling class methods, properties, async generators, and functools.partial
  • Output now shows qualified names (Python ≥ 3.11)
  • Multiple profiler instances can now be used at the same time
  • Many other fixes and improvements

CHANGELOG

... (truncated)

Changelog

Sourced from line-profiler's changelog.

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

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:

    • LineProfiler.get_stats() neglected data from duplicate code objects (#348)
    • LineProfiler instances may stop receiving tracing events when multiple instances were used (#350) </tr></table>

... (truncated)

Commits
  • 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)
  • 630abb0 Codify win arm tests (#407)
  • b66c42c FIX: DeprecationWarning emitted by how line_profiler.toml_config uses `im...
  • 1219bc0 removed capsys.disabled() which caused spurious output (#401)
  • b60b934 Prep for release
  • 14ae1f0 FIX: building on Windows-ARM64 (#391)
  • 1c086a4 FIX: check import target names (#397)
  • 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.1.
- [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.1)

---
updated-dependencies:
- dependency-name: line-profiler
  dependency-version: 5.0.1
  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 Feb 9, 2026
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.

0 participants