pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/py-psutil



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Oct 18 08:53:08 UTC 2023

Modified Files:
        pkgsrc/sysutils/py-psutil: Makefile distinfo
        pkgsrc/sysutils/py-psutil/patches: patch-setup.py
Removed Files:
        pkgsrc/sysutils/py-psutil/patches: patch-psutil_arch_netbsd_cpu.c

Log Message:
py-psutil: updated to 5.9.6

5.9.6
=====

2023-10-14

**Enhancements**

- 1703_: `cpu_percent()`_ and `cpu_times_percent()`_ are now thread safe,
  meaning they can be called from different threads and still return
  meaningful and independent results. Before, if (say) 10 threads called
  ``cpu_percent(interval=None)`` at the same time, only 1 thread out of 10
  would get the right result.
- 2266_: if `Process`_ class is passed a very high PID, raise `NoSuchProcess`_
  instead of OverflowError.  (patch by Xuehai Pan)
- 2246_: drop python 3.4 & 3.5 support.  (patch by Matthieu Darbois)
- 2290_: PID reuse is now pre-emptively checked for `Process.ppid()`_  and
  `Process.parents()`_.
- 2312_: use ``ruff`` Python linter instead of ``flake8 + isort``. It's an
  order of magnitude faster + it adds a ton of new code quality checks.

**Bug fixes**

- 2195_, [Linux]: no longer print exception at import time in case /proc/stat
  can't be read due to permission error. Redirect it to ``PSUTIL_DEBUG``
  instead.
- 2241_, [NetBSD]: can't compile On NetBSD 10.99.3/amd64.  (patch by Thomas
  Klausner)
- 2245_, [Windows]: fix var unbound error on possibly in `swap_memory()`_
  (patch by student_2333)
- 2268_: ``bytes2human()`` utility function was unable to properly represent
  negative values.
- 2252_, [Windows]: `disk_usage()`_ fails on Python 3.12+.  (patch by
  Matthieu Darbois)
- 2284_, [Linux]: `Process.memory_full_info()`_ may incorrectly raise
  `ZombieProcess`_ if it's determined via ``/proc/pid/smaps_rollup``. Instead
  we now fallback on reading ``/proc/pid/smaps``.
- 2287_, [OpenBSD], [NetBSD]: `Process.is_running()`_ erroneously return
  ``False`` for zombie processes, because creation time cannot be determined.
- 2288_, [Linux]: correctly raise `ZombieProcess`_ on `Process.exe()`_,
  `Process.cmdline()`_ and `Process.memory_maps()`_ instead of returning a
  "null" value.
- 2290_: differently from what stated in the doc, PID reuse is not
  pre-emptively checked for `Process.nice()`_ (set), `Process.ionice()`_,
  (set), `Process.cpu_affinity()`_ (set), `Process.rlimit()`_
  (set), `Process.parent()`_.
- 2308_, [OpenBSD]: `Process.threads()`_ always fail with AccessDenied (also as
  root).


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 pkgsrc/sysutils/py-psutil/Makefile
cvs rdiff -u -r1.52 -r1.53 pkgsrc/sysutils/py-psutil/distinfo
cvs rdiff -u -r1.2 -r0 \
    pkgsrc/sysutils/py-psutil/patches/patch-psutil_arch_netbsd_cpu.c
cvs rdiff -u -r1.7 -r1.8 pkgsrc/sysutils/py-psutil/patches/patch-setup.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/py-psutil/Makefile
diff -u pkgsrc/sysutils/py-psutil/Makefile:1.49 pkgsrc/sysutils/py-psutil/Makefile:1.50
--- pkgsrc/sysutils/py-psutil/Makefile:1.49     Tue Apr 18 07:37:42 2023
+++ pkgsrc/sysutils/py-psutil/Makefile  Wed Oct 18 08:53:08 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.49 2023/04/18 07:37:42 adam Exp $
+# $NetBSD: Makefile,v 1.50 2023/10/18 08:53:08 adam Exp $
 
