Hello community,
here is the log from the commit of package python3-setproctitle for
openSUSE:Factory checked in at 2016-05-16 12:03:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-setproctitle (Old)
and /work/SRC/openSUSE:Factory/.python3-setproctitle.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-setproctitle"
Changes:
--------
---
/work/SRC/openSUSE:Factory/python3-setproctitle/python3-setproctitle.changes
2015-08-01 11:35:08.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.python3-setproctitle.new/python3-setproctitle.changes
2016-05-16 12:03:58.000000000 +0200
@@ -1,0 +2,17 @@
+Sat May 14 04:42:50 UTC 2016 - [email protected]
+
+- specfile:
+ * require setuptools
+
+- update to version 1.1.10:
+ * Fixed building with certain "prctl.h" implementations (issue #44).
+ * Use "setuptools" if available (issue #48).
+
+-------------------------------------------------------------------
+Sun May 8 07:06:12 UTC 2016 - [email protected]
+
+- specfile:
+ * changed to https for source url
+ * updated source url to files.pythonhosted.org
+
+-------------------------------------------------------------------
Old:
----
setproctitle-1.1.9.tar.gz
New:
----
setproctitle-1.1.10.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python3-setproctitle.spec ++++++
--- /var/tmp/diff_new_pack.60P0z3/_old 2016-05-16 12:03:59.000000000 +0200
+++ /var/tmp/diff_new_pack.60P0z3/_new 2016-05-16 12:03:59.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python3-setproctitle
#
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 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
@@ -17,14 +17,15 @@
Name: python3-setproctitle
-Version: 1.1.9
+Version: 1.1.10
Release: 0
Summary: Python module to allow customization of the process title
License: BSD-3-Clause
Group: Development/Libraries/Python
Url: http://pypi.python.org/pypi/setproctitle/
-Source:
http://pypi.python.org/packages/source/s/setproctitle/setproctitle-%{version}.tar.gz
+Source:
https://files.pythonhosted.org/packages/source/s/setproctitle/setproctitle-%{version}.tar.gz
BuildRequires: python3-devel
+BuildRequires: python3-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
++++++ setproctitle-1.1.9.tar.gz -> setproctitle-1.1.10.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/COPYRIGHT
new/setproctitle-1.1.10/COPYRIGHT
--- old/setproctitle-1.1.9/COPYRIGHT 2015-07-20 00:44:29.000000000 +0200
+++ new/setproctitle-1.1.10/COPYRIGHT 2016-05-11 18:33:38.000000000 +0200
@@ -1,4 +1,4 @@
-Copyright (c) 2009-2015, Daniele Varrazzo <[email protected]>
+Copyright (c) 2009-2016, Daniele Varrazzo <[email protected]>
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/HISTORY.rst
new/setproctitle-1.1.10/HISTORY.rst
--- old/setproctitle-1.1.9/HISTORY.rst 2015-07-20 00:44:29.000000000 +0200
+++ new/setproctitle-1.1.10/HISTORY.rst 2016-05-11 18:24:21.000000000 +0200
@@ -1,6 +1,13 @@
Releases history
----------------
+Version 1.1.10
+~~~~~~~~~~~~~~
+
+- Fixed building with certain ``prctl.h`` implementations (issue #44).
+- Use ``setuptools`` if available (issue #48).
+
+
Version 1.1.9
~~~~~~~~~~~~~
@@ -12,14 +19,15 @@
Version 1.1.8
~~~~~~~~~~~~~
-- Added support for Python "diehard" 2.4.
+- Added support for Python "diehard" 2.4 (pull request #3).
- Fixed build on Mac OS X 10.9 Maverick (issue #27).
Version 1.1.7
~~~~~~~~~~~~~
-- Added PyPy support, courtesy of Ozan Turksever (http://www.logsign.net).
+- Added PyPy support, courtesy of Ozan Turksever - http://www.logsign.net
+ (pull request #2).
Version 1.1.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/MANIFEST
new/setproctitle-1.1.10/MANIFEST
--- old/setproctitle-1.1.9/MANIFEST 2015-07-20 01:21:01.000000000 +0200
+++ new/setproctitle-1.1.10/MANIFEST 1970-01-01 01:00:00.000000000 +0100
@@ -1,21 +0,0 @@
-# file GENERATED by distutils, do NOT edit
-COPYRIGHT
-HISTORY.rst
-MANIFEST
-MANIFEST.in
-Makefile
-README.rst
-setup.py
-src/c.h
-src/setproctitle.c
-src/spt.h
-src/spt_config.h
-src/spt_debug.c
-src/spt_python.h
-src/spt_setup.c
-src/spt_setup.h
-src/spt_status.c
-src/spt_status.h
-src/spt_strlcpy.c
-tests/pyrun.c
-tests/setproctitle_test.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/MANIFEST.in
new/setproctitle-1.1.10/MANIFEST.in
--- old/setproctitle-1.1.9/MANIFEST.in 2014-09-01 08:16:46.000000000 +0200
+++ new/setproctitle-1.1.10/MANIFEST.in 2016-05-11 18:24:21.000000000 +0200
@@ -2,7 +2,6 @@
include README.rst
include COPYRIGHT
include MANIFEST.in
-include MANIFEST
include Makefile
include src/*.c
include src/*.h
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/Makefile
new/setproctitle-1.1.10/Makefile
--- old/setproctitle-1.1.9/Makefile 2015-07-20 00:44:29.000000000 +0200
+++ new/setproctitle-1.1.10/Makefile 2016-05-11 18:33:38.000000000 +0200
@@ -1,6 +1,6 @@
# Oh, makefile, help me with the python3 craze :D
#
-# Copyright (c) 2010-2015 Daniele Varrazzo <[email protected]>
+# Copyright (c) 2010-2016 Daniele Varrazzo <[email protected]>
MKDIR = mkdir -p
RM = rm -f
@@ -44,11 +44,11 @@
ROOT_PATH=$(ROOT_PATH) \
$(PYTHON) py3/tests/setproctitle_test.py -v
-py3: MANIFEST
+py3:
$(MKDIR) py3
$(MKDIR) py3/src
$(MKDIR) py3/tests
- for f in `grep -v "#" MANIFEST`; do cp -v $$f py3/$$f; done
+ for f in *.rst setup.py COPYRIGHT MANIFEST.in src/*.c src/*.h
tests/*.py tests/*.c; do cp -v $$f py3/$$f; done
# setup.py should be executable with python3 as distribute
# currenlty doesn't seem to try to convert it
$(PY2TO3) -w --no-diffs py3/tests
@@ -58,15 +58,8 @@
endif
-sdist: MANIFEST
+sdist:
$(PYTHON) setup.py sdist --formats=gztar,zip
-MANIFEST:
- # Must run twice because the manifest contains the manifest itself.
- $(PYTHON) setup.py sdist --manifest-only
- $(PYTHON) setup.py sdist --manifest-only
-
clean:
- $(RM) -r MANIFEST py3 build dist tests/pyrun2 tests/pyrun3
-
-
+ $(RM) -r py3 build dist tests/pyrun2 tests/pyrun3 setproctitle.egg-info
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/PKG-INFO
new/setproctitle-1.1.10/PKG-INFO
--- old/setproctitle-1.1.9/PKG-INFO 2015-07-20 01:21:01.000000000 +0200
+++ new/setproctitle-1.1.10/PKG-INFO 2016-05-11 18:37:44.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: setproctitle
-Version: 1.1.9
+Version: 1.1.10
Summary: A Python module to customize the process title
Home-page: https://github.com/dvarrazzo/py-setproctitle
Author: Daniele Varrazzo
@@ -136,6 +136,13 @@
Releases history
----------------
+ Version 1.1.10
+ ~~~~~~~~~~~~~~
+
+ - Fixed building with certain ``prctl.h`` implementations (issue #44).
+ - Use ``setuptools`` if available (issue #48).
+
+
Version 1.1.9
~~~~~~~~~~~~~
@@ -147,14 +154,15 @@
Version 1.1.8
~~~~~~~~~~~~~
- - Added support for Python "diehard" 2.4.
+ - Added support for Python "diehard" 2.4 (pull request #3).
- Fixed build on Mac OS X 10.9 Maverick (issue #27).
Version 1.1.7
~~~~~~~~~~~~~
- - Added PyPy support, courtesy of Ozan Turksever
(http://www.logsign.net).
+ - Added PyPy support, courtesy of Ozan Turksever -
http://www.logsign.net
+ (pull request #2).
Version 1.1.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/setproctitle.egg-info/PKG-INFO
new/setproctitle-1.1.10/setproctitle.egg-info/PKG-INFO
--- old/setproctitle-1.1.9/setproctitle.egg-info/PKG-INFO 1970-01-01
01:00:00.000000000 +0100
+++ new/setproctitle-1.1.10/setproctitle.egg-info/PKG-INFO 2016-05-11
18:37:44.000000000 +0200
@@ -0,0 +1,275 @@
+Metadata-Version: 1.1
+Name: setproctitle
+Version: 1.1.10
+Summary: A Python module to customize the process title
+Home-page: https://github.com/dvarrazzo/py-setproctitle
+Author: Daniele Varrazzo
+Author-email: [email protected]
+License: BSD
+Download-URL: http://pypi.python.org/pypi/setproctitle/
+Description: A Python module to customize the process title
+ ==============================================
+
+ :author: Daniele Varrazzo
+
+ The ``setproctitle`` module allows a process to change its title (as
displayed
+ by system tools such as ``ps`` and ``top``).
+
+ Changing the title is mostly useful in multi-process systems, for
example
+ when a master process is forked: changing the children's title allows
to
+ identify the task each process is busy with. The technique is used by
+ PostgreSQL_ and the `OpenSSH Server`_ for example.
+
+ The procedure is hardly portable across different systems. PostgreSQL
provides
+ a good `multi-platform implementation`__: this module is a Python
wrapper
+ around PostgreSQL code.
+
+ - `Homepage <https://github.com/dvarrazzo/py-setproctitle>`__
+ - `Download <http://pypi.python.org/pypi/setproctitle/>`__
+ - `Bug tracker <https://github.com/dvarrazzo/py-setproctitle/issues>`__
+
+
+ .. _PostgreSQL: http://www.postgresql.org
+ .. _OpenSSH Server: http://www.openssh.com/
+ .. __: http://doxygen.postgresql.org/ps__status_8c_source.html
+
+
+ Installation
+ ------------
+
+ ``setproctitle`` is a C extension: in order to build it you will need
a C
+ compiler and the Python development support (the ``python-dev``
package in
+ most Linux distributions). No further external dependencies are
required.
+
+ You can use ``pip`` to install the module::
+
+ pip install setproctitle
+
+ You can use ``pip -t`` or ``virtualenv`` for local installations,
``sudo pip``
+ for a system-wide one... the usual stuff. Read pip_ or virtualenv_
docs for
+ all the details.
+
+ .. _pip: https://pip.readthedocs.org/
+ .. _virtualenv: https://virtualenv.readthedocs.org/
+
+
+ Python 3 support
+ ~~~~~~~~~~~~~~~~
+
+ As of version 1.1 the module works with Python 3. Just use
+ ``pip``/``virtualenv`` for Python 3.
+
+ In order to build from the source package and test the module under
Python 3,
+ the ``Makefile`` contains some helper targets.
+
+
+ Usage
+ -----
+
+ The ``setproctitle`` module exports the following functions:
+
+ ``setproctitle(title)``
+ Set *title* as the title for the current process.
+
+ ``getproctitle()``
+ Return the current process title.
+
+
+ Environment variables
+ ~~~~~~~~~~~~~~~~~~~~~
+
+ A few environment variables can be used to customize the module
behavior:
+
+ ``SPT_NOENV``
+ Avoid clobbering ``/proc/PID/environ``.
+
+ On many platforms, setting the process title will clobber the
+ ``environ`` memory area. ``os.environ`` will work as expected from
within
+ the Python process, but the content of the file
``/proc/PID/environ`` will
+ be overwritten. If you require this file not to be broken you can
set the
+ ``SPT_NOENV`` environment variable to any non-empty value: in this
case
+ the maximum length for the title will be limited to the length of
the
+ command line.
+
+ ``SPT_DEBUG``
+ Print debug information on ``stderr``.
+
+ If the module doesn't work as expected you can set this variable
to a
+ non-empty value to generate information useful for debugging.
Note that
+ the most useful information is printed when the module is
imported, not
+ when the functions are called.
+
+
+ Module status
+ -------------
+
+ The module can be currently compiled and effectively used on the
following
+ platforms:
+
+ - GNU/Linux
+ - BSD
+ - MacOS X
+ - Windows
+
+ Note that on Windows there is no way to change the process string:
+ what the module does is to create a *Named Object* whose value can be
read
+ using a tool such as `Process Explorer`_ (contribution of a more
useful tool
+ to be used together with ``setproctitle`` would be well accepted).
+
+ The module can probably work on HP-UX, but I haven't found any to test
with.
+ It is unlikely that it can work on Solaris instead.
+
+ .. _Process Explorer:
http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx
+
+
+ Other known implementations and discussions
+ -------------------------------------------
+
+ - `procname`_: a module exposing the same functionality, but less
portable
+ and not well packaged.
+ - `Issue 5672`_: where the introduction of such functionality into the
stdlib
+ is being discussed.
+
+ .. _procname: http://code.google.com/p/procname/
+ .. _Issue 5672: http://bugs.python.org/issue5672
+
+ Releases history
+ ----------------
+
+ Version 1.1.10
+ ~~~~~~~~~~~~~~
+
+ - Fixed building with certain ``prctl.h`` implementations (issue #44).
+ - Use ``setuptools`` if available (issue #48).
+
+
+ Version 1.1.9
+ ~~~~~~~~~~~~~
+
+ - Fixed build on VC (issues #20, #33).
+ - Added ``MANIFEST.in`` to the source distribution to help with RPM
building
+ (issue #30).
+
+
+ Version 1.1.8
+ ~~~~~~~~~~~~~
+
+ - Added support for Python "diehard" 2.4 (pull request #3).
+ - Fixed build on Mac OS X 10.9 Maverick (issue #27).
+
+
+ Version 1.1.7
+ ~~~~~~~~~~~~~
+
+ - Added PyPy support, courtesy of Ozan Turksever -
http://www.logsign.net
+ (pull request #2).
+
+
+ Version 1.1.6
+ ~~~~~~~~~~~~~
+
+ - The module can be compiled again on Windows (issue #21).
+
+
+ Version 1.1.5
+ ~~~~~~~~~~~~~
+
+ - No module bug, but a packaging issue: files ``README`` and
``HISTORY``
+ added back into the distribution.
+
+
+ Version 1.1.4
+ ~~~~~~~~~~~~~
+
+ - The module works correctly in embedded Python.
+ - ``setproctitle()`` accepts a keyword argument.
+ - Debug output support always compiled in: the variable ``SPT_DEBUG``
can be
+ used to emit debug log.
+
+
+ Version 1.1.3
+ ~~~~~~~~~~~~~
+
+ - Don't clobber environ if the variable ``SPT_NOENV`` is set (issue
#16).
+
+
+ Version 1.1.2
+ ~~~~~~~~~~~~~
+
+ - Find the setproctitle include file on OpenBSD (issue #11).
+ - Skip test with unicode if the file system encoding wouldn't make it
pass
+ (issue #13).
+
+
+ Version 1.1.1
+ ~~~~~~~~~~~~~
+
+ - Fixed segfault when the module is imported under mod_wsgi (issue #9).
+
+
+ Version 1.1
+ ~~~~~~~~~~~
+
+ - The module works correctly with Python 3.
+
+
+ Version 1.0.1
+ ~~~~~~~~~~~~~
+
+ - ``setproctitle()`` works even when Python messes up with argv, e.g.
when run
+ with the -m option (issue #8).
+
+
+ Version 1.0
+ ~~~~~~~~~~~
+
+ No major change since the previous version. The module has been
heavily used
+ in production environment without any problem reported, so it's time
to declare
+ it stable.
+
+
+ Version 0.4
+ ~~~~~~~~~~~
+
+ - Module works on BSD (tested on FreeBSD 7.2).
+
+ - Module works on Windows. Many thanks to `Develer`_ for providing a
neat `GCC
+ package for Windows with Python integration`__ that made the Windows
porting
+ painless.
+
+ .. _Develer: http://www.develer.com/
+ .. __: http://www.develer.com/oss/GccWinBinaries
+
+
+ Version 0.3
+ ~~~~~~~~~~~
+
+ - Module works on Mac OS X 10.2. Reported working on OS X 10.6 too.
+
+
+ Version 0.2
+ ~~~~~~~~~~~
+
+ - Added ``prctl()`` call on Linux >= 2.6.9 to update
``/proc/self/status``.
+
+
+ Version 0.1
+ ~~~~~~~~~~~
+
+ - Initial public release.
+
+Platform: GNU/Linux
+Platform: BSD
+Platform: MacOS X
+Platform: Windows
+Classifier: Development Status :: 5 - Production/Stable
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: BSD License
+Classifier: Programming Language :: C
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 3
+Classifier: Operating System :: POSIX :: Linux
+Classifier: Operating System :: POSIX :: BSD
+Classifier: Operating System :: MacOS :: MacOS X
+Classifier: Operating System :: Microsoft :: Windows
+Classifier: Topic :: Software Development
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/setproctitle.egg-info/SOURCES.txt
new/setproctitle-1.1.10/setproctitle.egg-info/SOURCES.txt
--- old/setproctitle-1.1.9/setproctitle.egg-info/SOURCES.txt 1970-01-01
01:00:00.000000000 +0100
+++ new/setproctitle-1.1.10/setproctitle.egg-info/SOURCES.txt 2016-05-11
18:37:44.000000000 +0200
@@ -0,0 +1,23 @@
+COPYRIGHT
+HISTORY.rst
+MANIFEST.in
+Makefile
+README.rst
+setup.py
+setproctitle.egg-info/PKG-INFO
+setproctitle.egg-info/SOURCES.txt
+setproctitle.egg-info/dependency_links.txt
+setproctitle.egg-info/top_level.txt
+src/c.h
+src/setproctitle.c
+src/spt.h
+src/spt_config.h
+src/spt_debug.c
+src/spt_python.h
+src/spt_setup.c
+src/spt_setup.h
+src/spt_status.c
+src/spt_status.h
+src/spt_strlcpy.c
+tests/pyrun.c
+tests/setproctitle_test.py
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/setproctitle-1.1.9/setproctitle.egg-info/dependency_links.txt
new/setproctitle-1.1.10/setproctitle.egg-info/dependency_links.txt
--- old/setproctitle-1.1.9/setproctitle.egg-info/dependency_links.txt
1970-01-01 01:00:00.000000000 +0100
+++ new/setproctitle-1.1.10/setproctitle.egg-info/dependency_links.txt
2016-05-11 18:37:44.000000000 +0200
@@ -0,0 +1 @@
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/setproctitle-1.1.9/setproctitle.egg-info/top_level.txt
new/setproctitle-1.1.10/setproctitle.egg-info/top_level.txt
--- old/setproctitle-1.1.9/setproctitle.egg-info/top_level.txt 1970-01-01
01:00:00.000000000 +0100
+++ new/setproctitle-1.1.10/setproctitle.egg-info/top_level.txt 2016-05-11
18:37:44.000000000 +0200
@@ -0,0 +1 @@
+setproctitle
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/setup.cfg
new/setproctitle-1.1.10/setup.cfg
--- old/setproctitle-1.1.9/setup.cfg 1970-01-01 01:00:00.000000000 +0100
+++ new/setproctitle-1.1.10/setup.cfg 2016-05-11 18:37:44.000000000 +0200
@@ -0,0 +1,5 @@
+[egg_info]
+tag_build =
+tag_date = 0
+tag_svn_revision = 0
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/setup.py
new/setproctitle-1.1.10/setup.py
--- old/setproctitle-1.1.9/setup.py 2015-07-20 00:46:05.000000000 +0200
+++ new/setproctitle-1.1.10/setup.py 2016-05-11 18:33:38.000000000 +0200
@@ -2,17 +2,23 @@
"""
setproctitle setup script.
-Copyright (c) 2009-2015 Daniele Varrazzo <[email protected]>
+Copyright (c) 2009-2016 Daniele Varrazzo <[email protected]>
"""
-VERSION = '1.1.9'
-
import os
import re
import sys
-from distutils.core import setup, Extension
-define_macros={}
+try:
+ from setuptools import setup, Extension
+except ImportError:
+ from distutils.core import setup, Extension
+
+
+VERSION = '1.1.10'
+
+
+define_macros = {}
define_macros['SPT_VERSION'] = VERSION
@@ -20,7 +26,7 @@
try:
linux_version = list(map(int,
re.search("[.0-9]+", os.popen("uname -r").read())
- .group().split(".")[:3]))
+ .group().split(".")[:3]))
except:
pass
else:
@@ -31,7 +37,7 @@
# __darwin__ symbol is not defined; __APPLE__ is instead.
define_macros['__darwin__'] = 1
-elif 'bsd' in sys.platform: # OMG, how many of them are?
+elif 'bsd' in sys.platform: # OMG, how many of them are?
# Old BSD versions don't have setproctitle
# TODO: not tested on an "old BSD"
if 0 == os.spawnlp(os.P_WAIT, 'grep',
@@ -47,13 +53,13 @@
mod_spt = Extension('setproctitle',
define_macros=list(define_macros.items()),
- sources = [
+ sources=[
'src/setproctitle.c',
'src/spt_debug.c',
'src/spt_setup.c',
'src/spt_status.c',
'src/spt_strlcpy.c',
- ])
+ ])
# patch distutils if it can't cope with the "classifiers" or
# "download_url" keywords
@@ -66,23 +72,23 @@
kwargs = {}
try:
kwargs['long_description'] = (
- open('README.rst').read()
- + '\n'
- +open('HISTORY.rst').read())
+ open('README.rst').read() +
+ '\n' +
+ open('HISTORY.rst').read())
except:
pass
setup(
- name = 'setproctitle',
- description = 'A Python module to customize the process title',
- version = VERSION,
- author = 'Daniele Varrazzo',
- author_email = '[email protected]',
- url = 'https://github.com/dvarrazzo/py-setproctitle',
- download_url = 'http://pypi.python.org/pypi/setproctitle/',
- license = 'BSD',
- platforms = ['GNU/Linux', 'BSD', 'MacOS X', 'Windows'],
- classifiers = [ r for r in map(str.strip, """
+ name='setproctitle',
+ description='A Python module to customize the process title',
+ version=VERSION,
+ author='Daniele Varrazzo',
+ author_email='[email protected]',
+ url='https://github.com/dvarrazzo/py-setproctitle',
+ download_url='http://pypi.python.org/pypi/setproctitle/',
+ license='BSD',
+ platforms=['GNU/Linux', 'BSD', 'MacOS X', 'Windows'],
+ classifiers=[r for r in map(str.strip, """
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: BSD License
@@ -95,5 +101,5 @@
Operating System :: Microsoft :: Windows
Topic :: Software Development
""".splitlines()) if r],
- ext_modules = [mod_spt],
+ ext_modules=[mod_spt],
**kwargs)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/src/c.h
new/setproctitle-1.1.10/src/c.h
--- old/setproctitle-1.1.9/src/c.h 2015-07-20 00:44:29.000000000 +0200
+++ new/setproctitle-1.1.10/src/c.h 2016-05-11 18:33:38.000000000 +0200
@@ -3,7 +3,7 @@
* c.h
* A few fundamental C definitions.
*
- * Copyright (c) 2009-2015 Daniele Varrazzo <[email protected]>
+ * Copyright (c) 2009-2016 Daniele Varrazzo <[email protected]>
*-------------------------------------------------------------------------
*/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/src/setproctitle.c
new/setproctitle-1.1.10/src/setproctitle.c
--- old/setproctitle-1.1.9/src/setproctitle.c 2015-07-20 00:44:29.000000000
+0200
+++ new/setproctitle-1.1.10/src/setproctitle.c 2016-05-11 18:33:38.000000000
+0200
@@ -3,7 +3,7 @@
* setproctitle.c
* Python extension module to update and read the process title.
*
- * Copyright (c) 2009-2015 Daniele Varrazzo <[email protected]>
+ * Copyright (c) 2009-2016 Daniele Varrazzo <[email protected]>
*
* The module allows Python code to access the functions get_ps_display()
* and set_ps_display().
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/src/spt.h
new/setproctitle-1.1.10/src/spt.h
--- old/setproctitle-1.1.9/src/spt.h 2015-07-20 00:44:29.000000000 +0200
+++ new/setproctitle-1.1.10/src/spt.h 2016-05-11 18:33:38.000000000 +0200
@@ -3,7 +3,7 @@
* spt.h
* Definitions useful throughout all the extension.
*
- * Copyright (c) 2010-2015 Daniele Varrazzo <[email protected]>
+ * Copyright (c) 2010-2016 Daniele Varrazzo <[email protected]>
*
*-------------------------------------------------------------------------
*/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/src/spt_debug.c
new/setproctitle-1.1.10/src/spt_debug.c
--- old/setproctitle-1.1.9/src/spt_debug.c 2015-07-20 00:44:29.000000000
+0200
+++ new/setproctitle-1.1.10/src/spt_debug.c 2016-05-11 18:33:38.000000000
+0200
@@ -3,7 +3,7 @@
* spt_python.c
* A simple function for the module debugging.
*
- * Copyright (c) 2009-2015 Daniele Varrazzo <[email protected]>
+ * Copyright (c) 2009-2016 Daniele Varrazzo <[email protected]>
*
* Debug logging is enabled if the environment variable SPT_DEBUG is set to a
* non-empty value at runtime.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/src/spt_python.h
new/setproctitle-1.1.10/src/spt_python.h
--- old/setproctitle-1.1.9/src/spt_python.h 2015-07-20 00:44:29.000000000
+0200
+++ new/setproctitle-1.1.10/src/spt_python.h 2016-05-11 18:33:38.000000000
+0200
@@ -3,7 +3,7 @@
* spt_python.h
* Include and customize Python definitions.
*
- * Copyright (c) 2010-2015 Daniele Varrazzo <[email protected]>
+ * Copyright (c) 2010-2016 Daniele Varrazzo <[email protected]>
*
*-------------------------------------------------------------------------
*/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/src/spt_setup.c
new/setproctitle-1.1.10/src/spt_setup.c
--- old/setproctitle-1.1.9/src/spt_setup.c 2015-07-20 00:44:29.000000000
+0200
+++ new/setproctitle-1.1.10/src/spt_setup.c 2016-05-11 18:33:38.000000000
+0200
@@ -3,7 +3,7 @@
* spt_setup.c
* Initalization code for the spt_status.c module functions.
*
- * Copyright (c) 2009-2015 Daniele Varrazzo <[email protected]>
+ * Copyright (c) 2009-2016 Daniele Varrazzo <[email protected]>
*
*-------------------------------------------------------------------------
*/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/src/spt_setup.h
new/setproctitle-1.1.10/src/spt_setup.h
--- old/setproctitle-1.1.9/src/spt_setup.h 2015-07-20 00:44:29.000000000
+0200
+++ new/setproctitle-1.1.10/src/spt_setup.h 2016-05-11 18:33:38.000000000
+0200
@@ -3,7 +3,7 @@
* spt_setup.h
* Initalization code for the spt_status.c module functions.
*
- * Copyright (c) 2009-2015 Daniele Varrazzo <[email protected]>
+ * Copyright (c) 2009-2016 Daniele Varrazzo <[email protected]>
*
*-------------------------------------------------------------------------
*/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/src/spt_status.c
new/setproctitle-1.1.10/src/spt_status.c
--- old/setproctitle-1.1.9/src/spt_status.c 2015-07-20 00:44:29.000000000
+0200
+++ new/setproctitle-1.1.10/src/spt_status.c 2016-05-11 18:33:38.000000000
+0200
@@ -5,7 +5,7 @@
* Mechanism differs wildly across platforms.
*
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
- * Copyright (c) 2009-2015 Daniele Varrazzo <[email protected]>
+ * Copyright (c) 2009-2016 Daniele Varrazzo <[email protected]>
* various details abducted from various places
*
* This file was taken from PostgreSQL. The PostgreSQL copyright terms follow.
@@ -55,7 +55,6 @@
#endif
#ifdef HAVE_SYS_PRCTL_H
#include <sys/prctl.h> /* for Linux >= 2.6.9 */
-#include <linux/prctl.h>
#endif
#if defined(__darwin__)
#include <crt_externs.h>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/tests/pyrun.c
new/setproctitle-1.1.10/tests/pyrun.c
--- old/setproctitle-1.1.9/tests/pyrun.c 2015-07-20 00:44:29.000000000
+0200
+++ new/setproctitle-1.1.10/tests/pyrun.c 2016-05-11 18:33:38.000000000
+0200
@@ -5,7 +5,7 @@
*
* Run a Python program read from stdin. In case of error return 1.
*
- * Copyright (c) 2011-2015 Daniele Varrazzo <[email protected]>
+ * Copyright (c) 2011-2016 Daniele Varrazzo <[email protected]>
*
*-------------------------------------------------------------------------
*/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.9/tests/setproctitle_test.py
new/setproctitle-1.1.10/tests/setproctitle_test.py
--- old/setproctitle-1.1.9/tests/setproctitle_test.py 2015-07-20
00:44:29.000000000 +0200
+++ new/setproctitle-1.1.10/tests/setproctitle_test.py 2016-05-11
18:33:38.000000000 +0200
@@ -2,7 +2,7 @@
Use nosetests to run this test suite.
-Copyright (c) 2009-2015 Daniele Varrazzo <[email protected]>
+Copyright (c) 2009-2016 Daniele Varrazzo <[email protected]>
"""
import os
@@ -30,6 +30,7 @@
# Vaffanculo, Wolf
unittest.TestCase.assert_ = unittest.TestCase.assertTrue
+
class SetproctitleTestCase(unittest.TestCase):
"""Test the module works as expected.
@@ -77,7 +78,7 @@
def test_prctl(self):
"""Check that prctl is called on supported platforms."""
linux_version = []
- if sys.platform == 'linux2':
+ if sys.platform in ('linux', 'linux2'):
try:
f = os.popen("uname -r")
name = f.read()
@@ -86,10 +87,9 @@
pass
else:
linux_version = map(int,
- re.search("[.0-9]+", name)
- .group().split(".")[:3])
+ re.search("[.0-9]+", name).group().split(".")[:3])
- if linux_version < [2,6,9]:
+ if linux_version < [2, 6, 9]:
raise SkipTest("syscall not supported")
rv = self.run_script(r"""
@@ -384,6 +384,7 @@
"title (len %s) not limited to argv (len %s)"
% (title_len, cmdline_len))
+ # Support functions
def run_script(self, script=None, args=None, executable=None, env=None):
"""run a script in a separate process.
@@ -460,12 +461,12 @@
if not script:
raise ValueError("empty script")
- line1 = script[0]
spaces = script[0][:-len(script[0].lstrip())]
assert spaces.isspace()
for i, line in enumerate(script):
- if line.isspace(): continue
+ if line.isspace():
+ continue
if line.find(spaces) != 0:
raise ValueError("inconsistent spaces at line %d (%s)"
% (i + 1, line.strip()))
@@ -485,7 +486,7 @@
if 'bsd' in sys.platform:
procname = os.path.basename(sys.executable)
title = ' '.join([t for t in title.split(' ')
- if procname not in t])
+ if procname not in t])
return title