forked from pool/python-psutil
Accepting request 253184 from home:TheBlackCat:branches:devel:languages:python
Update to version 2.1.2 OBS-URL: https://build.opensuse.org/request/show/253184 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psutil?expand=0&rev=28
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:508e4a44c8253a386a0f86d9c9bd4a1b4cbb2f94e88d49a19c1513653ca66c45
|
|
||||||
size 167397
|
|
3
psutil-2.1.2.tar.gz
Normal file
3
psutil-2.1.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:897e5163e0669001bf8bcb0557362f14703356336519082a93c38d54e5b392e4
|
||||||
|
size 223595
|
@@ -1,3 +1,103 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 30 10:32:34 UTC 2014 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Update documentation files
|
||||||
|
- Spec file cleanups
|
||||||
|
- Update shebang fix
|
||||||
|
- Disable broken unit tests: tests don't work without root permissions
|
||||||
|
- Update dependencies. We should actually guarantee psutil and so
|
||||||
|
on are installed.
|
||||||
|
- Update urls
|
||||||
|
- Update to version 2.1.2
|
||||||
|
* Enhancements
|
||||||
|
* #407: project moved from Google Code to Github; code moved from Mercurial
|
||||||
|
to Git.
|
||||||
|
* #492: use tox to run tests on multiple python versions. (patch by msabramo)
|
||||||
|
* #505: [Windows] distribution as wheel packages.
|
||||||
|
* #511: new examples/ps.py sample code.
|
||||||
|
* Bug fixes
|
||||||
|
* #340: [Windows] Process.get_open_files() no longer hangs. (patch by
|
||||||
|
Jeff Tang)
|
||||||
|
* #501: [Windows] disk_io_counters() may return negative values.
|
||||||
|
* #503: [Linux] in rare conditions Process exe(), open_files() and
|
||||||
|
connections() methods can raise OSError(ESRCH) instead of NoSuchProcess.
|
||||||
|
* #504: [Linux] can't build RPM packages via setup.py
|
||||||
|
* #506: [Linux] python 2.4 support was broken.
|
||||||
|
* #522: [Linux] Process.cpu_affinity() might return EINVAL. (patch by David
|
||||||
|
Daeschler)
|
||||||
|
* #529: [Windows] Process.exe() may raise unhandled WindowsError exception
|
||||||
|
for PIDs 0 and 4. (patch by Jeff Tang)
|
||||||
|
* #530: [Linux] psutil.disk_io_counters() may crash on old Linux distros
|
||||||
|
(< 2.6.5) (patch by Yaolong Huang)
|
||||||
|
* #533: [Linux] Process.memory_maps() may raise TypeError on old Linux distros.
|
||||||
|
- Update to version 2.1.1
|
||||||
|
* Bug fixes
|
||||||
|
* #446: [Windows] fix encoding error when using net_io_counters() on Python 3.
|
||||||
|
(patch by Szigeti Gabor Niif)
|
||||||
|
* #460: [Windows] net_io_counters() wraps after 4G.
|
||||||
|
* #491: [Linux] psutil.net_connections() exceptions. (patch by Alexander Grothe)
|
||||||
|
- Update to version 2.1.0
|
||||||
|
* 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.
|
||||||
|
- Update to version 2.0.0
|
||||||
|
* 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
|
||||||
|
* Renamed psutil.* functions
|
||||||
|
* All psutil.Process ``get_*`` methods lost the ``get_`` prefix.
|
||||||
|
get_ext_memory_info() renamed to memory_info_ex().
|
||||||
|
Assuming "p = psutil.Process()"
|
||||||
|
* All psutil.Process ``set_*`` methods lost the ``set_`` prefix.
|
||||||
|
Assuming "p = psutil.Process()"
|
||||||
|
* 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()"
|
||||||
|
* 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.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 27 21:26:26 UTC 2013 - p.drouand@gmail.com
|
Wed Nov 27 21:26:26 UTC 2013 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-psutil
|
# spec file for package python-psutil
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,15 +17,19 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: python-psutil
|
Name: python-psutil
|
||||||
Version: 1.2.1
|
Version: 2.1.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A process utilities module for Python
|
Summary: A process utilities module for Python
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://code.google.com/p/psutil/
|
Url: https://pypi.python.org/pypi/psutil/
|
||||||
Source: psutil-%{version}.tar.gz
|
Source: https://pypi.python.org/packages/source/p/psutil/psutil-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
|
BuildRequires: net-tools
|
||||||
|
BuildRequires: procps
|
||||||
|
Requires: net-tools
|
||||||
|
Requires: procps
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
%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)")}
|
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||||
@@ -37,7 +41,7 @@ A graphical interface that lets you easily analyze and introspect unaltered runn
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n psutil-%{version}
|
%setup -q -n psutil-%{version}
|
||||||
# Remove shebangs
|
# Remove shebangs
|
||||||
sed -i "1d" psutil/{__init__.py,_compat.py,_psbsd.py,_pslinux.py,_psmswindows.py,_psosx.py,_psposix.py,error.py}
|
# sed -i "1d" psutil/{__init__.py,_compat.py,_psbsd.py,_pslinux.py,_psmswindows.py,_psosx.py,_psposix.py,error.py}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
python setup.py build
|
||||||
@@ -46,14 +50,15 @@ python setup.py build
|
|||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# fails with "no module named psutil"
|
# not working due to lack of root priveleges
|
||||||
# python setup.py test
|
# make test
|
||||||
|
# make memtest
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CREDITS examples HISTORY LICENSE README
|
%doc CREDITS examples HISTORY.rst LICENSE README.rst TODO
|
||||||
%{python_sitearch}/psutil/
|
%{python_sitearch}/psutil/
|
||||||
%{python_sitearch}/_psutil_*.so
|
%{python_sitearch}/_psutil_*.so
|
||||||
%{python_sitearch}/psutil-%{version}-py%{py_ver}.egg-info
|
%{python_sitearch}/psutil-%{version}-py*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user