Wed Nov 6 15:48:23 2019 UTC ()
py-psutil: updated to 5.6.5

5.6.5
**Bug fixes**
- remove pyproject.toml as it was causing installation issues.

5.6.4
**Enhancements**
- [Linux] added Process.cpu_times().iowait counter, which is the time
  spent waiting for blocking I/O to complete.
- add PEP 517/8 build backend and requirements specification for better
  pip integration.

**Bug fixes**
- [Windows] Process' cmdline(), environ() or cwd() may occasionally fail
  with ERROR_PARTIAL_COPY which now gets translated to AccessDenied.
- [Linux] cpu_affinity() segfaults on CentOS 5 / manylinux.
  cpu_affinity() support for CentOS 5 was removed.
- [AIX] compilation error on AIX 7.2 due to 32 vs 64 bit differences.
- 'type' and 'family' fields returned by net_connections() are not
  always turned into enums.
- [NetBSD] process cmdline() erroneously raise ZombieProcess error if
  cmdline has non encodable chars.
- usage percent may be rounded to 0 on Python 2.
- [Windows] getloadavg() math for calculating 5 and 15 mins values is
  incorrect.
- [Linux] use CC compiler env var if defined.
- [Windows] `NtWow64*` syscalls fail to raise the proper error code
- [OSX] calling close() (in C) on possible negative integers.
- [SunOS] compilation fails on SunOS 5.10.


(adam)
diff -r1.33 -r1.34 pkgsrc/sysutils/py-psutil/Makefile
diff -r1.33 -r1.34 pkgsrc/sysutils/py-psutil/distinfo
diff -r1.4 -r1.5 pkgsrc/sysutils/py-psutil/patches/patch-psutil___psbsd.py
diff -r1.11 -r1.12 pkgsrc/sysutils/py-psutil/patches/patch-psutil___psutil__bsd.c
diff -r1.4 -r0 pkgsrc/sysutils/py-psutil/patches/patch-psutil_arch_netbsd_specific.c
diff -r1.1 -r0 pkgsrc/sysutils/py-psutil/patches/patch-psutil_arch_netbsd_specific.h

cvs diff -r1.33 -r1.34 pkgsrc/sysutils/py-psutil/Makefile (expand / switch to unified diff)

