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

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


Branch: CURRENT, Version: 5.9.0, Package name: py39-psutil-5.9.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: 467.111 KB

Version history: (Expand)


CVS history: (Expand)


   2022-01-10 18:05:28 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-psutil: updated to 5.9.0

5.9.0
=====

**Enhancements**

- 1851_, [Linux]: `cpu_freq()`_ is slow on systems with many CPUs. Read current
  frequency values for all CPUs from ``/proc/cpuinfo`` instead of opening many
  files in ``/sys`` fs.  (patch by marxin)
- 1992_: `NoSuchProcess`_ message now specifies if the PID has been reused.
- 1992_: error classes (`NoSuchProcess`_, `AccessDenied`_, etc.) now have a better
  formatted and separated ``__repr__`` and ``__str__`` implementations.
- 1996_, [BSD]: add support for MidnightBSD.  (patch by Saeed Rasooli)
- 1999_, [Linux]: `disk_partitions()`_: convert ``/dev/root`` device (an alias
  used on some Linux distros) to real root device path.
- 2005_: ``PSUTIL_DEBUG`` mode now prints file name and line number of the debug
  messages coming from C extension modules.
- 2042_: rewrite HISTORY.rst to use hyperlinks pointing to psutil API doc.

**Bug fixes**

- 1456_, [macOS], **[critical]**: `cpu_freq()`_ ``min`` and ``max`` are set to
  0 if can't be determined (instead of crashing).
- 1512_, [macOS]: sometimes `Process.connections()`_ will crash with
  ``EOPNOTSUPP`` for one connection; this is now ignored.
- 1598_, [Windows]: `disk_partitions()`_ only returns mountpoints on drives
  where it first finds one.
- 1874_, [SunOS]: swap output error due to incorrect range.
- 1892_, [macOS]: `cpu_freq()`_ broken on Apple M1.
- 1901_, [macOS]: different functions, especially `Process.open_files()`_ and
  `Process.connections()`_, could randomly raise `AccessDenied`_ because the
  internal buffer of ``proc_pidinfo(PROC_PIDLISTFDS)`` syscall was not big enough.
  We now dynamically increase the buffer size until it's big enough instead of
  giving up and raising `AccessDenied`_, which was a fallback to avoid crashing.
- 1904_, [Windows]: ``OpenProcess`` fails with ``ERROR_SUCCESS`` due to
  ``GetLastError()`` called after ``sprintf()``.  (patch by alxchk)
- 1913_, [Linux]: `wait_procs()`_ should catch ``subprocess.TimeoutExpired``
  exception.
- 1919_, [Linux]: `sensors_battery()`_ can raise ``TypeError`` on PureOS.
- 1921_, [Windows]: `swap_memory()`_ shows committed memory instead of swap.
- 1940_, [Linux]: psutil does not handle ``ENAMETOOLONG`` when accessing process
  file descriptors in procfs.  (patch by Nikita Radchenko)
- 1948_, **[critical]**: ``memoize_when_activated`` decorator is not thread-safe.
  (patch by Xuehai Pan)
- 1953_, [Windows], **[critical]**: `disk_partitions()`_ crashes due to
  insufficient buffer len. (patch by MaWe2019)
- 1965_, [Windows], **[critical]**: fix "Fatal Python error: deallocating \ 
None"
  when calling `users()`_ multiple times.
- 1980_, [Windows]: 32bit / WoW64 processes fails to read `Process.name()`_ longer
  than 128 characters resulting in `AccessDenied`_. This is now fixed.  (patch
  by PetrPospisil)
- 1991_, **[critical]**: `process_iter()`_ is not thread safe and can raise
  ``TypeError`` if invoked from multiple threads.
- 1956_, [macOS]: `Process.cpu_times()`_ reports incorrect timings on M1 machines.
  (patch by Olivier Dormond)
- 2023_, [Linux]: `cpu_freq()`_ return order is wrong on systems with more than
  9 CPUs.
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 13:20:30 by Nia Alarie | Files touched by this commit (630)
Log message:
sysutils: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes
   2021-10-07 16:58:44 by Nia Alarie | Files touched by this commit (630)
Log message:
sysutils: Remove SHA1 hashes for distfiles
   2021-01-16 09:05:31 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-psutil: updated to 5.8.0

5.8.0

Enhancements

1863: disk_partitions() exposes 2 extra fields: maxfile and maxpath, which are \ 
the maximum file name and path name length.
1872: [Windows] added support for PyPy 2.7.
1879: provide pre-compiled wheels for Linux and macOS (yey!).
1880: get rid of Travis and Cirrus CI services (they are no longer free). CI \ 
testing is now done by GitHub Actions on Linux, macOS and FreeBSD (yes). \ 
AppVeyor is still being used for Windows CI.

Bug fixes

