Control: tags 937459 + patch

Dear maintainer,

I've prepared an NMU for pyinotify (versioned as 0.9.6-1.3). The diff
is attached to this message.

Regards.

diff -Nru pyinotify-0.9.6/debian/changelog pyinotify-0.9.6/debian/changelog
--- pyinotify-0.9.6/debian/changelog	2019-08-07 22:31:14.000000000 -0400
+++ pyinotify-0.9.6/debian/changelog	2020-04-03 12:15:30.000000000 -0400
@@ -1,3 +1,10 @@
+pyinotify (0.9.6-1.3) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Drop python2 support; Closes: #937459
+
+ -- Sandro Tosi <mo...@debian.org>  Fri, 03 Apr 2020 12:15:30 -0400
+
 pyinotify (0.9.6-1.2) unstable; urgency=medium
 
   * Replace previous NMU with a new source-only upload.
diff -Nru pyinotify-0.9.6/debian/control pyinotify-0.9.6/debian/control
--- pyinotify-0.9.6/debian/control	2019-08-07 21:12:21.000000000 -0400
+++ pyinotify-0.9.6/debian/control	2020-04-03 12:13:58.000000000 -0400
@@ -3,23 +3,12 @@
 Priority: optional
 Maintainer: Mikhail Gusarov <dotted...@debian.org>
 Uploaders: Debian Python Modules Team <python-modules-t...@lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7.0.50~), python (>= 2.6.6-3~), python3-all, dh-python
+Build-Depends: debhelper (>= 7.0.50~), python3-all, dh-python
 Standards-Version: 3.9.3
 Homepage: https://github.com/seb-m/pyinotify
 Vcs-Git: https://salsa.debian.org/python-team/modules/pyinotify.git
 Vcs-Browser: https://salsa.debian.org/python-team/modules/pyinotify
 
-Package: python-pyinotify
-Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}
-Provides: ${python:Provides}
-Suggests: python-pyinotify-doc
-Description: simple Linux inotify Python bindings
- pyinotify is a simple wrapper for the Linux inotify mechanism.
- .
- inotify is a Linux Kernel feature available since 2.6.13. inotify makes
- it possible for applications to easily be notified of filesystem changes.
-
 Package: python3-pyinotify
 Architecture: all
 Depends: ${python3:Depends}, ${misc:Depends}
@@ -37,7 +26,7 @@
 Architecture: all
 Section: doc
 Depends: ${misc:Depends}
-Recommends: python-pyinotify, python3-pyinotify
+Recommends: python3-pyinotify
 Description: simple Linux inotify Python bindings -- documentation
  pyinotify is a simple wrapper for the Linux inotify mechanism.
  .
diff -Nru pyinotify-0.9.6/debian/python3-pyinotify.install pyinotify-0.9.6/debian/python3-pyinotify.install
--- pyinotify-0.9.6/debian/python3-pyinotify.install	2019-08-07 21:12:21.000000000 -0400
+++ pyinotify-0.9.6/debian/python3-pyinotify.install	1969-12-31 19:00:00.000000000 -0500
@@ -1 +0,0 @@
-usr/lib/python3
diff -Nru pyinotify-0.9.6/debian/python-pyinotify.install pyinotify-0.9.6/debian/python-pyinotify.install
--- pyinotify-0.9.6/debian/python-pyinotify.install	2019-08-07 21:12:21.000000000 -0400
+++ pyinotify-0.9.6/debian/python-pyinotify.install	1969-12-31 19:00:00.000000000 -0500
@@ -1 +0,0 @@
-usr/lib/python2*
diff -Nru pyinotify-0.9.6/debian/rules pyinotify-0.9.6/debian/rules
--- pyinotify-0.9.6/debian/rules	2019-08-07 21:12:21.000000000 -0400
+++ pyinotify-0.9.6/debian/rules	2020-04-03 12:14:32.000000000 -0400
@@ -1,27 +1,6 @@
 #!/usr/bin/make -f
 
-PYTHON3=$(shell py3versions -vr)
+export PYBUILD_NAME=pyinotify
 
 %:
-	dh $@ --with python2,python3
-
-override_dh_auto_clean:
-	dh_auto_clean -- --all
-
-	rm -rf build
-	rm -rf *.egg-info
-	rm -rf html
-	[ ! -e docstrings.orig ] || mv docstrings.orig docstrings
-
-build-python%:
-	python$* setup.py build
-
-override_dh_auto_build: $(PYTHON3:%=build-python%)
-	dh_auto_build
-
-install-python%:
-	python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
-
-override_dh_auto_install: $(PYTHON3:%=install-python%)
-	dh_auto_install
-	[ ! -e docstrings ] || mv docstrings docstrings.orig
+	dh $@ --with python3 --buildsystem=pybuild

Reply via email to