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:           Tue Apr 18 07:37:42 UTC 2023

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

Log Message:
py-psutil: updated to 5.9.5

5.9.5
=====

2023-04-17

**Enhancements**

- 2196_: in case of exception, display a cleaner error traceback by hiding the
  `KeyError` bit deriving from a missed cache hit.
- 2217_: print the full traceback when a `DeprecationWarning` or `UserWarning`
  is raised.
- 2230_, [OpenBSD]: `psutil.net_connections`_ implementation was rewritten from
  scratch:
  - We're now able to retrieve the path of AF_UNIX sockets (before it was an
    empty string)
  - The function is faster since it no longer iterates over all processes.
  - No longer produces duplicate connection entries.
- 2238_: there are cases where `Process.cwd()`_ cannot be determined
  (e.g. directory no longer exists), in which case we returned either ``None``
  or an empty string. This was consolidated and we now return ``""`` on all
  platforms.
- 2239_, [UNIX]: if process is a zombie, and we can only determine part of the
  its truncated `Process.name()`_ (15 chars), don't fail with `ZombieProcess`_
  when we try to guess the full name from the `Process.cmdline()`_. Just
  return the truncated name.
- 2240_, [NetBSD], [OpenBSD]: add CI testing on every commit for NetBSD and
  OpenBSD platforms (python 3 only).

**Bug fixes**

- 1043_, [OpenBSD] `psutil.net_connections`_ returns duplicate entries.
- 1915_, [Linux]: on certain kernels, ``"MemAvailable"`` field from
  ``/proc/meminfo`` returns ``0`` (possibly a kernel bug), in which case we
  calculate an approximation for ``available`` memory which matches "free"
  CLI utility.
- 2164_, [Linux]: compilation fails on kernels < 2.6.27 (e.g. CentOS 5).
- 2186_, [FreeBSD]: compilation fails with Clang 15.  (patch by Po-Chuan Hsieh)
- 2191_, [Linux]: `disk_partitions()`_: do not unnecessarily read
  /proc/filesystems and raise `AccessDenied`_ unless user specified `all=False`
  argument.
- 2216_, [Windows]: fix tests when running in a virtual environment (patch by
  Matthieu Darbois)
- 2225_, [POSIX]: `users()`_ loses precision for ``started`` attribute (off by
  1 minute).
- 2229_, [OpenBSD]: unable to properly recognize zombie processes.
  `NoSuchProcess`_ may be raised instead of `ZombieProcess`_.
- 2231_, [NetBSD]: *available*  `virtual_memory()`_ is higher than *total*.
- 2234_, [NetBSD]: `virtual_memory()`_ metrics are wrong: *available* and
  *used* are too high. We now match values shown by *htop* CLI utility.
- 2236_, [NetBSD]: `Process.num_threads()`_ and `Process.threads()`_ return
  threads that are already terminated.
- 2237_, [OpenBSD], [NetBSD]: `Process.cwd()`_ may raise ``FileNotFoundError``
  if cwd no longer exists. Return an empty string instead.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 pkgsrc/sysutils/py-psutil/Makefile
cvs rdiff -u -r1.49 -r1.50 pkgsrc/sysutils/py-psutil/distinfo
cvs rdiff -u -r1.6 -r1.7 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.48 pkgsrc/sysutils/py-psutil/Makefile:1.49
--- pkgsrc/sysutils/py-psutil/Makefile:1.48     Tue Nov  8 08:50:20 2022
+++ pkgsrc/sysutils/py-psutil/Makefile  Tue Apr 18 07:37:42 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.48 2022/11/08 08:50:20 adam Exp $
+# $NetBSD: Makefile,v 1.49 2023/04/18 07:37:42 adam Exp $
 
-DISTNAME=      psutil-5.9.4
+DISTNAME=      psutil-5.9.5
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    sysutils python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/psutil/}
@@ -11,7 +11,7 @@ COMMENT=      Cross-platform process and syst
 LICENSE=       modified-bsd
 
 # from wheel.bdist_wheel import bdist_wheel
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 

Index: pkgsrc/sysutils/py-psutil/distinfo
diff -u pkgsrc/sysutils/py-psutil/distinfo:1.49 pkgsrc/sysutils/py-psutil/distinfo:1.50
--- pkgsrc/sysutils/py-psutil/distinfo:1.49     Tue Nov  8 08:50:20 2022
+++ pkgsrc/sysutils/py-psutil/distinfo  Tue Apr 18 07:37:42 2023
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.49 2022/11/08 08:50:20 adam Exp $
+$NetBSD: distinfo,v 1.50 2023/04/18 07:37:42 adam Exp $
 
-BLAKE2s (psutil-5.9.4.tar.gz) = c692420fa2ab1df6be71d2464c16b19e07a9e6205aca62b8030aeb12b6297c9c
-SHA512 (psutil-5.9.4.tar.gz) = ff8d6213b153b5a3428e4f65ddbc41cb1f37caae4acab02760632107d95a50a74d3ee563f0cb2d623b37cdddd16425d2084e7f841e4a46af8988a7676f6975e6
-Size (psutil-5.9.4.tar.gz) = 485825 bytes
-SHA1 (patch-setup.py) = 56d575ea7e1e6d8b9c56d45c191e41e8d50c2a08
+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-setup.py) = d87bc025af52b52b5972fabf2cfeb00fd86e2413

Index: pkgsrc/sysutils/py-psutil/patches/patch-setup.py
diff -u pkgsrc/sysutils/py-psutil/patches/patch-setup.py:1.6 pkgsrc/sysutils/py-psutil/patches/patch-setup.py:1.7
--- pkgsrc/sysutils/py-psutil/patches/patch-setup.py:1.6        Tue Nov  8 08:50:20 2022
+++ pkgsrc/sysutils/py-psutil/patches/patch-setup.py    Tue Apr 18 07:37:42 2023
@@ -1,13 +1,13 @@
-$NetBSD: patch-setup.py,v 1.6 2022/11/08 08:50:20 adam Exp $
+$NetBSD: patch-setup.py,v 1.7 2023/04/18 07:37:42 adam Exp $
 
 Enable limited API on all platforms.
 
---- setup.py.orig      2022-11-08 08:46:24.000000000 +0000
+--- setup.py.orig      2023-04-17 15:01:41.000000000 +0000
 +++ setup.py
-@@ -109,7 +109,7 @@ def get_version():
- VERSION = get_version()
- macros.append(('PSUTIL_VERSION', int(VERSION.replace('.', ''))))
+@@ -111,7 +111,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:
      py_limited_api = {"py_limited_api": True}



Home | Main Index | Thread Index | Old Index