--- pkgsrc/sysutils/py-psutil/Makefile 2019/10/11 20:01:50 1.33
+++ pkgsrc/sysutils/py-psutil/Makefile 2019/11/06 15:48:23 1.34
@@ -1,36 +1,35 @@ @@ -1,36 +1,35 @@
1# $NetBSD: Makefile,v 1.33 2019/10/11 20:01:50 kamil Exp $ 1# $NetBSD: Makefile,v 1.34 2019/11/06 15:48:23 adam Exp $
2 2
3DISTNAME= psutil-5.6.3 3DISTNAME= psutil-5.6.5
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5PKGREVISION= 2 
6CATEGORIES= sysutils python 5CATEGORIES= sysutils python
7MASTER_SITES= ${MASTER_SITE_PYPI:=p/psutil/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=p/psutil/}
8 7
9MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://github.com/giampaolo/psutil 9HOMEPAGE= https://github.com/giampaolo/psutil
11COMMENT= Cross-platform process and system utilities module for Python 10COMMENT= Cross-platform process and system utilities module for Python
12LICENSE= modified-bsd 11LICENSE= modified-bsd
13 12
14.include "../../lang/python/pyversion.mk" 13.include "../../lang/python/pyversion.mk"
15.if ${_PYTHON_VERSION} == 27 14.if ${_PYTHON_VERSION} == 27
16TEST_DEPENDS+= ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34 15TEST_DEPENDS+= ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
17TEST_DEPENDS+= ${PYPKGPREFIX}-ipaddress-[0-9]*:../../net/py-ipaddress 16TEST_DEPENDS+= ${PYPKGPREFIX}-ipaddress-[0-9]*:../../net/py-ipaddress
18TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock 17TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
19.endif 18.endif
20 19
21REPLACE_PYTHON= psutil/*py 
22 
23.include "../../mk/bsd.prefs.mk" 20.include "../../mk/bsd.prefs.mk"
24 21
25# facilitate PLIST processing 22# facilitate PLIST processing
26.if ${OPSYS} == "Darwin" 23.if ${OPSYS} == "Darwin"
27PLIST_SUBST+= SYSTEM=osx 24PLIST_SUBST+= SYSTEM=osx
28.elif !empty(OPSYS:M*BSD) 25.elif !empty(OPSYS:M*BSD)
29PLIST_SUBST+= SYSTEM=bsd 26PLIST_SUBST+= SYSTEM=bsd
30.else 27.else
31PLIST_SUBST+= SYSTEM=${OPSYS:tl} 28PLIST_SUBST+= SYSTEM=${OPSYS:tl}
32.endif 29.endif
33 30
34.include "../../lang/python/application.mk" 31do-test:
 32 cd ${WRKSRC} && ${PYTHONBIN} psutil/tests/__main__.py
 33
35.include "../../lang/python/egg.mk" 34.include "../../lang/python/egg.mk"
36.include "../../mk/bsd.pkg.mk" 35.include "../../mk/bsd.pkg.mk"

cvs diff -r1.33 -r1.34 pkgsrc/sysutils/py-psutil/distinfo (expand / switch to unified diff)

--- pkgsrc/sysutils/py-psutil/distinfo 2019/10/11 20:01:50 1.33
+++ pkgsrc/sysutils/py-psutil/distinfo 2019/11/06 15:48:23 1.34
@@ -1,10 +1,8 @@ @@ -1,10 +1,8 @@
1$NetBSD: distinfo,v 1.33 2019/10/11 20:01:50 kamil Exp $ 1$NetBSD: distinfo,v 1.34 2019/11/06 15:48:23 adam Exp $
2 2
3SHA1 (psutil-5.6.3.tar.gz) = dc596577226eba6f5382a3ed9816d6d340837068 3SHA1 (psutil-5.6.5.tar.gz) = d44d010c03d4adf9db04fe0e44a77e7ece41934e
4RMD160 (psutil-5.6.3.tar.gz) = bf7bdc047d8ca5e912602152bb3bd890869789b2 4RMD160 (psutil-5.6.5.tar.gz) = f09719d6a824153a3460afe449a4bdca9d0e21ef
5SHA512 (psutil-5.6.3.tar.gz) = 62cf120c9391705bd393d6554afa32d672470b61ebb3c0e7458bad26134b784175ba64d3eff119ace6def2aebc97df73cd0c9d213776176ce39c3d47da3f3d9c 5SHA512 (psutil-5.6.5.tar.gz) = 037b1501b686b7101be4180c8698b09d20d4260962a88f0c437ff558d91c405f56eae186c9d55c1893c612c4534093ab26e6943f0ed56db69e343c5c0317be1b
6Size (psutil-5.6.3.tar.gz) = 435374 bytes 6Size (psutil-5.6.5.tar.gz) = 447489 bytes
7SHA1 (patch-psutil___psbsd.py) = 204349da5b07d817e546184757b058fa4dff5d3e 7SHA1 (patch-psutil___psbsd.py) = da61606aee2366181935c10873d0627d0cb80f3f
8SHA1 (patch-psutil___psutil__bsd.c) = cb98d2c4a734e4ccaa82d9d741167540f5708afc 8SHA1 (patch-psutil___psutil__bsd.c) = a94b2c5a11338f3fffcbdde4339391c9519cf6d6
9SHA1 (patch-psutil_arch_netbsd_specific.c) = b44e3aca5a221cd38482a16b013edb170818905a 
10SHA1 (patch-psutil_arch_netbsd_specific.h) = 4d6b3c96eefeec4908e1006b96ab175d64714dd2 

cvs diff -r1.4 -r1.5 pkgsrc/sysutils/py-psutil/patches/Attic/patch-psutil___psbsd.py (expand / switch to unified diff)

--- pkgsrc/sysutils/py-psutil/patches/Attic/patch-psutil___psbsd.py 2019/10/11 20:01:51 1.4
+++ pkgsrc/sysutils/py-psutil/patches/Attic/patch-psutil___psbsd.py 2019/11/06 15:48:23 1.5
@@ -1,34 +1,15 @@ @@ -1,34 +1,15 @@
1$NetBSD: patch-psutil___psbsd.py,v 1.4 2019/10/11 20:01:51 kamil Exp $ 1$NetBSD: patch-psutil___psbsd.py,v 1.5 2019/11/06 15:48:23 adam Exp $
2 
3Use proc_cwd on NetBSD >= 8.99.42. 
4 2
5Stop using SDEAD as it is no longer available. 3Stop using SDEAD as it is no longer available.
6 4
7--- psutil/_psbsd.py.orig 2019-04-11 21:10:12.000000000 +0000 5--- psutil/_psbsd.py.orig 2019-06-28 13:13:13.000000000 +0000
8+++ psutil/_psbsd.py 6+++ psutil/_psbsd.py
9@@ -57,7 +57,7 @@ elif OPENBSD or NETBSD: 7@@ -58,7 +58,7 @@ elif OPENBSD or NETBSD:
10 # equivalent. Also it appears there's no equivalent of 8 # equivalent. Also it appears there's no equivalent of
11 # psutil.STATUS_DEAD. SDEAD really means STATUS_ZOMBIE. 9 # psutil.STATUS_DEAD. SDEAD really means STATUS_ZOMBIE.
12 # cext.SZOMB: _common.STATUS_ZOMBIE, 10 # cext.SZOMB: _common.STATUS_ZOMBIE,
13- cext.SDEAD: _common.STATUS_ZOMBIE, 11- cext.SDEAD: _common.STATUS_ZOMBIE,
14+ # cext.SDEAD: _common.STATUS_ZOMBIE, 12+ # cext.SDEAD: _common.STATUS_ZOMBIE,
15 cext.SZOMB: _common.STATUS_ZOMBIE, 13 cext.SZOMB: _common.STATUS_ZOMBIE,
16 # From http://www.eecs.harvard.edu/~margo/cs161/videos/proc.h.txt 14 # From http://www.eecs.harvard.edu/~margo/cs161/videos/proc.h.txt
17 # OpenBSD has SRUN and SONPROC: SRUN indicates that a process 15 # OpenBSD has SRUN and SONPROC: SRUN indicates that a process
18@@ -105,6 +105,7 @@ HAS_PER_CPU_TIMES = hasattr(cext, "per_c 
19 HAS_PROC_NUM_THREADS = hasattr(cext, "proc_num_threads") 
20 HAS_PROC_OPEN_FILES = hasattr(cext, 'proc_open_files') 
21 HAS_PROC_NUM_FDS = hasattr(cext, 'proc_num_fds') 
22+HAS_PROC_CWD = hasattr(cext, 'proc_cwd') 
23  
24 kinfo_proc_map = dict( 
25 ppid=0, 
26@@ -845,6 +846,8 @@ class Process(object): 
27 if OPENBSD and self.pid == 0: 
28 return None # ...else it would raise EINVAL 
29 elif NETBSD: 
30+ if HAS_PROC_CWD: 
31+ return cext.proc_cwd(self.pid) or None 
32 with wrap_exceptions_procfs(self): 
33 return os.readlink("/proc/%s/cwd" % self.pid) 
34 elif HAS_PROC_OPEN_FILES: 

cvs diff -r1.11 -r1.12 pkgsrc/sysutils/py-psutil/patches/Attic/patch-psutil___psutil__bsd.c (expand / switch to unified diff)

--- pkgsrc/sysutils/py-psutil/patches/Attic/patch-psutil___psutil__bsd.c 2019/06/29 18:00:49 1.11
+++ pkgsrc/sysutils/py-psutil/patches/Attic/patch-psutil___psutil__bsd.c 2019/11/06 15:48:23 1.12
@@ -1,25 +1,16 @@ @@ -1,25 +1,16 @@
1$NetBSD: patch-psutil___psutil__bsd.c,v 1.11 2019/06/29 18:00:49 wiz Exp $ 1$NetBSD: patch-psutil___psutil__bsd.c,v 1.12 2019/11/06 15:48:23 adam Exp $
2 2
3Define proc_cwd on NetBSD >= 8.99.42. 3Optionally use SDEAD.
4 4
5--- psutil/_psutil_bsd.c.orig 2019-06-11 04:04:44.000000000 +0000 5--- psutil/_psutil_bsd.c.orig 2019-10-21 06:43:32.000000000 +0000
6+++ psutil/_psutil_bsd.c 6+++ psutil/_psutil_bsd.c
7@@ -921,6 +921,8 @@ PsutilMethods[] = { 7@@ -1049,7 +1051,9 @@ static PyMethodDef mod_methods[] = {
8 #if defined(PSUTIL_FREEBSD) || defined(PSUTIL_OPENBSD) 8 if (PyModule_AddIntConstant(mod, "SSLEEP", LSSLEEP)) INITERR;
9 {"proc_connections", psutil_proc_connections, METH_VARARGS, 9 if (PyModule_AddIntConstant(mod, "SSTOP", LSSTOP)) INITERR;
10 "Return connections opened by process"}, 10 if (PyModule_AddIntConstant(mod, "SZOMB", LSZOMB)) INITERR;
11+#endif 
12+#if defined(PSUTIL_FREEBSD) || defined(PSUTIL_OPENBSD) || (defined(PSUTIL_NETBSD) && __NetBSD_Version__ >= 899004200) 
13 {"proc_cwd", psutil_proc_cwd, METH_VARARGS, 
14 "Return process current working directory."}, 
15 #endif 
16@@ -1071,7 +1073,9 @@ void init_psutil_bsd(void) 
17 PyModule_AddIntConstant(module, "SSLEEP", LSSLEEP); 
18 PyModule_AddIntConstant(module, "SSTOP", LSSTOP); 
19 PyModule_AddIntConstant(module, "SZOMB", LSZOMB); 
20+#if defined(LSDEAD) 11+#if defined(LSDEAD)
21 PyModule_AddIntConstant(module, "SDEAD", LSDEAD); 12 if (PyModule_AddIntConstant(mod, "SDEAD", LSDEAD)) INITERR;
22+#endif 13+#endif
23 PyModule_AddIntConstant(module, "SONPROC", LSONPROC); 14 if (PyModule_AddIntConstant(mod, "SONPROC", LSONPROC)) INITERR;
24 // unique to NetBSD 15 // unique to NetBSD
25 PyModule_AddIntConstant(module, "SSUSPENDED", LSSUSPENDED); 16 if (PyModule_AddIntConstant(mod, "SSUSPENDED", LSSUSPENDED)) INITERR;

File Deleted: pkgsrc/sysutils/py-psutil/patches/Attic/patch-psutil_arch_netbsd_specific.c

File Deleted: pkgsrc/sysutils/py-psutil/patches/Attic/patch-psutil_arch_netbsd_specific.h