Control: tags 938611 + patch
Control: tags 938611 + pending

Dear maintainer,

I've prepared an NMU for swiftsc (versioned as 0.5-1.1) and
uploaded it to DELAYED/5. Please feel free to tell me if I
should delay it longer.

Regards.

diff -Nru swiftsc-0.5/debian/control swiftsc-0.5/debian/control
--- swiftsc-0.5/debian/control  2013-08-15 15:21:14.000000000 +0200
+++ swiftsc-0.5/debian/control  2019-10-29 14:31:26.000000000 +0100
@@ -2,22 +2,13 @@
 Section: python
 Priority: optional
 Maintainer: Kouhei Maeda <mkou...@palmtb.net>
-Build-Depends: debhelper (>= 8.0.0), python-all (>= 2.6), python-setuptools, 
python-pytest, pep8, python-mock, python-requests, python-magic, python3-all, 
python3-setuptools, python3-requests, python3-magic, python3-pytest, 
python3-mock
+Build-Depends: debhelper (>= 8.0.0), pep8, python3-all, python3-setuptools, 
python3-requests, python3-magic, python3-pytest, python3-mock
 Standards-Version: 3.9.4
 X-Python-Version: >= 2.6, >= 3.2
 Homepage: https://github.com/mkouhei/swiftsc
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/swiftsc.git
 Vcs-Git: git://anonscm.debian.org/openstack/swiftsc.git
 
-Package: python-swiftsc
-Architecture: all
-Provides: ${python:Provides}
-Depends: ${python:Depends}, ${misc:Depends}, python-requests, python-magic
-Description: simple client library of OpenStack Swift
- This tool is simple client library of OpenStack Swift.
- This tool is intended to be used in the module and Python script other.
- The main purpose of this tool is used as a core module for backup tool.
-
 Package: python3-swiftsc
 Architecture: all
 Depends: ${python3:Depends}, ${misc:Depends}, python3-requests, python3-magic
diff -Nru swiftsc-0.5/debian/changelog swiftsc-0.5/debian/changelog
--- swiftsc-0.5/debian/changelog        2013-08-15 15:21:14.000000000 +0200
+++ swiftsc-0.5/debian/changelog        2019-10-29 14:31:56.000000000 +0100
@@ -1,3 +1,11 @@
+swiftsc (0.5-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Use pybuild to build package.
+  * Drop Python 2 support (Closes: #938611).
+
+ -- Ondřej Nový <on...@debian.org>  Tue, 29 Oct 2019 14:31:56 +0100
+
 swiftsc (0.5-1) unstable; urgency=low
 
   * Initial release (Closes: #717926)
diff -Nru swiftsc-0.5/debian/py3dist-overrides 
swiftsc-0.5/debian/py3dist-overrides
--- swiftsc-0.5/debian/py3dist-overrides        2013-08-15 15:21:14.000000000 
+0200
+++ swiftsc-0.5/debian/py3dist-overrides        2019-10-29 14:31:56.000000000 
+0100
@@ -1,2 +1 @@
 setuptools python3-setuptools 
-
diff -Nru swiftsc-0.5/debian/rules swiftsc-0.5/debian/rules
--- swiftsc-0.5/debian/rules    2013-08-15 15:21:11.000000000 +0200
+++ swiftsc-0.5/debian/rules    2019-10-29 14:31:56.000000000 +0100
@@ -3,38 +3,10 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-%:
-       dh $@ --with python2,python3
-
-override_dh_auto_build:
-       for py in $(shell pyversions -vr); do \
-               python$$py setup.py build --build-base=_build$$py; \
-       done
-
-override_dh_auto_test:
-       set -e; \
-       for py in $(shell pyversions -vr); do \
-               if [ "$$py" < "3.0" ]; then \
-                       py.test-$$py -v $(CURDIR)/_build/lib.$(shell python -c 
'import distutils.util as d; print d.get_platform()')-$$py; \
-               else \
-                       py.test-3 -v $(CURDIR)/_build/lib ;\
-               fi ;\
-       done
+export PYBUILD_NAME=swiftsc
+export PYBUILD_BEFORE_TEST=mkdir -p {build_dir}/src/swiftsc_tests ; cp -r 
{dir}/src/swiftsc_tests/*.txt {build_dir}/src/swiftsc_tests
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/src/swiftsc_tests
+export PYBUILD_AFTER_INSTALL=rm -rf {destdir}/{install_dir}/swiftsc_tests
 
-override_dh_auto_install:
-       python setup.py install --no-compile -O0 --install-layout=deb \
-               --root $(CURDIR)/debian/python-swiftsc && \
-       python3 setup.py install --no-compile -O0 --install-layout=deb \
-               --root $(CURDIR)/debian/python3-swiftsc
-       rm -rf $(CURDIR)/debian/python-swiftsc/usr/share/pyshared/swiftsc_tests
-       rm -rf 
$(CURDIR)/debian/python-swiftsc/usr/lib/python2.6/dist-packages/swiftsc_tests
-       rm -rf 
$(CURDIR)/debian/python-swiftsc/usr/lib/python2.7/dist-packages/swiftsc_tests
-       rm -rf 
$(CURDIR)/debian/python3-swiftsc/usr/lib/python3/dist-packages/swiftsc_tests
-
-override_dh_auto_clean:
-       dh_clean
-       for py in $(shell pyversions -vr); do \
-               python$$py setup.py clean --build-temp=_build && \
-               python$$py setup.py clean --build-temp=_build$$py; \
-       done
-       rm -rf $(CURDIR)/_build
+%:
+       dh $@ --with python3 --buildsystem=pybuild

Reply via email to