diff options
author | wiz <wiz@pkgsrc.org> | 2014-04-18 19:58:46 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2014-04-18 19:58:46 +0000 |
commit | e5e6f6c014ad929d44d96ae40d17f6e5ccbfed7b (patch) | |
tree | 989d9c6d50ea2606387ef8b2b5e4199249f66e35 /sysutils/py-psutil | |
parent | 549eebbe408270f03cb4fbb7c739fae7d7007b6d (diff) | |
download | pkgsrc-e5e6f6c014ad929d44d96ae40d17f6e5ccbfed7b.tar.gz |
Update to 2.1.0:
2.1.0 - 2014-04-08
------------------
ENHANCEMENTS
* 387: system-wide open connections a-la netstat.
BUG FIXES
* 421: [Solaris] psutil does not compile on SunOS 5.10 (patch by Naveed
Roudsari)
* 489: [Linux] psutil.disk_partitions() return an empty list.
2.0.0 - 2014-03-10
------------------
ENHANCEMENTS
* #424: [Windows] installer for Python 3.X 64 bit.
* #427: number of logical and physical CPUs (psutil.cpu_count()).
* #447: psutil.wait_procs() timeout parameter is now optional.
* #452: make Process instances hashable and usable with set()s.
* #453: tests on Python < 2.7 require unittest2 module.
* #459: add a make file for running tests and other repetitive tasks (also
on Windows).
* #463: make timeout parameter of cpu_percent* functions default to 0.0 'cause
it's a common trap to introduce slowdowns.
* #468: move documentation to readthedocs.com.
* #477: process cpu_percent() is about 30% faster. (suggested by crusaderky)
* #478: [Linux] almost all APIs are about 30% faster on Python 3.X.
* #479: long deprecated psutil.error module is gone; exception classes now
live in "psutil" namespace only.
BUG FIXES
* #193: psutil.Popen constructor can throw an exception if the spawned process
terminates quickly.
* #340: [Windows] process get_open_files() no longer hangs. (patch by
jtang@vahna.net)
* #443: [Linux] fix a potential overflow issue for Process.set_cpu_affinity()
on systems with more than 64 CPUs.
* #448: [Windows] get_children() and ppid() memory leak (patch by Ulrich
Klank).
* #457: [POSIX] pid_exists() always returns True for PID 0.
* #461: namedtuples are not pickle-able.
* #466: [Linux] process exe improper null bytes handling. (patch by
Gautam Singh)
* #470: wait_procs() might not wait. (patch by crusaderky)
* #471: [Windows] process exe improper unicode handling. (patch by
alex@mroja.net)
* #473: psutil.Popen.wait() does not set returncode attribute.
* #474: [Windows] Process.cpu_percent() is no longer capped at 100%.
* #476: [Linux] encoding error for process name and cmdline.
API CHANGES
For the sake of consistency a lot of psutil APIs have been renamed.
In most cases accessing the old names will work but it will cause a DeprecationWarning.
* psutil.* module level constants have being replaced by functions:
---------------------------------------------------------
| Old name | Replacement |
---------------------------------------------------------
| - psutil.NUM_CPUS | psutil.cpu_cpunt() |
| - psutil.BOOT_TIME | psutil.boot_time() |
| - psutil.TOTAL_PHYMEM | psutil.virtual_memory().total |
---------------------------------------------------------
* Renamed psutil.* functions:
-----------------------------------------------
| Old name | Replacement |
-----------------------------------------------
| - psutil.get_pid_list() | psutil.pids() |
| - psutil.get_users() | psutil.users() |
| - psutil.get_boot_time() | psutil.boot_time() |
-----------------------------------------------
* All psutil.Process get_* methods lost the "get_" prefix.
get_ext_memory_info() renamed to memory_info_ex().
Assuming "p = psutil.Process()":
-------------------------------------------------
| Old name | Replacement |
-------------------------------------------------
| p.get_children() | p.children() |
| p.get_connections() | p.connections() |
| p.get_cpu_affinity() | p.cpu_affinity() |
| p.get_cpu_percent() | p.cpu_percent() |
| p.get_cpu_times() | p.cpu_times() |
| p.get_ext_memory_info() | p.memory_info_ex() |
| p.get_io_counters() | p.io_counters() |
| p.get_ionice() | p.ionice() |
| p.get_memory_info() | p.memory_info() |
| p.get_memory_maps() | p.memory_maps() |
| p.get_memory_percent() | p.memory_percent() |
| p.get_nice() | p.nice() |
| p.get_num_ctx_switches() | p.num_ctx_switches() |
| p.get_num_fds() | p.num_fds() |
| p.get_num_threads() | p.num_threads() |
| p.get_open_files() | p.open_files() |
| p.get_rlimit() | p.rlimit() |
| p.get_threads() | p.threads() |
| p.getcwd() | p.cwd() |
-------------------------------------------------
* All psutil.Process set_* methods lost the "set_" prefix.
Assuming "p = psutil.Process()":
--------------------------------------------------------
| Old name | Replacement |
--------------------------------------------------------
| p.set_nice() | p.nice(value) |
| p.set_ionice() | p.ionice(ioclass, value=None) |
| p.set_cpu_affinity() | p.cpu_affinity(cpus) |
| p.set_rlimit() | p.rlimit(resource, limits=None) |
--------------------------------------------------------
* Except for 'pid' all psutil.Process class properties have been turned into
methods. This is the only case which there are no aliases.
Assuming "p = psutil.Process()":
---------------------------------
| Old name | Replacement |
---------------------------------
| p.name | p.name() |
| p.parent | p.parent() |
| p.ppid | p.ppid() |
| p.exe | p.exe() |
| p.cmdline | p.cmdline() |
| p.status | p.status() |
| p.uids | p.uids() |
| p.gids | p.gids() |
| p.username | p.username() |
| p.create_time | p.create_time() |
---------------------------------
* Others:
* timeout parameter of cpu_percent* functions defaults to 0.0 instead of 0.1.
* long deprecated psutil.error module is gone; exception classes now live in
"psutil" namespace only.
* Process instances' "retcode" attribute returned by psutil.wait_procs() has
been renamed to "returncode" for consistency with subprocess.Popen.
Diffstat (limited to 'sysutils/py-psutil')
-rw-r--r-- | sysutils/py-psutil/Makefile | 6 | ||||
-rw-r--r-- | sysutils/py-psutil/PLIST | 16 | ||||
-rw-r--r-- | sysutils/py-psutil/distinfo | 11 | ||||
-rw-r--r-- | sysutils/py-psutil/patches/patch-test_test__psutil.py | 8 |
4 files changed, 17 insertions, 24 deletions
diff --git a/sysutils/py-psutil/Makefile b/sysutils/py-psutil/Makefile index 000dc6b824b..efda6fa1e3c 100644 --- a/sysutils/py-psutil/Makefile +++ b/sysutils/py-psutil/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.4 2014/01/25 10:30:22 wiz Exp $ +# $NetBSD: Makefile,v 1.5 2014/04/18 19:58:46 wiz Exp $ -DISTNAME= psutil-1.2.1 +DISTNAME= psutil-2.1.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= sysutils MASTER_SITES= https://pypi.python.org/packages/source/p/psutil/ @@ -11,7 +11,7 @@ COMMENT= Cross-platform process and system utilities module for Python LICENSE= modified-bsd REPLACE_PYTHON= psutil/*py -PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of 1.2.1 +PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of 2.1.0 .include "../../mk/bsd.prefs.mk" diff --git a/sysutils/py-psutil/PLIST b/sysutils/py-psutil/PLIST index 66945d6277d..11e9ef651b0 100644 --- a/sysutils/py-psutil/PLIST +++ b/sysutils/py-psutil/PLIST @@ -1,5 +1,5 @@ -@comment $NetBSD: PLIST,v 1.2 2013/12/07 21:25:23 richard Exp $ -${PYSITELIB}/_psutil_${LOWER_OPSYS}.so +@comment $NetBSD: PLIST,v 1.3 2014/04/18 19:58:46 wiz Exp $ +${PYSITELIB}/_psutil_netbsd.so ${PYSITELIB}/_psutil_posix.so ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt @@ -14,18 +14,12 @@ ${PYSITELIB}/psutil/_common.pyo ${PYSITELIB}/psutil/_compat.py ${PYSITELIB}/psutil/_compat.pyc ${PYSITELIB}/psutil/_compat.pyo -${PYSITELIB}/psutil/_error.py -${PYSITELIB}/psutil/_error.pyc -${PYSITELIB}/psutil/_error.pyo ${PYSITELIB}/psutil/_psbsd.py ${PYSITELIB}/psutil/_psbsd.pyc ${PYSITELIB}/psutil/_psbsd.pyo ${PYSITELIB}/psutil/_pslinux.py ${PYSITELIB}/psutil/_pslinux.pyc ${PYSITELIB}/psutil/_pslinux.pyo -${PYSITELIB}/psutil/_psmswindows.py -${PYSITELIB}/psutil/_psmswindows.pyc -${PYSITELIB}/psutil/_psmswindows.pyo ${PYSITELIB}/psutil/_psnetbsd.py ${PYSITELIB}/psutil/_psnetbsd.pyc ${PYSITELIB}/psutil/_psnetbsd.pyo @@ -38,6 +32,6 @@ ${PYSITELIB}/psutil/_psposix.pyo ${PYSITELIB}/psutil/_pssunos.py ${PYSITELIB}/psutil/_pssunos.pyc ${PYSITELIB}/psutil/_pssunos.pyo -${PYSITELIB}/psutil/error.py -${PYSITELIB}/psutil/error.pyc -${PYSITELIB}/psutil/error.pyo +${PYSITELIB}/psutil/_pswindows.py +${PYSITELIB}/psutil/_pswindows.pyc +${PYSITELIB}/psutil/_pswindows.pyo diff --git a/sysutils/py-psutil/distinfo b/sysutils/py-psutil/distinfo index 219a42d32c6..9419a503a0d 100644 --- a/sysutils/py-psutil/distinfo +++ b/sysutils/py-psutil/distinfo @@ -1,14 +1,13 @@ -$NetBSD: distinfo,v 1.3 2013/12/07 21:25:23 richard Exp $ +$NetBSD: distinfo,v 1.4 2014/04/18 19:58:46 wiz Exp $ -SHA1 (psutil-1.2.1.tar.gz) = c8c1842bf1c63b9068ac25a37f7aae11fcecd57f -RMD160 (psutil-1.2.1.tar.gz) = 5b014f73dce4035527886637ebd1b653e5a7faba -Size (psutil-1.2.1.tar.gz) = 167397 bytes +SHA1 (psutil-2.1.0.tar.gz) = 71d17148cfddfd620a93815f3a7e5195c24ea22a +RMD160 (psutil-2.1.0.tar.gz) = 435b356e85e20daa8e84fe2e42485bd8b53d92d1 +Size (psutil-2.1.0.tar.gz) = 211640 bytes SHA1 (patch-psutil_____init____.py) = aa75a84992250e28db01d5fe13a68ed0cdcea883 SHA1 (patch-psutil___psnetbsd.py) = 20089b57640a5eb30aeb1f5460624a570f1d3236 SHA1 (patch-psutil___psutil__netbsd.c) = c251e097ce5c919537176f16406ad6892db955fc SHA1 (patch-psutil___psutil__netbsd.h) = 33e3c857f764d8391db747068ade7ea333698ec0 -SHA1 (patch-psutil___psutil__sunos.c) = 78bdb8103a10022785202873c7e60886a885340f SHA1 (patch-psutil_arch_netbsd_process__info.c) = c384d12cc47514d6396d779d59c586ef2b42a89a SHA1 (patch-psutil_arch_netbsd_process__info.h) = b23075df15749e4e5274ccb9e21d67ac55fdd199 SHA1 (patch-setup.py) = 3e87561b6dfd7e851e232342dab3b2e8ade28cfd -SHA1 (patch-test_test__psutil.py) = fa3ba09430f8ad307cf6674dee3e7cbfa9144e3b +SHA1 (patch-test_test__psutil.py) = c521f4fa30b24cb86115370e52979c2c7f7af4a3 diff --git a/sysutils/py-psutil/patches/patch-test_test__psutil.py b/sysutils/py-psutil/patches/patch-test_test__psutil.py index bf2f8d97641..7bf9ddcac25 100644 --- a/sysutils/py-psutil/patches/patch-test_test__psutil.py +++ b/sysutils/py-psutil/patches/patch-test_test__psutil.py @@ -1,12 +1,12 @@ -$NetBSD: patch-test_test__psutil.py,v 1.2 2013/12/07 21:25:24 richard Exp $ +$NetBSD: patch-test_test__psutil.py,v 1.3 2014/04/18 19:58:46 wiz Exp $ Port to NetBSD. ---- test/test_psutil.py.orig 2013-11-22 21:26:42.000000000 +0000 +--- test/test_psutil.py.orig 2014-04-08 00:03:00.000000000 +0000 +++ test/test_psutil.py -@@ -77,7 +77,7 @@ POSIX = os.name == 'posix' +@@ -87,7 +87,7 @@ if WINDOWS: + WIN_VISTA = (6, 0, 0) LINUX = sys.platform.startswith("linux") - WINDOWS = sys.platform.startswith("win32") OSX = sys.platform.startswith("darwin") -BSD = sys.platform.startswith("freebsd") +BSD = sys.platform.startswith("freebsd") or sys.platform.startswith("netbsd") |