-DISTNAME=      psutil-5.9.5
+DISTNAME=      psutil-5.9.6
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    sysutils python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/psutil/}

Index: pkgsrc/sysutils/py-psutil/distinfo
diff -u pkgsrc/sysutils/py-psutil/distinfo:1.52 pkgsrc/sysutils/py-psutil/distinfo:1.53
--- pkgsrc/sysutils/py-psutil/distinfo:1.52     Tue Apr 18 22:14:58 2023
+++ pkgsrc/sysutils/py-psutil/distinfo  Wed Oct 18 08:53:08 2023
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.52 2023/04/18 22:14:58 wiz Exp $
+$NetBSD: distinfo,v 1.53 2023/10/18 08:53:08 adam Exp $
 
-BLAKE2s (psutil-5.9.5.tar.gz) = a2f402ec0c2f10e61b90d7e4b77dc4d90ccd18cd69e7e691484e353455023b17
-SHA512 (psutil-5.9.5.tar.gz) = 2afe1bad5359aeac90378faaa609bab855dfcaa58519c939fdadb02e6e2c8157c77f961ac0f90d104626cef3429e1ea2f686e4dc4c9dccf975e3e73e9b08872c
-Size (psutil-5.9.5.tar.gz) = 493489 bytes
-SHA1 (patch-psutil_arch_netbsd_cpu.c) = 9c82cba4829ad591a80ee35d3c0abfe68a378bc8
-SHA1 (patch-setup.py) = d87bc025af52b52b5972fabf2cfeb00fd86e2413
+BLAKE2s (psutil-5.9.6.tar.gz) = 2ee4ab83d38b3d67d8a76f671e413d0ef9c8449cc7b6aef9abcf11527b32f1d5
+SHA512 (psutil-5.9.6.tar.gz) = 0c363bf998868e450f014d5c5ddc2448986cafcd21309571e067be1c4b49d0e78259a5388094cbf32af7bca12865c5f3692480737f0a5225bbcfb895a9bf81f6
+Size (psutil-5.9.6.tar.gz) = 496866 bytes
+SHA1 (patch-setup.py) = 39f72a759c3004cc25dd08cf34f34b7f35324ab2

Index: pkgsrc/sysutils/py-psutil/patches/patch-setup.py
diff -u pkgsrc/sysutils/py-psutil/patches/patch-setup.py:1.7 pkgsrc/sysutils/py-psutil/patches/patch-setup.py:1.8
--- pkgsrc/sysutils/py-psutil/patches/patch-setup.py:1.7        Tue Apr 18 07:37:42 2023
+++ pkgsrc/sysutils/py-psutil/patches/patch-setup.py    Wed Oct 18 08:53:08 2023
@@ -1,15 +1,15 @@
-$NetBSD: patch-setup.py,v 1.7 2023/04/18 07:37:42 adam Exp $
+$NetBSD: patch-setup.py,v 1.8 2023/10/18 08:53:08 adam Exp $
 
 Enable limited API on all platforms.
 
---- setup.py.orig      2023-04-17 15:01:41.000000000 +0000
+--- setup.py.orig      2023-10-04 12:46:27.000000000 +0000
 +++ setup.py
-@@ -111,7 +111,7 @@ macros.append(('PSUTIL_VERSION', int(VER
+@@ -115,7 +115,7 @@ macros.append(('PSUTIL_VERSION', int(VER
  
  # Py_LIMITED_API lets us create a single wheel which works with multiple
  # python versions, including unreleased ones.
--if bdist_wheel and CP36_PLUS and (MACOS or LINUX or WINDOWS):
+-if bdist_wheel and CP36_PLUS and (MACOS or LINUX):
 +if bdist_wheel and CP36_PLUS:
      py_limited_api = {"py_limited_api": True}
      macros.append(('Py_LIMITED_API', '0x03060000'))
- else:
+ elif bdist_wheel and CP37_PLUS and WINDOWS:



Home | Main Index | Thread Index | Old Index