Hello community,
here is the log from the commit of package python-setproctitle for
openSUSE:Factory checked in at 2017-08-04 11:58:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-setproctitle (Old)
and /work/SRC/openSUSE:Factory/.python-setproctitle.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-setproctitle"
Fri Aug 4 11:58:47 2017 rev:21 rq:508801 version:1.1.10
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-setproctitle/python-setproctitle.changes
2013-11-27 15:32:14.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.python-setproctitle.new/python-setproctitle.changes
2017-08-04 11:58:54.387638493 +0200
@@ -1,0 +2,12 @@
+Thu Jul 6 14:54:21 UTC 2017 - [email protected]
+
+- update to 1.10.0:
+ - Fixed building with certain ``prctl.h`` implementations (issue #44).
+ - Use ``setuptools`` if available (issue #48).
+ - Fixed build on VC (issues #20, #33).
+ - Added ``MANIFEST.in`` to the source distribution to help with RPM building
+ (issue #30).
+- convert to singlespec
+- fix Source url
+
+-------------------------------------------------------------------
Old:
----
setproctitle-1.1.8.tar.gz
New:
----
setproctitle-1.1.10.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-setproctitle.spec ++++++
--- /var/tmp/diff_new_pack.jw9eBa/_old 2017-08-04 11:58:55.371499623 +0200
+++ /var/tmp/diff_new_pack.jw9eBa/_new 2017-08-04 11:58:55.387497365 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-setproctitle
#
-# Copyright (c) 2013 SUSE LINUX Products 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,19 +16,21 @@
#
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-setproctitle
-Version: 1.1.8
+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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: python-devel
-%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(11)")}
-%endif
+BuildRequires: %{python_module devel}
+BuildRequires: %{python_module setuptools}
+BuildRequires: python-rpm-macros
+
+%python_subpackages
%description
Changing the title is mostly useful in multi-process systems, for example when
@@ -40,12 +42,13 @@
%setup -q -n setproctitle-%{version}
%build
-CFLAGS="%{optflags}" python setup.py build
+export CFLAGS="%{optflags}"
+%python_build
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
-%files
+%files %{python_files}
%defattr(-,root,root)
%doc COPYRIGHT HISTORY.rst README.rst
%{python_sitearch}/*
++++++ setproctitle-1.1.8.tar.gz -> setproctitle-1.1.10.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.8/COPYRIGHT
new/setproctitle-1.1.10/COPYRIGHT
--- old/setproctitle-1.1.8/COPYRIGHT 2012-02-07 22:44:32.000000000 +0100
+++ new/setproctitle-1.1.10/COPYRIGHT 2016-05-11 18:33:38.000000000 +0200
@@ -1,4 +1,4 @@
-Copyright (c) 2009-2012, 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.8/HISTORY.rst
new/setproctitle-1.1.10/HISTORY.rst
--- old/setproctitle-1.1.8/HISTORY.rst 2013-10-23 23:35:03.000000000 +0200
+++ new/setproctitle-1.1.10/HISTORY.rst 2016-05-11 18:24:21.000000000 +0200
@@ -1,17 +1,33 @@
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.
+- 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.8/MANIFEST.in
new/setproctitle-1.1.10/MANIFEST.in
--- old/setproctitle-1.1.8/MANIFEST.in 1970-01-01 01:00:00.000000000 +0100
+++ new/setproctitle-1.1.10/MANIFEST.in 2016-05-11 18:24:21.000000000 +0200
@@ -0,0 +1,9 @@
+include HISTORY.rst
+include README.rst
+include COPYRIGHT
+include MANIFEST.in
+include Makefile
+include src/*.c
+include src/*.h
+include tests/*.py
+include tests/*.c
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.8/Makefile
new/setproctitle-1.1.10/Makefile
--- old/setproctitle-1.1.8/Makefile 2012-02-07 22:44:32.000000000 +0100
+++ 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-2012 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.8/PKG-INFO
new/setproctitle-1.1.10/PKG-INFO
--- old/setproctitle-1.1.8/PKG-INFO 2013-10-23 23:53:32.000000000 +0200
+++ new/setproctitle-1.1.10/PKG-INFO 2016-05-11 18:37:44.000000000 +0200
@@ -1,19 +1,19 @@
Metadata-Version: 1.1
Name: setproctitle
-Version: 1.1.8
-Summary: A library to allow customization of the process title.
-Home-page: http://code.google.com/p/py-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 ``setproctitle`` implementation for Python
- ============================================
+Description: A Python module to customize the process title
+ ==============================================
:author: Daniele Varrazzo
- The library allows a process to change its title (as displayed by
system tools
- such as ``ps`` and ``top``).
+ 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
@@ -24,10 +24,9 @@
a good `multi-platform implementation`__: this module is a Python
wrapper
around PostgreSQL code.
- - `Homepage <http://code.google.com/p/py-setproctitle/>`__
+ - `Homepage <https://github.com/dvarrazzo/py-setproctitle>`__
- `Download <http://pypi.python.org/pypi/setproctitle/>`__
- - `Source repository <https://github.com/dvarrazzo/py-setproctitle>`__
- - `Bug tracker
<http://code.google.com/p/py-setproctitle/issues/list>`__
+ - `Bug tracker <https://github.com/dvarrazzo/py-setproctitle/issues>`__
.. _PostgreSQL: http://www.postgresql.org
@@ -38,30 +37,30 @@
Installation
------------
- You can use ``easy_install`` to install the module: to perform a
system-wide
- installation use::
+ ``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.
- sudo easy_install setproctitle
+ You can use ``pip`` to install the module::
- If you are an unprivileged user or you want to limit installation to a
local
- environment, you can use the command::
+ pip install setproctitle
- easy_install -d /target/path 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.
- Note that ``easy_install`` requires ``/target/path`` to be in your
- ``PYTHONPATH``.
+ .. _pip: https://pip.readthedocs.org/
+ .. _virtualenv: https://virtualenv.readthedocs.org/
Python 3 support
~~~~~~~~~~~~~~~~
- As of version 1.1 the module works with Python 3. In order to install
the
- module, you can use the `distribute`_ replacemente for
``easy_install``.
+ As of version 1.1 the module works with Python 3. Just use
+ ``pip``/``virtualenv`` for Python 3.
- In order to build and test the module under Python 3, the ``Makefile``
- contains some helper targets.
-
- .. _distribute: http://pypi.python.org/pypi/distribute
+ In order to build from the source package and test the module under
Python 3,
+ the ``Makefile`` contains some helper targets.
Usage
@@ -126,7 +125,7 @@
Other known implementations and discussions
-------------------------------------------
- - `procname`_: a module exposing the same functionality, but less
portable
+ - `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.
@@ -134,25 +133,36 @@
.. _procname: http://code.google.com/p/procname/
.. _Issue 5672: http://bugs.python.org/issue5672
+ Releases history
+ ----------------
- ..
- vim: set filetype=rst:
+ 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).
- Releases history
- ----------------
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.8/README.rst
new/setproctitle-1.1.10/README.rst
--- old/setproctitle-1.1.8/README.rst 2012-02-08 23:31:00.000000000 +0100
+++ new/setproctitle-1.1.10/README.rst 2015-07-20 00:44:29.000000000 +0200
@@ -1,10 +1,10 @@
-A ``setproctitle`` implementation for Python
-============================================
+A Python module to customize the process title
+==============================================
:author: Daniele Varrazzo
-The library allows a process to change its title (as displayed by system tools
-such as ``ps`` and ``top``).
+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
@@ -15,10 +15,9 @@
a good `multi-platform implementation`__: this module is a Python wrapper
around PostgreSQL code.
-- `Homepage <http://code.google.com/p/py-setproctitle/>`__
+- `Homepage <https://github.com/dvarrazzo/py-setproctitle>`__
- `Download <http://pypi.python.org/pypi/setproctitle/>`__
-- `Source repository <https://github.com/dvarrazzo/py-setproctitle>`__
-- `Bug tracker <http://code.google.com/p/py-setproctitle/issues/list>`__
+- `Bug tracker <https://github.com/dvarrazzo/py-setproctitle/issues>`__
.. _PostgreSQL: http://www.postgresql.org
@@ -29,30 +28,30 @@
Installation
------------
-You can use ``easy_install`` to install the module: to perform a system-wide
-installation use::
+``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.
- sudo easy_install setproctitle
+You can use ``pip`` to install the module::
-If you are an unprivileged user or you want to limit installation to a local
-environment, you can use the command::
+ pip install setproctitle
- easy_install -d /target/path 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.
-Note that ``easy_install`` requires ``/target/path`` to be in your
-``PYTHONPATH``.
+.. _pip: https://pip.readthedocs.org/
+.. _virtualenv: https://virtualenv.readthedocs.org/
Python 3 support
~~~~~~~~~~~~~~~~
-As of version 1.1 the module works with Python 3. In order to install the
-module, you can use the `distribute`_ replacemente for ``easy_install``.
+As of version 1.1 the module works with Python 3. Just use
+``pip``/``virtualenv`` for Python 3.
-In order to build and test the module under Python 3, the ``Makefile``
-contains some helper targets.
-
-.. _distribute: http://pypi.python.org/pypi/distribute
+In order to build from the source package and test the module under Python 3,
+the ``Makefile`` contains some helper targets.
Usage
@@ -117,15 +116,10 @@
Other known implementations and discussions
-------------------------------------------
-- `procname`_: a module exposing the same functionality, but less portable
+- `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
-
-
-..
- vim: set filetype=rst:
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.8/setproctitle.egg-info/PKG-INFO
new/setproctitle-1.1.10/setproctitle.egg-info/PKG-INFO
--- old/setproctitle-1.1.8/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.8/setproctitle.egg-info/SOURCES.txt
new/setproctitle-1.1.10/setproctitle.egg-info/SOURCES.txt
--- old/setproctitle-1.1.8/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.8/setproctitle.egg-info/dependency_links.txt
new/setproctitle-1.1.10/setproctitle.egg-info/dependency_links.txt
--- old/setproctitle-1.1.8/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.8/setproctitle.egg-info/top_level.txt
new/setproctitle-1.1.10/setproctitle.egg-info/top_level.txt
--- old/setproctitle-1.1.8/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.8/setup.cfg
new/setproctitle-1.1.10/setup.cfg
--- old/setproctitle-1.1.8/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.8/setup.py
new/setproctitle-1.1.10/setup.py
--- old/setproctitle-1.1.8/setup.py 2013-10-23 23:43:51.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-2013 Daniele Varrazzo <[email protected]>
+Copyright (c) 2009-2016 Daniele Varrazzo <[email protected]>
"""
-VERSION = '1.1.8'
-
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',
@@ -40,20 +46,20 @@
else:
define_macros['HAVE_PS_STRING'] = 1
-# NOTE: the library may work on HP-UX using pstat
+# NOTE: the module may work on HP-UX using pstat
# thus setting define_macros['HAVE_SYS_PSTAT_H']
# see http://www.noc.utoronto.ca/~mikep/unix/HPTRICKS
# But I have none handy to test with.
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 library to allow customization of the process title.',
- version = VERSION,
- author = 'Daniele Varrazzo',
- author_email = '[email protected]',
- url = 'http://code.google.com/p/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.8/src/c.h
new/setproctitle-1.1.10/src/c.h
--- old/setproctitle-1.1.8/src/c.h 2013-10-23 23:35:03.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-2012 Daniele Varrazzo <[email protected]>
+ * Copyright (c) 2009-2016 Daniele Varrazzo <[email protected]>
*-------------------------------------------------------------------------
*/
@@ -32,6 +32,13 @@
/* Let's use our version of strlcpy to avoid portability problems */
size_t spt_strlcpy(char *dst, const char *src, size_t siz);
+/* VC defines _WIN32, not WIN32 */
+#ifdef _WIN32
+#ifndef WIN32
+#define WIN32 _WIN32
+#endif
+#endif
+
#ifdef WIN32
#include <Windows.h>
#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setproctitle-1.1.8/src/setproctitle.c
new/setproctitle-1.1.10/src/setproctitle.c
--- old/setproctitle-1.1.8/src/setproctitle.c 2012-03-10 02:23:50.000000000
+0100
+++ 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-2012 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.8/src/spt.h
new/setproctitle-1.1.10/src/spt.h
--- old/setproctitle-1.1.8/src/spt.h 2012-02-07 22:44:32.000000000 +0100
+++ 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-2012 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.8/src/spt_debug.c
new/setproctitle-1.1.10/src/spt_debug.c
--- old/setproctitle-1.1.8/src/spt_debug.c 2012-03-11 11:03:23.000000000
+0100
+++ 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-2012 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.8/src/spt_python.h
new/setproctitle-1.1.10/src/spt_python.h
--- old/setproctitle-1.1.8/src/spt_python.h 2013-03-26 10:26:07.000000000
+0100
+++ 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-2012 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.8/src/spt_setup.c
new/setproctitle-1.1.10/src/spt_setup.c
--- old/setproctitle-1.1.8/src/spt_setup.c 2013-02-20 00:34:08.000000000
+0100
+++ 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-2012 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.8/src/spt_setup.h
new/setproctitle-1.1.10/src/spt_setup.h
--- old/setproctitle-1.1.8/src/spt_setup.h 2012-03-10 02:23:50.000000000
+0100
+++ 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-2012 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.8/src/spt_status.c
new/setproctitle-1.1.10/src/spt_status.c
--- old/setproctitle-1.1.8/src/spt_status.c 2013-10-23 23:35:03.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-2012 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.
@@ -40,7 +40,12 @@
#include "spt_config.h"
+/* note: VC doesn't have this, but it was working on mingw instead
+ * so check on _WIN32 (defined by VC) instead of WIN32 */
+#ifndef _WIN32
#include <unistd.h>
+#endif
+
#ifdef HAVE_SYS_PSTAT_H
#include <sys/pstat.h> /* for HP-UX */
#endif
@@ -50,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.8/tests/pyrun.c
new/setproctitle-1.1.10/tests/pyrun.c
--- old/setproctitle-1.1.8/tests/pyrun.c 2012-02-07 22:44:32.000000000
+0100
+++ 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-2012 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.8/tests/setproctitle_test.py
new/setproctitle-1.1.10/tests/setproctitle_test.py
--- old/setproctitle-1.1.8/tests/setproctitle_test.py 2013-02-20
00:34:08.000000000 +0100
+++ 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-2012 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