./sysutils/py-psutil, Cross-platform process and system utilities module for Python

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 7.0.0, Package name: py312-psutil-7.0.0, Maintainer: pkgsrc-users

util is a module providing an interface for retrieving information,
on all running processes and system utilization (CPU, memory, disks,
network, users) in a portable way by using Python, implementing
many functionalities offered by command line tools such as ps, top,
df, netstat, who, kill, uptime, free, lsof, ifconfig, nice, ionice,
iostat, iotop, pidof, tty, taskset, or pmap.

MESSAGE.NetBSD [+/-]

Required to run:
[devel/py-setuptools] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 485.354 KB

Version history: (Expand)


CVS history: (Expand)


   2025-03-04 07:03:04 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-psutil: updated to 7.0.0

7.0.0

2025-02-13

**Enhancements**

- 669_, [Windows]: `net_if_addrs()`_ also returns the ``broadcast`` address
  instead of ``None``.
- 2480_: Python 2.7 is no longer supported. Latest version supporting Python
  2.7 is psutil 6.1.X. Install it with: ``pip2 install psutil==6.1.*``.
- 2490_: removed long deprecated ``Process.memory_info_ex()`` method. It was
  deprecated in psutil 4.0.0, released 8 years ago. Substitute is
  ``Process.memory_full_info()``.

**Bug fixes**

- 2496_, [Linux]: Avoid segfault (a cPython bug) on ``Process.memory_maps()``
  for processes that use hundreds of GBs of memory.
- 2502_, [macOS]: `virtual_memory()`_ now relies on ``host_statistics64``
  instead of ``host_statistics``. This is the same approach used by ``vm_stat``
  CLI tool, and should grant more accurate results.

**Compatibility notes**

- 2480_: Python 2.7 is no longer supported.
- 2490_: removed long deprecated ``Process.memory_info_ex()`` method.
   2025-02-02 11:38:04 by Havard Eidnes | Files touched by this commit (28)
Log message:
lang/python and a number of python packages: re-do atomic64.mk issue.

Evidently, python 3.13 brought in the need to support 64-bit atomics.
This means that python extension packages built with C needs to
use mk/atomic64.mk to make -latomic available on the required 32-bit
ports.  Sadly, there is no reliable way to detect in the .mk files
whether the package is using C (or C++), so this change adds an
unconditional include of mk/atomic64.mk when the python version is
equal to or larger than 3.13 for packages using egg.mk or wheel.mk.

This undoes the individual package Makefile inclusions of mk/atomic64.mk
that I've added over the last few days.
   2025-01-19 18:01:11 by Havard Eidnes | Files touched by this commit (1)
Log message:
sysutils/py-psutil: use atomic64.mk to fix build on macppc w/python3.13.
   2024-12-24 18:55:29 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-psutil: updated to 6.1.1

6.1.1

**Enhancements**

- 2471_: use Vulture CLI tool to detect dead code.

**Bug fixes**

- 2418_, [Linux]: fix race condition in case /proc/PID/stat does not exist, but
  /proc/PID does, resulting in FileNotFoundError.
- 2470_, [Linux]: `users()`_ may return "localhost" instead of the \ 
actual IP
  address of the user logged in.
   2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862)
Log message:
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
   2024-10-26 09:43:38 by Nia Alarie | Files touched by this commit (1)
Log message:
py-psutil: Add PLIST.Darwin
   2024-10-26 09:42:27 by Nia Alarie | Files touched by this commit (4)
Log message:
py-psutil: Introduce per-OS PLIST
   2024-10-22 10:14:49 by Thomas Klausner | Files touched by this commit (4) | Package updated
Log message:
py-psutil: update to 6.1.0.

6.1.0
=====

2024-10-17

**Enhancements**

- 2366_, [Windows]: drastically speedup `process_iter()`_. We now determine
  process unique identity by using process "fast" create time method. This
  will considerably speedup those apps which use `process_iter()`_ only once,
  e.g. to look for a process with a certain name.
- 2446_: use pytest instead of unittest.
- 2448_: add ``make install-sysdeps`` target to install the necessary system
  dependencies (python-dev, gcc, etc.) on all supported UNIX flavors.
- 2449_: add ``make install-pydeps-test`` and ``make install-pydeps-dev``
  targets. They can be used to install dependencies meant for running tests and
  for local development. They can also be installed via ``pip install .[test]``
  and ``pip install .[dev]``.
- 2456_: allow to run tests via ``python3 -m psutil.tests`` even if ``pytest``
  module is not installed. This is useful for production environments that
  don't have pytest installed, but still want to be able to test psutil
  installation.

**Bug fixes**

- 2427_: psutil (segfault) on import in the free-threaded (no GIL) version of
  Python 3.13.  (patch by Sam Gross)
- 2455_, [Linux]: ``IndexError`` may occur when reading /proc/pid/stat and
  field 40 (blkio_ticks) is missing.
- 2457_, [AIX]: significantly improve the speed of `Process.open_files()`_ for
  some edge cases.
- 2460_, [OpenBSD]: `Process.num_fds()`_ and `Process.open_files()`_ may fail
  with `NoSuchProcess`_ for PID 0. Instead, we now return "null" \ 
values (0 and
  [] respectively).