pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/py-psutil sysutils/py-psutil: Up...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/86bb3162f52a
branches:  trunk
changeset: 308031:86bb3162f52a
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Tue May 15 22:22:01 2018 +0000

description:
sysutils/py-psutil: Update to 5.4.5

Enhancements since 5.2.2:

- disk_io_counters() and net_io_counters() numbers no longer wrap
  (restart from 0). Introduced a new "nowrap" argument.
- psutil.net_connections() and psutil.Process.connections() "laddr"
  and "raddr" are now named tuples.
- swap_memory() now relies on /proc/meminfo instead of sysinfo()
  syscall so that it can be used in conjunction with PROCFS_PATH in
  order to retrieve memory info about Linux containers such as Docker
  and Heroku.
- psutil.users() provides a new "pid" field.
- process_iter() accepts two new parameters in order to invoke
  Process.as_dict(): "attrs" and "ad_value". With this you can iterate
  over all processes in one shot without needing to catch
  NoSuchProcess and do list/dict comprehensions.
- implemented full unicode support.
- disk_usage() on Python 3 is now able to accept bytes.
- test suite now enables all warnings by default.
- source distribution is dynamically generated so that it only
  includes relevant files.
- introduced PSUTIL_DEBUG environment variable which can be set in
  order to print useful debug messages on stderr (useful in case of
  nasty errors).
- added support for sensors_battery() on OSX.
- Process.children() is 2x faster on UNIX and 2.4x faster on Linux.
- deprecated method Process.memory_info_ex() now warns by using
  FutureWarning instead of DeprecationWarning.

diffstat:

 sysutils/py-psutil/Makefile                                    |   4 +-
 sysutils/py-psutil/PLIST                                       |  29 ++++++++-
 sysutils/py-psutil/distinfo                                    |  12 ++--
 sysutils/py-psutil/patches/patch-psutil_arch_bsd_netbsd.c      |  15 -----
 sysutils/py-psutil/patches/patch-psutil_arch_netbsd_specific.c |  15 +++++
 5 files changed, 47 insertions(+), 28 deletions(-)

diffs (139 lines):

diff -r 937258f36122 -r 86bb3162f52a sysutils/py-psutil/Makefile
--- a/sysutils/py-psutil/Makefile       Tue May 15 22:19:39 2018 +0000
+++ b/sysutils/py-psutil/Makefile       Tue May 15 22:22:01 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.20 2017/05/29 16:02:40 adam Exp $
+# $NetBSD: Makefile,v 1.21 2018/05/15 22:22:01 minskim Exp $
 