1708: [Linux] get rid of sensors_temperatures() duplicates. (patch by Tim Schlueter).
1839: [Windows] always raise AccessDenied when failing to query 64 processes \ 
from 32 bit ones (NtWoW64 APIs).
1866: [Windows] process exe(), cmdline(), environ() may raise "invalid \ 
access to memory location" on Python 3.9.
1874: [Solaris] wrong swap output given when encrypted column is present.
1875: [Windows] process username() may raise ERROR_NONE_MAPPED if the SID has no \ 
corresponding account name. In this case AccessDenied is now raised.
1877: [Windows] OpenProcess may fail with ERROR_SUCCESS. Turn it into \ 
AccessDenied or NoSuchProcess depending on whether the PID is alive.
1886: [macOS] EIO error may be raised on cmdline() and environment(). Now it \ 
gets translated into AccessDenied.
1891: [macOS] get rid of deprecated getpagesize().
   2020-11-30 21:31:58 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-psutil: updated to 5.7.3

5.7.3
=====

2020-10-23

**Enhancements**

- 809_: [FreeBSD] add support for `Process.rlimit()`.
- 893_: [BSD] add support for `Process.environ()` (patch by Armin Gruner)
- 1830_: [UNIX] `net_if_stats()`'s `isup` also checks whether the NIC is
  running (meaning Wi-Fi or ethernet cable is connected).  (patch by Chris Burger)
- 1837_: [Linux] improved battery detection and charge "secsleft" \ 
calculation
  (patch by aristocratos)

**Bug fixes**

- 1620_: [Linux] physical cpu_count() result is incorrect on systems with more
  than one CPU socket.  (patch by Vincent A. Arcila)
- 1738_: [macOS] Process.exe() may raise FileNotFoundError if process is still
  alive but the exe file which launched it got deleted.
- 1791_: [macOS] fix missing include for getpagesize().
- 1823_: [Windows] Process.open_files() may cause a segfault due to a NULL
  pointer.
- 1838_: [Linux] sensors_battery(): if `percent` can be determined but not
  the remaining values, still return a result instead of None.
  (patch by aristocratos)
   2020-07-16 13:16:21 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-psutil: updated to 5.7.2

5.7.2
=====
Bug fixes
- wheels for 2.7 were inadvertently deleted.

5.7.1
=====
Enhancements
- 1729_: parallel tests on UNIX (make test-parallel). They're twice as fast!
- 1741_: "make build/install" is now run in parallel and it's about \ 
15% faster
  on UNIX.
- 1747_: `Process.wait()` on POSIX returns an enum, showing the negative signal
  which was used to terminate the process::
    >>> import psutil
    >>> p = psutil.Process(9891)
    >>> p.terminate()
    >>> p.wait()
    <Negsignal.SIGTERM: -15>
- 1747_: `Process.wait()` return value is cached so that the exit code can be
  retrieved on then next call.
- 1747_: Process provides more info about the process on str() and repr()
  (status and exit code)::
    >>> proc
    psutil.Process(pid=12739, name='python3', status='terminated',
                   exitcode=<Negsigs.SIGTERM: -15>, started='15:08:20')
- 1757_: memory leak tests are now stable.
- 1768_: [Windows] added support for Windows Nano Server.

Bug fixes
- 1726_: [Linux] cpu_freq() parsing should use spaces instead of tabs on ia64.
- 1760_: [Linux] Process.rlimit() does not handle long long type properly.
- 1766_: [macOS] NoSuchProcess may be raised instead of ZombieProcess.
- 1781_: fix signature of callback function for getloadavg().
   2020-04-19 12:04:54 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-psutil: updated to 5.7.0

5.7.0

Enhancements
* [SunOS] add partial support for old SunOS 5.10 Update 0 to 3.
* [Linux] sensors_temperatures() looks into an additional /sys/device/ directory \ 
for additional data.
* [Windows] dropped support for Windows XP and Windows Server 2003. Minimum \ 
supported Windows version now is Windows Vista.
* [FreeBSD] add CI testing/service for FreeBSD (Cirrus CI).
* [Windows] process exe() will succeed for all process PIDs (instead of raising \ 
AccessDenied).
* [Windows] net_connections() and Process.connections() are 10% faster.
* [PyPy] added CI / test integration for PyPy via Travis.
* [Windows] added support for PyPy on Windows.
* [Windows] boot_time(), Process.create_time() and users()'s login time now have \ 
1 micro second precision (before the precision was of 1 second).

Bug fixes
* [NetBSD] process cwd() may return ENOENT instead of NoSuchProcess.
* [Linux] Process.memory_maps() can raise KeyError.
* [SunOS] querying basic info for PID 0 results in FileNotFoundError.
* [FreeBSD] many Process methods may cause a segfault on FreeBSD 12.0 due to a \ 
backward incompatible change in a C type introduced in 12.0.
* [Windows] Process.memory_full_info() raises AccessDenied even for the current \ 
user and os.getpid().
* [Windows] Process.open_files() complete rewrite + check of errors.
* [Windows] process exe() may raise WinError 0.
* [Linux] disk_io_counters() does not take into account extra fields added to \ 
recent kernels.
* use the right C type when dealing with PIDs (int or long). Thus far (long) was \ 
almost always assumed, which is wrong on most platforms.
* [OpenBSD] Process connections(), num_fds() and threads() returned improper \ 
exception if process is gone.
* [SunOS] disk_partitions() may raise OSError.
* [Linux] disk_io_counters() may raise ValueError on systems not having \ 
/proc/diskstats.
* [Linux] could not compile on kernels <= 2.6.13 due to PSUTIL_HAVE_IOPRIO \ 
not being defined.