Control: tags 938178 + patch

Dear maintainer,

I've prepared an NMU for python-snappy (versioned as 0.5.3-1.1). The diff
is attached to this message.

Regards.

diff -Nru python-snappy-0.5.3/debian/changelog python-snappy-0.5.3/debian/changelog
--- python-snappy-0.5.3/debian/changelog	2018-07-31 09:33:13.000000000 -0400
+++ python-snappy-0.5.3/debian/changelog	2019-12-20 14:36:43.000000000 -0500
@@ -1,3 +1,10 @@
+python-snappy (0.5.3-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Drop python2 support; Closes: #938178
+
+ -- Sandro Tosi <mo...@debian.org>  Fri, 20 Dec 2019 14:36:43 -0500
+
 python-snappy (0.5.3-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru python-snappy-0.5.3/debian/control python-snappy-0.5.3/debian/control
--- python-snappy-0.5.3/debian/control	2018-07-31 09:33:13.000000000 -0400
+++ python-snappy-0.5.3/debian/control	2019-12-20 14:36:00.000000000 -0500
@@ -5,26 +5,11 @@
 Build-Depends: debhelper (>= 9),
                dh-python,
                libsnappy-dev,
-               python-all-dev,
-               python-setuptools,
                python3-all-dev,
                python3-setuptools,
 Standards-Version: 4.1.5
 Homepage: http://github.com/andrix/python-snappy
 
-Package: python-snappy
-Architecture: any
-Depends: ${misc:Depends},
-         ${python:Depends},
-         ${shlibs:Depends},
-Description: snappy compression library from Google - Python 2.7
- Snappy is a compression/decompression library. It does not aim for
- maximum compression, or compatibility with any other compression
- library; instead, it aims for very high speeds and reasonable
- compression. You can read package libsnappy1 for more information.
- .
- This package provides the Python 2.7 module.
-
 Package: python3-snappy
 Architecture: any
 Depends: ${misc:Depends},
diff -Nru python-snappy-0.5.3/debian/rules python-snappy-0.5.3/debian/rules
--- python-snappy-0.5.3/debian/rules	2018-07-31 09:33:13.000000000 -0400
+++ python-snappy-0.5.3/debian/rules	2019-12-20 14:36:39.000000000 -0500
@@ -1,7 +1,6 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
-PYTHONS:=$(shell pyversions -vr)
 PYTHON3S:=$(shell py3versions -vr)
 
 DEBVERS         ?= $(shell dpkg-parsechangelog -SVersion)
@@ -16,7 +15,7 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
 
 %:
-	dh $@ --buildsystem=python_distutils --with python2,python3
+	dh $@ --buildsystem=pybuild --with python3
 
 override_dh_auto_clean:
 	dh_auto_clean
@@ -24,10 +23,6 @@
 	rm -rf python_snappy.egg-info
 
 override_dh_auto_install:
-	set -e ; for pyvers in $(PYTHONS); do \
-		python$$pyvers setup.py install --install-layout=deb \
-			--root $(CURDIR)/debian/python-snappy; \
-	done
 	set -e ; for pyvers in $(PYTHON3S); do \
 		python$$pyvers setup.py install --install-layout=deb \
 			--root $(CURDIR)/debian/python3-snappy; \

Reply via email to