-DISTNAME=      psutil-5.2.2
+DISTNAME=      psutil-5.4.5
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    sysutils
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/psutil/}
diff -r 937258f36122 -r 86bb3162f52a sysutils/py-psutil/PLIST
--- a/sysutils/py-psutil/PLIST  Tue May 15 22:19:39 2018 +0000
+++ b/sysutils/py-psutil/PLIST  Tue May 15 22:22:01 2018 +0000
@@ -1,8 +1,9 @@
-@comment $NetBSD: PLIST,v 1.9 2017/05/29 16:02:40 adam Exp $
+@comment $NetBSD: PLIST,v 1.10 2018/05/15 22:22:01 minskim Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
 ${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PLIST.py2x}${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/psutil/__init__.py
 ${PYSITELIB}/psutil/__init__.pyc
@@ -13,6 +14,12 @@
 ${PYSITELIB}/psutil/_compat.py
 ${PYSITELIB}/psutil/_compat.pyc
 ${PYSITELIB}/psutil/_compat.pyo
+${PYSITELIB}/psutil/_exceptions.py
+${PYSITELIB}/psutil/_exceptions.pyc
+${PYSITELIB}/psutil/_exceptions.pyo
+${PYSITELIB}/psutil/_psaix.py
+${PYSITELIB}/psutil/_psaix.pyc
+${PYSITELIB}/psutil/_psaix.pyo
 ${PYSITELIB}/psutil/_psbsd.py
 ${PYSITELIB}/psutil/_psbsd.pyc
 ${PYSITELIB}/psutil/_psbsd.pyo
@@ -28,7 +35,7 @@
 ${PYSITELIB}/psutil/_pssunos.py
 ${PYSITELIB}/psutil/_pssunos.pyc
 ${PYSITELIB}/psutil/_pssunos.pyo
-${PYSITELIB}/psutil/_psutil_${SYSTEM}.so
+${PYSITELIB}/psutil/_psutil_osx.so
 ${PYSITELIB}/psutil/_psutil_posix.so
 ${PYSITELIB}/psutil/_pswindows.py
 ${PYSITELIB}/psutil/_pswindows.pyc
@@ -36,12 +43,21 @@
 ${PYSITELIB}/psutil/tests/__init__.py
 ${PYSITELIB}/psutil/tests/__init__.pyc
 ${PYSITELIB}/psutil/tests/__init__.pyo
-${PYSITELIB}/psutil/tests/runner.py
-${PYSITELIB}/psutil/tests/runner.pyc
-${PYSITELIB}/psutil/tests/runner.pyo
+${PYSITELIB}/psutil/tests/__main__.py
+${PYSITELIB}/psutil/tests/__main__.pyc
+${PYSITELIB}/psutil/tests/__main__.pyo
+${PYSITELIB}/psutil/tests/test_aix.py
+${PYSITELIB}/psutil/tests/test_aix.pyc
+${PYSITELIB}/psutil/tests/test_aix.pyo
 ${PYSITELIB}/psutil/tests/test_bsd.py
 ${PYSITELIB}/psutil/tests/test_bsd.pyc
 ${PYSITELIB}/psutil/tests/test_bsd.pyo
+${PYSITELIB}/psutil/tests/test_connections.py
+${PYSITELIB}/psutil/tests/test_connections.pyc
+${PYSITELIB}/psutil/tests/test_connections.pyo
+${PYSITELIB}/psutil/tests/test_contracts.py
+${PYSITELIB}/psutil/tests/test_contracts.pyc
+${PYSITELIB}/psutil/tests/test_contracts.pyo
 ${PYSITELIB}/psutil/tests/test_linux.py
 ${PYSITELIB}/psutil/tests/test_linux.pyc
 ${PYSITELIB}/psutil/tests/test_linux.pyo
@@ -66,6 +82,9 @@
 ${PYSITELIB}/psutil/tests/test_system.py
 ${PYSITELIB}/psutil/tests/test_system.pyc
 ${PYSITELIB}/psutil/tests/test_system.pyo
+${PYSITELIB}/psutil/tests/test_unicode.py
+${PYSITELIB}/psutil/tests/test_unicode.pyc
+${PYSITELIB}/psutil/tests/test_unicode.pyo
 ${PYSITELIB}/psutil/tests/test_windows.py
 ${PYSITELIB}/psutil/tests/test_windows.pyc
 ${PYSITELIB}/psutil/tests/test_windows.pyo
diff -r 937258f36122 -r 86bb3162f52a sysutils/py-psutil/distinfo
--- a/sysutils/py-psutil/distinfo       Tue May 15 22:19:39 2018 +0000
+++ b/sysutils/py-psutil/distinfo       Tue May 15 22:22:01 2018 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.20 2017/06/24 08:03:35 adam Exp $
+$NetBSD: distinfo,v 1.21 2018/05/15 22:22:01 minskim Exp $
 
-SHA1 (psutil-5.2.2.tar.gz) = e22e2f6abdff051d438626f9a59a8782ace1a63e
-RMD160 (psutil-5.2.2.tar.gz) = bdf3d28e5072b936b86056d8da28524b43de734d
-SHA512 (psutil-5.2.2.tar.gz) = df4878d03a6ff98beb611969edd5a4d704ac269d38dc286d84def3ca271936e03367241470f2a192e0d71d0f64fe1f252223b0d67e964918146334a807d1a997
-Size (psutil-5.2.2.tar.gz) = 348413 bytes
+SHA1 (psutil-5.4.5.tar.gz) = e0324660aaadce4cf6b0e6ccdfc9c4381cabd26b
+RMD160 (psutil-5.4.5.tar.gz) = 99c5240616c97eef2a0782ea56b74df962dc61ef
+SHA512 (psutil-5.4.5.tar.gz) = 3ed5c4cb650161923092c742a16459159bf0989ff669a968b1307852080603a6a1fad834c9b14f38d652e0b1fc9927906c51f7a937d8d2505f110207fd408e7a
+Size (psutil-5.4.5.tar.gz) = 418003 bytes
 SHA1 (patch-psutil___psutil__bsd.c) = 3d1166abdd74e3f3b4bec3098b03e7d05a67df04
-SHA1 (patch-psutil_arch_bsd_netbsd.c) = 7631030f445980b895904735ff087859bd1c0906
+SHA1 (patch-psutil_arch_netbsd_specific.c) = bc38af6ba1c360a12fb3d7112026425ca0cf4a92
diff -r 937258f36122 -r 86bb3162f52a sysutils/py-psutil/patches/patch-psutil_arch_bsd_netbsd.c
--- a/sysutils/py-psutil/patches/patch-psutil_arch_bsd_netbsd.c Tue May 15 22:19:39 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-psutil_arch_bsd_netbsd.c,v 1.7 2017/06/24 08:03:35 adam Exp $
-
-Don't include <sys/user.h> on NetBSD. Include <sys/iostat.h> instead.
-
---- psutil/arch/bsd/netbsd.c.orig      2017-03-26 08:09:27.000000000 +0000
-+++ psutil/arch/bsd/netbsd.c
-@@ -22,7 +22,7 @@
- #include <sys/types.h>
- #include <sys/param.h>
- #include <sys/sysctl.h>
--#include <sys/user.h>
-+#include <sys/iostat.h>
- #include <sys/proc.h>
- #include <sys/swap.h>  // for swap_mem
- #include <signal.h>
diff -r 937258f36122 -r 86bb3162f52a sysutils/py-psutil/patches/patch-psutil_arch_netbsd_specific.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/py-psutil/patches/patch-psutil_arch_netbsd_specific.c    Tue May 15 22:22:01 2018 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-psutil_arch_netbsd_specific.c,v 1.1 2018/05/15 22:22:01 minskim Exp $
+
+Don't include <sys/user.h> on NetBSD. Include <sys/iostat.h> instead.
+
+--- psutil/arch/netbsd/specific.c.orig 2018-04-12 08:37:17.000000000 +0000
++++ psutil/arch/netbsd/specific.c
+@@ -22,7 +22,7 @@
+ #include <sys/types.h>
+ #include <sys/param.h>
+ #include <sys/sysctl.h>
+-#include <sys/user.h>
++#include <sys/iostat.h>
+ #include <sys/proc.h>
+ #include <sys/swap.h>  // for swap_mem
+ #include <signal.h>



Home | Main Index | Thread Index | Old Index