Up to [cvs.NetBSD.org] / pkgsrc / sysutils / py-psutil
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-psutil: updated to 7.1.3 7.1.3 **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. 7.1.2 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.
py-psutil: Introduce per-OS PLIST