Hello community, here is the log from the commit of package python3-psutil for openSUSE:Factory checked in at 2014-11-19 20:26:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-psutil (Old) and /work/SRC/openSUSE:Factory/.python3-psutil.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-psutil" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-psutil/python3-psutil.changes 2014-09-30 19:42:29.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-psutil.new/python3-psutil.changes 2014-11-19 20:30:43.000000000 +0100 @@ -1,0 +2,6 @@ +Tue Nov 18 13:55:21 UTC 2014 - toddrme2...@gmail.com + +- Update to 2.1.3 + * fix "undefined symbol: CPU_ALLOC" compilation error. + +------------------------------------------------------------------- Old: ---- psutil-2.1.2.tar.gz New: ---- psutil-2.1.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-psutil.spec ++++++ --- /var/tmp/diff_new_pack.QiN3Oe/_old 2014-11-19 20:30:45.000000000 +0100 +++ /var/tmp/diff_new_pack.QiN3Oe/_new 2014-11-19 20:30:45.000000000 +0100 @@ -17,7 +17,7 @@ Name: python3-psutil -Version: 2.1.2 +Version: 2.1.3 Release: 0 Summary: A process utilities module for Python License: BSD-3-Clause ++++++ psutil-2.1.2.tar.gz -> psutil-2.1.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/psutil-2.1.2/.travis.yml new/psutil-2.1.3/.travis.yml --- old/psutil-2.1.2/.travis.yml 2014-05-23 20:40:52.000000000 +0200 +++ new/psutil-2.1.3/.travis.yml 2014-09-30 20:10:20.000000000 +0200 @@ -13,6 +13,7 @@ - python setup.py build - python setup.py install - python test/test_psutil.py + - python test/test_memory_leaks.py - make flake8 os: - linux diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/psutil-2.1.2/CREDITS new/psutil-2.1.3/CREDITS --- old/psutil-2.1.2/CREDITS 2014-09-15 17:47:08.000000000 +0200 +++ new/psutil-2.1.3/CREDITS 2014-09-30 20:10:20.000000000 +0200 @@ -54,7 +54,7 @@ E: david.daesch...@gmail.com W: http://daviddaeschler.com D: some contributions to initial design/bootstrap plus occasional bug fixing -I: 522 +I: 522, 536 N: cjgohlke E: cjgoh...@gmail.com diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/psutil-2.1.2/HISTORY.rst new/psutil-2.1.3/HISTORY.rst --- old/psutil-2.1.2/HISTORY.rst 2014-09-21 15:49:46.000000000 +0200 +++ new/psutil-2.1.3/HISTORY.rst 2014-09-30 20:10:20.000000000 +0200 @@ -1,5 +1,13 @@ Bug tracker at https://github.com/giampaolo/psutil/issues +2.1.3 2014-09-26 +================ + +**Bug fixes** + +- #536: [Linux]: fix "undefined symbol: CPU_ALLOC" compilation error. + + 2.1.2 - 2014-09-21 ================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/psutil-2.1.2/Makefile new/psutil-2.1.3/Makefile --- old/psutil-2.1.2/Makefile 2014-07-15 17:23:11.000000000 +0200 +++ new/psutil-2.1.3/Makefile 2014-09-23 21:58:24.000000000 +0200 @@ -86,4 +86,5 @@ # git-tag a new release git-tag-release: - git tag -a release-`python -c "import setup; print(setup.VERSION)"` -m `git rev-list HEAD --count`:`git rev-parse --short HEAD` + git tag -a release-`python -c "import setup; print(setup.get_version())"` -m `git rev-list HEAD --count`:`git rev-parse --short HEAD` + echo "done; now run 'git push --follow-tags' to push the new tag on the remote repo" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/psutil-2.1.2/PKG-INFO new/psutil-2.1.3/PKG-INFO --- old/psutil-2.1.2/PKG-INFO 2014-09-21 15:50:53.000000000 +0200 +++ new/psutil-2.1.3/PKG-INFO 2014-09-30 20:10:35.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: psutil -Version: 2.1.2 +Version: 2.1.3 Summary: psutil is a cross-platform library for retrieving information onrunning processes and system utilization (CPU, memory, disks, network)in Python. Home-page: https://github.com/giampaolo/psutil Author: Giampaolo Rodola @@ -45,7 +45,7 @@ tools such as: ps, top, lsof, netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime, pidof, tty, taskset, pmap. It currently supports **Linux, Windows, OSX, FreeBSD** and **Sun Solaris**, both **32-bit** and - **64-bit** architectures, with Python versions from **2.4 to 3.4**. Pypi is + **64-bit** architectures, with Python versions from **2.4 to 3.4**. PyPy is also known to work. ==================== @@ -68,6 +68,7 @@ * https://github.com/nicolargo/glances * https://github.com/Jahaja/psdash + * https://code.google.com/p/grr/ ============== Example usages @@ -326,6 +327,7 @@ Timeline ======== + - 2014-09-26: `psutil-2.1.3.tar.gz <https://pypi.python.org/packages/source/p/psutil/psutil-2.1.3.tar.gz>`_ - 2014-09-21: `psutil-2.1.2.tar.gz <https://pypi.python.org/packages/source/p/psutil/psutil-2.1.2.tar.gz>`_ - 2014-04-30: `psutil-2.1.1.tar.gz <https://pypi.python.org/packages/source/p/psutil/psutil-2.1.1.tar.gz>`_ - 2014-04-08: `psutil-2.1.0.tar.gz <https://pypi.python.org/packages/source/p/psutil/psutil-2.1.0.tar.gz>`_ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/psutil-2.1.2/README.rst new/psutil-2.1.3/README.rst --- old/psutil-2.1.2/README.rst 2014-09-21 15:50:04.000000000 +0200 +++ new/psutil-2.1.3/README.rst 2014-09-30 20:10:20.000000000 +0200 @@ -37,7 +37,7 @@ tools such as: ps, top, lsof, netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime, pidof, tty, taskset, pmap. It currently supports **Linux, Windows, OSX, FreeBSD** and **Sun Solaris**, both **32-bit** and -**64-bit** architectures, with Python versions from **2.4 to 3.4**. Pypi is +**64-bit** architectures, with Python versions from **2.4 to 3.4**. PyPy is also known to work. ==================== @@ -60,6 +60,7 @@ * https://github.com/nicolargo/glances * https://github.com/Jahaja/psdash + * https://code.google.com/p/grr/ ============== Example usages @@ -318,6 +319,7 @@ Timeline ======== +- 2014-09-26: `psutil-2.1.3.tar.gz <https://pypi.python.org/packages/source/p/psutil/psutil-2.1.3.tar.gz>`_ - 2014-09-21: `psutil-2.1.2.tar.gz <https://pypi.python.org/packages/source/p/psutil/psutil-2.1.2.tar.gz>`_ - 2014-04-30: `psutil-2.1.1.tar.gz <https://pypi.python.org/packages/source/p/psutil/psutil-2.1.1.tar.gz>`_ - 2014-04-08: `psutil-2.1.0.tar.gz <https://pypi.python.org/packages/source/p/psutil/psutil-2.1.0.tar.gz>`_ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/psutil-2.1.2/psutil/__init__.py new/psutil-2.1.3/psutil/__init__.py --- old/psutil-2.1.2/psutil/__init__.py 2014-07-15 17:23:11.000000000 +0200 +++ new/psutil-2.1.3/psutil/__init__.py 2014-09-30 20:10:20.000000000 +0200 @@ -13,7 +13,7 @@ from __future__ import division __author__ = "Giampaolo Rodola'" -__version__ = "2.1.2" +__version__ = "2.1.3" version_info = tuple([int(num) for num in __version__.split('.')]) __all__ = [ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/psutil-2.1.2/psutil/_psutil_linux.c new/psutil-2.1.3/psutil/_psutil_linux.c --- old/psutil-2.1.2/psutil/_psutil_linux.c 2014-09-15 17:28:01.000000000 +0200 +++ new/psutil-2.1.3/psutil/_psutil_linux.c 2014-09-30 20:10:20.000000000 +0200 @@ -252,8 +252,13 @@ /* - * Return process CPU affinity as a Python long (the bitmask) + * Return process CPU affinity as a Python list + * The dual implementation exists because of: + * https://github.com/giampaolo/psutil/issues/536 */ + +#ifdef CPU_ALLOC + static PyObject * psutil_proc_cpu_affinity_get(PyObject *self, PyObject *args) { @@ -289,7 +294,7 @@ res = PyList_New(0); if (res == NULL) goto error; - + cpucount_s = CPU_COUNT_S(setsize, mask); for (cpu = 0, count = cpucount_s; count; cpu++) { if (CPU_ISSET_S(cpu, setsize, mask)) { @@ -317,7 +322,38 @@ Py_XDECREF(res); return NULL; } +#else + +static PyObject * +psutil_proc_cpu_affinity_get(PyObject *self, PyObject *args) +{ + cpu_set_t cpuset; + unsigned int len = sizeof(cpu_set_t); + long pid; + int i; + PyObject* ret_list; + + if (!PyArg_ParseTuple(args, "i", &pid)) { + return NULL; + } + + CPU_ZERO(&cpuset); + if (sched_getaffinity(pid, len, &cpuset) < 0) { + return PyErr_SetFromErrno(PyExc_OSError); + } + + ret_list = PyList_New(0); + + for (i = 0; i < CPU_SETSIZE; ++i) { + if (CPU_ISSET(i, &cpuset)) { + PyList_Append(ret_list, Py_BuildValue("i", i)); + } + } + + return ret_list; +} +#endif /* * Set process CPU affinity; expects a bitmask @@ -374,8 +410,10 @@ return Py_None; error: - if (py_cpu_seq != NULL) + if (py_cpu_seq != NULL) { Py_DECREF(py_cpu_seq); + } + return NULL; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/psutil-2.1.2/psutil.egg-info/PKG-INFO new/psutil-2.1.3/psutil.egg-info/PKG-INFO --- old/psutil-2.1.2/psutil.egg-info/PKG-INFO 2014-09-21 15:50:53.000000000 +0200 +++ new/psutil-2.1.3/psutil.egg-info/PKG-INFO 2014-09-30 20:10:34.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: psutil -Version: 2.1.2 +Version: 2.1.3 Summary: psutil is a cross-platform library for retrieving information onrunning processes and system utilization (CPU, memory, disks, network)in Python. Home-page: https://github.com/giampaolo/psutil Author: Giampaolo Rodola @@ -45,7 +45,7 @@ tools such as: ps, top, lsof, netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime, pidof, tty, taskset, pmap. It currently supports **Linux, Windows, OSX, FreeBSD** and **Sun Solaris**, both **32-bit** and - **64-bit** architectures, with Python versions from **2.4 to 3.4**. Pypi is + **64-bit** architectures, with Python versions from **2.4 to 3.4**. PyPy is also known to work. ==================== @@ -68,6 +68,7 @@ * https://github.com/nicolargo/glances * https://github.com/Jahaja/psdash + * https://code.google.com/p/grr/ ============== Example usages @@ -326,6 +327,7 @@ Timeline ======== + - 2014-09-26: `psutil-2.1.3.tar.gz <https://pypi.python.org/packages/source/p/psutil/psutil-2.1.3.tar.gz>`_ - 2014-09-21: `psutil-2.1.2.tar.gz <https://pypi.python.org/packages/source/p/psutil/psutil-2.1.2.tar.gz>`_ - 2014-04-30: `psutil-2.1.1.tar.gz <https://pypi.python.org/packages/source/p/psutil/psutil-2.1.1.tar.gz>`_ - 2014-04-08: `psutil-2.1.0.tar.gz <https://pypi.python.org/packages/source/p/psutil/psutil-2.1.0.tar.gz>`_ -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org