Skip to content

Update dependency psutil to v7.2.2#576

Open
renovate[bot] wants to merge 1 commit intodevelopfrom
renovate/psutil
Open

Update dependency psutil to v7.2.2#576
renovate[bot] wants to merge 1 commit intodevelopfrom
renovate/psutil

Conversation

@renovate
Copy link

@renovate renovate bot commented Feb 23, 2026

This PR contains the following updates:

Package Type Update Change Age Confidence
psutil (source) minor >=5.8.0,<=7.1.0>=7.2.2,<=7.2.2 age confidence
psutil project.dependencies minor >=5.8.0,<=7.1.0>=5.8.0,<=7.2.2 age confidence

Release Notes

giampaolo/psutil (psutil)

v7.2.2

Compare Source

=====

2026-01-28

Enhancements

  • 2705_: [Linux]: Process.wait()_ now uses pidfd_open() + poll() for
    waiting, resulting in no busy loop and faster response times. Requires
    Linux >= 5.3 and Python >= 3.9. Falls back to traditional polling if
    unavailable.
  • 2705_: [macOS], [BSD]: Process.wait()_ now uses kqueue() for waiting,
    resulting in no busy loop and faster response times.

Bug fixes

  • 2701_, [macOS]: fix compilation error on macOS < 10.7. (patch by Sergey
    Fedorov)
  • 2707_, [macOS]: fix potential memory leaks in error paths of
    Process.memory_full_info() and Process.threads().
  • 2708_, [macOS]: Process.cmdline()_ and Process.environ()_ may fail with ``OSError: [Errno 0] Undefined error`` (from ``sysctl(KERN_PROCARGS2)``). They now raise AccessDenied`_ instead.

v7.2.1

Compare Source

=====

2025-12-29

Bug fixes

  • 2699_, [FreeBSD], [NetBSD]: heap_info()_ does not detect small allocations
    (<= 1K). In order to fix that, we now flush internal jemalloc cache before
    fetching the metrics.

v7.2.0

Compare Source

=====

2025-12-23

Enhancements

  • 1275_: new heap_info()_ and heap_trim()_ functions, providing direct
    access to the platform's native C heap allocator (glibc, mimalloc,
    libmalloc). Useful to create tools to detect memory leaks.
  • 2403_, [Linux]: publish wheels for Linux musl.
  • 2680_: unit tests are no longer installed / part of the distribution. They
    now live under tests/ instead of psutil/tests.

Bug fixes

  • 2684_, [FreeBSD], [critical]: compilation fails on FreeBSD 14 due to missing
    include.
  • 2691_, [Windows]: fix memory leak in net_if_stats()_ due to missing
    Py_CLEAR.

Compatibility notes

  • 2680_: import psutil.tests no longer works (but it was never documented to
    begin with).

v7.1.3

Compare Source

=====

2025-11-02

Enhancements

  • 2667_: enforce clang-format on all C and header files. It is now the
    mandatory formatting style for all C sources.
  • 2672_, [macOS], [BSD]: increase the chances to recognize zombie processes and
    raise the appropriate exception (ZombieProcess_).
  • 2676_, 2678_: replace unsafe sprintf / snprintf / sprintf_s calls with
    str_format(). Replace strlcat / strlcpy with safe str_copy /
    str_append. This unifies string handling across platforms and reduces
    unsafe usage of standard string functions, improving robustness.

Bug fixes

  • 2674_, [Windows]: disk_usage()_ could truncate values on 32-bit platforms,
    potentially reporting incorrect total/free/used space for drives larger than
    4GB.
  • 2675_, [macOS]: Process.status()_ incorrectly returns "running" for 99%
    of the processes.
  • 2677_, [Windows]: fix MAC address string construction in net_if_addrs()_.
    Previously, the MAC address buffer was incorrectly updated using a fixed
    increment and sprintf_s, which could overflow or misformat the
    string if the MAC length or formatting changed. Also, the final '\n' was
    inserted unnecessarily.
  • 2679_, [OpenBSD], [NetBSD], [critical]: can't build due to C syntax error.

v7.1.2

Compare Source

=====

2025-10-25

Enhancements

  • 2657_: stop publishing prebuilt Linux and Windows wheels for 32-bit Python.
    32-bit CPython is still supported, but psutil must now be built from source.
    2565_: produce wheels for free-thread cPython 3.13 and 3.14 (patch by
    Lysandros Nikolaou)

Bug fixes

  • 2650_, [macOS]: Process.cmdline()_ and Process.environ()_ may incorrectly
    raise NoSuchProcess_ instead of ZombieProcess_.
  • 2658_, [macOS]: double free() in Process.environ()_ when it fails
    internally. This posed a risk of segfault.
  • 2662_, [macOS]: massive C code cleanup to guard against possible segfaults
    which were (not so) sporadically spotted on CI.

Compatibility notes

  • 2657_: stop publishing prebuilt Linux and Windows wheels for 32-bit Python.

v7.1.1

Compare Source

=====

2025-10-19

Enhancements

  • 2645_, [SunOS]: dropped support for SunOS 10.
  • 2646_, [SunOS]: add CI test runner for SunOS.

Bug fixes

  • 2641_, [SunOS]: cannot compile psutil from sources due to missing C include.
  • 2357_, [SunOS]: Process.cmdline()_ does not handle spaces properly. (patch
    by Ben Raz)

Compatibility notes

  • 2645_: SunOS 10 is no longer supported.

Configuration

📅 Schedule: Branch creation - "after 10pm on tuesday,before 6am on wednesday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants