From 94a550af86b5ae953a1896e88a821533ccdffad86e55e7b73f992f30c5f1b95d Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 13 Feb 2017 12:54:04 +0000 Subject: [PATCH 1/3] Accepting request 455521 from home:stroeder:branches:devel:languages:python update to 5.1.3 OBS-URL: https://build.opensuse.org/request/show/455521 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psutil?expand=0&rev=70 --- psutil-5.0.0.zip | 3 -- psutil-5.1.3.tar.gz | 3 ++ python-psutil.changes | 80 +++++++++++++++++++++++++++++++++++++++++++ python-psutil.spec | 4 +-- 4 files changed, 85 insertions(+), 5 deletions(-) delete mode 100644 psutil-5.0.0.zip create mode 100644 psutil-5.1.3.tar.gz diff --git a/psutil-5.0.0.zip b/psutil-5.0.0.zip deleted file mode 100644 index 4b29b83..0000000 --- a/psutil-5.0.0.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5411e22c63168220f4b8cc42fd05ea96f5b5e65e08b93b675ca50653aea482f8 -size 374074 diff --git a/psutil-5.1.3.tar.gz b/psutil-5.1.3.tar.gz new file mode 100644 index 0000000..19b5feb --- /dev/null +++ b/psutil-5.1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:959bd58bdc8152b0a143cb3bd822d4a1b8f7230617b0e3eb2ff6e63812120f2b +size 341980 diff --git a/python-psutil.changes b/python-psutil.changes index 4a2cbdc..6fad397 100644 --- a/python-psutil.changes +++ b/python-psutil.changes @@ -1,3 +1,83 @@ +------------------------------------------------------------------- +Wed Feb 8 14:40:55 UTC 2017 - michael@stroeder.com + +- update to version 5.1.3 + +5.1.3 +===== + +**Bug fixes** +- 971_: [Linux] sensors_temperatures() didn't work on CentOS 7. +- 973_: cpu_percent() may raise ZeroDivisionError. + +5.1.2 +===== + +*2017-02-03* + +**Bug fixes** +- 966_: [Linux] sensors_battery().power_plugged may erroneously return None on + Python 3. +- 968_: [Linux] disk_io_counters() raises TypeError on python 3. +- 970_: [Linux] sensors_battery()'s name and label fields on Python 3 are bytes + instead of str. + +5.1.1 +===== + +*2017-02-03* + +**Enhancements** +- 966_: [Linux] sensors_battery().percent is a float and is more precise. + +**Bug fixes** +- 964_: [Windows] Process.username() and psutil.users() may return badly + decoding character on Python 3. +- 965_: [Linux] disk_io_counters() may miscalculate sector size and report the + wrong number of bytes read and written. +- 966_: [Linux] sensors_battery() may fail with "no such file error". +- 966_: [Linux] sensors_battery().power_plugged may lie. + +5.1.0 +===== + +**Enhancements** +- 357_: added psutil.Process.cpu_num() (what CPU a process is on). +- 371_: added psutil.sensors_temperatures() (Linux only). +- 941_: added psutil.cpu_freq() (CPU frequency). +- 955_: added psutil.sensors_battery() (Linux, Windows, only). +- 956_: cpu_affinity([]) can now be used as an alias to set affinity against + all eligible CPUs. + +**Bug fixes** +- 687_: [Linux] pid_exists() no longer returns True if passed a process thread + ID. +- 948_: cannot install psutil with PYTHONOPTIMIZE=2. +- 950_: [Windows] Process.cpu_percent() was calculated incorrectly and showed + higher number than real usage. +- 951_: [Windows] the uploaded wheels for Python 3.6 64 bit didn't work. +- 959_: psutil exception objects could not be pickled. +- 960_: Popen.wait() did not return the correct negative exit status if process + is ``kill()``ed by a signal. +- 961_: [Windows] WindowsService.description() may fail with + ERROR_MUI_FILE_NOT_FOUND. + +5.0.1 +===== + +**Enhancements** +- 939_: tar.gz distribution went from 1.8M to 258K. +- 811_: [Windows] provide a more meaningful error message if trying to use + psutil on unsupported Windows XP. + +**Bug fixes** +- 609_: [SunOS] psutil does not compile on Solaris 10. +- 936_: [Windows] fix compilation error on VS 2013 (patch by Max Bélanger). +- 940_: [Linux] cpu_percent() and cpu_times_percent() was calculated + incorrectly as "iowait", "guest" and "guest_nice" times were not properly + taken into account. +- 944_: [OpenBSD] psutil.pids() was omitting PID 0. + ------------------------------------------------------------------- Tue Nov 8 21:15:33 UTC 2016 - toddrme2178@gmail.com diff --git a/python-psutil.spec b/python-psutil.spec index 528f9f1..fd1cc6a 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -17,13 +17,13 @@ Name: python-psutil -Version: 5.0.0 +Version: 5.1.3 Release: 0 Summary: A process utilities module for Python License: BSD-3-Clause Group: Development/Languages/Python Url: https://pypi.python.org/pypi/psutil/ -Source: https://pypi.io/packages/source/p/psutil/psutil-%{version}.zip +Source: https://pypi.io/packages/source/p/psutil/psutil-%{version}.tar.gz BuildRequires: python-devel BuildRequires: python-setuptools BuildRequires: unzip From 7e5659eef3faca39a26718bd0fe98067fed3a378dc48c6ab4de66d23fb4ce33c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Str=C3=B6der?= Date: Wed, 15 Mar 2017 19:20:05 +0000 Subject: [PATCH 2/3] Accepting request 479784 from home:stroeder:branches:devel:languages:python update to 5.2.0 OBS-URL: https://build.opensuse.org/request/show/479784 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psutil?expand=0&rev=71 --- psutil-5.1.3.tar.gz | 3 --- psutil-5.2.0.tar.gz | 3 +++ python-psutil.changes | 19 +++++++++++++++++++ python-psutil.spec | 2 +- 4 files changed, 23 insertions(+), 4 deletions(-) delete mode 100644 psutil-5.1.3.tar.gz create mode 100644 psutil-5.2.0.tar.gz diff --git a/psutil-5.1.3.tar.gz b/psutil-5.1.3.tar.gz deleted file mode 100644 index 19b5feb..0000000 --- a/psutil-5.1.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:959bd58bdc8152b0a143cb3bd822d4a1b8f7230617b0e3eb2ff6e63812120f2b -size 341980 diff --git a/psutil-5.2.0.tar.gz b/psutil-5.2.0.tar.gz new file mode 100644 index 0000000..cf57665 --- /dev/null +++ b/psutil-5.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2fc91d068faa5613c093335f0e758673ef8c722ad4bfa4aded64c13ae69089eb +size 345519 diff --git a/python-psutil.changes b/python-psutil.changes index 6fad397..f76ffe9 100644 --- a/python-psutil.changes +++ b/python-psutil.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Wed Mar 15 13:52:27 UTC 2017 - michael@stroeder.com + +- update to version 5.2.0 + +**Enhancements** + +- 971_: [Linux] Add psutil.sensors_fans() function. (patch by Nicolas Hennion) +- 976_: [Windows] Process.io_counters() has 2 new fields: *other_count* and + *other_bytes*. +- 976_: [Linux] Process.io_counters() has 2 new fields: *read_chars* and + *write_chars*. + +**Bug fixes** + +- 872_: [Linux] can now compile on Linux by using MUSL C library. +- 985_: [Windows] Fix a crash in `Process.open_files` when the worker thread for `NtQueryObject` times out. +- 986_: [Linux] Process.cwd() may raise NoSuchProcess instead of ZombieProcess. + ------------------------------------------------------------------- Wed Feb 8 14:40:55 UTC 2017 - michael@stroeder.com diff --git a/python-psutil.spec b/python-psutil.spec index fd1cc6a..e7de8d2 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -17,7 +17,7 @@ Name: python-psutil -Version: 5.1.3 +Version: 5.2.0 Release: 0 Summary: A process utilities module for Python License: BSD-3-Clause From 65304126b7317236f7c56283225e81f84dc666a510f86dee70ad9828db03dac3 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Tue, 21 Mar 2017 13:36:57 +0000 Subject: [PATCH 3/3] Accepting request 480661 from devel:languages:python:singlespec - update for singlespec OBS-URL: https://build.opensuse.org/request/show/480661 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psutil?expand=0&rev=72 --- python-psutil.changes | 5 +++++ python-psutil.spec | 23 +++++++++++------------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/python-psutil.changes b/python-psutil.changes index f76ffe9..a8673ae 100644 --- a/python-psutil.changes +++ b/python-psutil.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 16 14:56:27 UTC 2017 - jmatejek@suse.com + +- update for singlespec + ------------------------------------------------------------------- Wed Mar 15 13:52:27 UTC 2017 - michael@stroeder.com diff --git a/python-psutil.spec b/python-psutil.spec index e7de8d2..bf11b45 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -1,7 +1,7 @@ # # spec file for package python-psutil # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-psutil Version: 5.2.0 Release: 0 @@ -23,16 +24,14 @@ Summary: A process utilities module for Python License: BSD-3-Clause Group: Development/Languages/Python Url: https://pypi.python.org/pypi/psutil/ -Source: https://pypi.io/packages/source/p/psutil/psutil-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: unzip +Source: https://files.pythonhosted.org/packages/source/p/psutil/psutil-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros Requires: net-tools Requires: procps BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%endif +%python_subpackages %description A graphical interface that lets you easily analyze and introspect unaltered running Python processes. @@ -40,20 +39,20 @@ A graphical interface that lets you easily analyze and introspect unaltered runn %prep %setup -q -n psutil-%{version} # Remove shebangs -sed -i "1d" psutil/{__init__.py,_compat.py,_psbsd.py,_pslinux.py,_psosx.py,_psposix.py,_pssunos.py,_pswindows.py} +sed -i "1s/#!.*//" psutil/{__init__.py,_compat.py,_psbsd.py,_pslinux.py,_psosx.py,_psposix.py,_pssunos.py,_pswindows.py} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install # not working due to lack of root priveleges # %check # make test # make memtest -%files +%files %{python_files} %defattr(-,root,root,-) %doc CREDITS scripts HISTORY.rst LICENSE README.rst %{python_sitearch}/psutil/