Skip to content

[Tech] Python - Bump line-profiler from 4.2.0 to 5.0.2 in /pipeline#4963

Open
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/pip/pipeline/line-profiler-5.0.2
Open

[Tech] Python - Bump line-profiler from 4.2.0 to 5.0.2 in /pipeline#4963
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/pip/pipeline/line-profiler-5.0.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 1, 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.

5.0.2

* 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:

    • LineProfiler.get_stats() neglected data from duplicate code objects (#348)
    • LineProfiler instances may stop receiving tracing events when multiple </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 dependabot Bot added dependencies Pull requests that update a dependency file tech. enhancement technical ehancement labels Apr 1, 2026
@tristanrobert
Copy link
Copy Markdown

tristanrobert commented Apr 1, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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 force-pushed the dependabot/pip/pipeline/line-profiler-5.0.2 branch from 17a78be to 822e921 Compare April 10, 2026 13:24
@sonarqubecloud
Copy link
Copy Markdown

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 tech. enhancement technical ehancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants