Package: python-setproctitle Version: 1.1.8-2 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu yakkety ubuntu-patch
Dear Maintainer, In Ubuntu, the attached patch was applied to achieve the following: * d/rules: Enable tests for py2. Tests are still disabled for py3, see: https://github.com/dvarrazzo/py-setproctitle/issues/50 * d/copyright: Drop (s) from Upstream Author(s) to fix Lintian error. Thanks for considering the patch. Corey Bryant -- System Information: Debian Release: stretch/sid APT prefers yakkety APT policy: (500, 'yakkety') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.4.0-31-generic (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
diff -Nru python-setproctitle-1.1.8/debian/copyright python-setproctitle-1.1.8/debian/copyright --- python-setproctitle-1.1.8/debian/copyright 2014-03-05 14:37:54.000000000 -0500 +++ python-setproctitle-1.1.8/debian/copyright 2016-08-01 14:49:48.000000000 -0400 @@ -4,7 +4,7 @@ It was downloaded from http://pypi.python.org/pypi/setproctitle/ -Upstream Author(s): +Upstream Author: Daniele Varrazzo <daniele.varra...@gmail.com> diff -Nru python-setproctitle-1.1.8/debian/rules python-setproctitle-1.1.8/debian/rules --- python-setproctitle-1.1.8/debian/rules 2014-03-05 14:37:54.000000000 -0500 +++ python-setproctitle-1.1.8/debian/rules 2016-08-01 14:49:54.000000000 -0400 @@ -16,22 +16,23 @@ # dh_strip --dbg-package=python-setproctitle-dbg ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) -# -#override_dh_auto_test: $(PYTHON2:%=test-%-stamp) $(PYTHON3:%=test-%-stamp) -#test-%-stamp: -# mkdir -p build/test-$* -# python$* setup.py build -# python$* setup.py install_lib -d build/test-$* -#ifeq (,$(findstring kfreebsd,$(shell dpkg-architecture -qDEB_BUILD_ARCH_OS))) -# PYTHONPATH=build/test-$* python$* /usr/bin/nosetests -v tests -#endif -# touch test-python-$*-stamp -# -test-python%: - true + +override_dh_auto_test: $(PYTHON2:%=test-%-stamp) #$(PYTHON3:%=test-%-stamp) +test-%-stamp: + mkdir -p build/test-$* + python$* setup.py build + python$* setup.py install_lib -d build/test-$* + $(CC) tests/pyrun.c $$(python$*-config --includes --libs) -o tests/pyrun2 +ifeq (,$(findstring kfreebsd,$(shell dpkg-architecture -qDEB_BUILD_ARCH_OS))) + PYTHONPATH=build/test-$* python$* /usr/bin/nosetests -v tests +endif + touch test-python-$*-stamp + +#test-python%: +# true # python$* nosetests-$* -v tests -override_dh_auto_test: $(PYTHON2:%=test-python%) $(PYTHON3:%=test-python%) +#override_dh_auto_test: $(PYTHON2:%=test-python%) $(PYTHON3:%=test-python%) endif build-python%: