Hello community,
here is the log from the commit of package python-setproctitle for
openSUSE:Factory checked in at 2013-09-16 16:35:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-setproctitle (Old)
and /work/SRC/openSUSE:Factory/.python-setproctitle.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-setproctitle"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-setproctitle/python-setproctitle.changes
2013-03-08 13:30:43.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.python-setproctitle.new/python-setproctitle.changes
2013-09-16 16:35:31.000000000 +0200
@@ -1,0 +2,6 @@
+Sat Sep 14 17:48:24 UTC 2013 - [email protected]
+
+- Update to 1.1.7:
+ * Added PyPy support, courtesy of Ozan Turksever (http://www.logsign.net).
+
+-------------------------------------------------------------------
Old:
----
setproctitle-1.1.6.tar.gz
New:
----
setproctitle-1.1.7.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-setproctitle.spec ++++++
--- /var/tmp/diff_new_pack.aygLin/_old 2013-09-16 16:35:32.000000000 +0200
+++ /var/tmp/diff_new_pack.aygLin/_new 2013-09-16 16:35:32.000000000 +0200
@@ -17,7 +17,7 @@
Name: python-setproctitle
-Version: 1.1.6
+Version: 1.1.7
Release: 0
Summary: Python module to allow customization of the process title
License: BSD-3-Clause
++++++ setproctitle-1.1.6.tar.gz -> setproctitle-1.1.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.6/HISTORY.rst
new/setproctitle-1.1.7/HISTORY.rst
--- old/setproctitle-1.1.6/HISTORY.rst 2012-04-27 12:01:06.000000000 +0200
+++ new/setproctitle-1.1.7/HISTORY.rst 2013-02-20 00:34:08.000000000 +0100
@@ -1,6 +1,12 @@
Releases history
----------------
+Version 1.1.7
+~~~~~~~~~~~~~
+
+- Added PyPy support, courtesy of Ozan Turksever (http://www.logsign.net).
+
+
Version 1.1.6
~~~~~~~~~~~~~
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.6/PKG-INFO
new/setproctitle-1.1.7/PKG-INFO
--- old/setproctitle-1.1.6/PKG-INFO 2012-04-27 12:04:31.000000000 +0200
+++ new/setproctitle-1.1.7/PKG-INFO 2013-02-20 00:44:08.000000000 +0100
@@ -1,6 +1,6 @@
-Metadata-Version: 1.0
+Metadata-Version: 1.1
Name: setproctitle
-Version: 1.1.6
+Version: 1.1.7
Summary: A library to allow customization of the process title.
Home-page: http://code.google.com/p/py-setproctitle/
Author: Daniele Varrazzo
@@ -142,6 +142,12 @@
Releases history
----------------
+ Version 1.1.7
+ ~~~~~~~~~~~~~
+
+ - Added PyPy support, courtesy of Ozan Turksever
(http://www.logsign.net).
+
+
Version 1.1.6
~~~~~~~~~~~~~
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.6/setup.py
new/setproctitle-1.1.7/setup.py
--- old/setproctitle-1.1.6/setup.py 2012-04-27 12:00:47.000000000 +0200
+++ new/setproctitle-1.1.7/setup.py 2013-02-20 00:34:08.000000000 +0100
@@ -5,7 +5,7 @@
Copyright (c) 2009-2012 Daniele Varrazzo <[email protected]>
"""
-VERSION = '1.1.6'
+VERSION = '1.1.7'
import os
import re
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.6/src/spt_python.h
new/setproctitle-1.1.7/src/spt_python.h
--- old/setproctitle-1.1.6/src/spt_python.h 2012-04-27 12:00:09.000000000
+0200
+++ new/setproctitle-1.1.7/src/spt_python.h 2013-02-20 00:34:08.000000000
+0100
@@ -18,6 +18,11 @@
#define IS_PY3K
#endif
+/* Detect pypy */
+#ifdef PYPY_VERSION
+#define IS_PYPY
+#endif
+
/* The type returned by Py_GetArgcArgv */
#ifdef IS_PY3K
typedef wchar_t argv_t;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.6/src/spt_setup.c
new/setproctitle-1.1.7/src/spt_setup.c
--- old/setproctitle-1.1.6/src/spt_setup.c 2012-04-27 12:00:47.000000000
+0200
+++ new/setproctitle-1.1.7/src/spt_setup.c 2013-02-20 00:34:08.000000000
+0100
@@ -368,8 +368,10 @@
char *arg0 = NULL;
int rv = -1;
+#ifndef IS_PYPY
spt_debug("reading argc/argv from Python main");
Py_GetArgcArgv(&argc, &argv_py);
+#endif
if (argc > 0) {
spt_debug("found %d arguments", argc);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.6/tests/setproctitle_test.py
new/setproctitle-1.1.7/tests/setproctitle_test.py
--- old/setproctitle-1.1.6/tests/setproctitle_test.py 2012-04-27
12:00:09.000000000 +0200
+++ new/setproctitle-1.1.7/tests/setproctitle_test.py 2013-02-20
00:34:08.000000000 +0100
@@ -14,6 +14,7 @@
from subprocess import Popen, PIPE
IS_PY3K = sys.version_info[0] == 3
+IS_PYPY = '__pypy__' in sys.builtin_module_names
# SkipTest is available from Python 2.7 and in nose
try:
@@ -65,12 +66,11 @@
print os.getpid()
# ps can fail on kfreebsd arch
# (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=460331)
- print os.popen("ps -o pid,command 2> /dev/null").read()
+ print os.popen("ps -x -o pid,command 2> /dev/null").read()
""")
lines = filter(None, rv.splitlines())
pid = lines.pop(0)
pids = dict([r.strip().split(None, 1) for r in lines])
-
title = self._clean_up_title(pids[pid])
self.assertEqual(title, "Hello, world!")
@@ -162,7 +162,7 @@
import os
print os.getpid()
- print os.popen("ps -o pid,command 2> /dev/null").read()
+ print os.popen("ps -x -o pid,command 2>
/dev/null").read()
""")))
finally:
f.close()
@@ -207,7 +207,7 @@
import locale
from subprocess import Popen, PIPE
print os.getpid()
- proc = Popen("ps -o pid,command 2> /dev/null", shell=True,
+ proc = Popen("ps -x -o pid,command 2> /dev/null", shell=True,
close_fds=True, stdout=PIPE, stderr=PIPE)
buf = proc.stdout.read()
print buf.decode(locale.getpreferredencoding(), 'replace')
@@ -240,7 +240,7 @@
import os
print os.getpid()
- print os.popen("ps -o pid,command 2> /dev/null").read()
+ print os.popen("ps -x -o pid,command 2> /dev/null").read()
""", args=u" ".join(["-", "hello", euro, snowman]))
except TypeError:
raise SkipTest(
@@ -275,7 +275,7 @@
import os
print os.getpid()
- print os.popen("ps -o pid,command 2> /dev/null").read()
+ print os.popen("ps -x -o pid,command 2> /dev/null").read()
""",
args=u" ".join(["-", "foo", "bar", "baz"]),
executable=exc)
@@ -291,6 +291,9 @@
def test_embedded(self):
"""Check the module works with embedded Python.
"""
+ if IS_PYPY:
+ raise SkipTest("skip test, pypy")
+
if not os.path.exists('/proc/%s/cmdline' % os.getpid()):
raise SkipTest("known failure: '/proc/PID/cmdline' not available")
@@ -305,7 +308,7 @@
import os
print os.getpid()
- print os.popen("ps -o pid,command 2> /dev/null").read()
+ print os.popen("ps -x -o pid,command 2> /dev/null").read()
""",
executable=exe)
lines = filter(None, rv.splitlines())
@@ -317,6 +320,9 @@
def test_embedded_many_args(self):
"""Check more complex cmdlines are handled in embedded env too."""
+ if IS_PYPY:
+ raise SkipTest("skip test, pypy")
+
if not os.path.exists('/proc/%s/cmdline' % os.getpid()):
raise SkipTest("known failure: '/proc/PID/cmdline' not available")
@@ -331,7 +337,7 @@
import os
print os.getpid()
- print os.popen("ps -o pid,command 2> /dev/null").read()
+ print os.popen("ps -x -o pid,command 2> /dev/null").read()
""",
executable=exe,
args=u" ".join(["foo", "bar", "baz"]))
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]