Control: tags 937129 + patch
Dear maintainer, I've prepared an NMU for netifaces (versioned as 0.10.9-0.2). The diff is attached to this message. Regards.
diff -Nru netifaces-0.10.9/debian/changelog netifaces-0.10.9/debian/changelog --- netifaces-0.10.9/debian/changelog 2019-11-25 11:16:02.000000000 -0500 +++ netifaces-0.10.9/debian/changelog 2020-01-31 00:43:09.000000000 -0500 @@ -1,3 +1,10 @@ +netifaces (0.10.9-0.2) unstable; urgency=medium + + * Non-maintainer upload. + * Drop python2 support; Closes: #937129 + + -- Sandro Tosi <mo...@debian.org> Fri, 31 Jan 2020 00:43:09 -0500 + netifaces (0.10.9-0.1) unstable; urgency=medium * Non-maintainer upload. diff -Nru netifaces-0.10.9/debian/control netifaces-0.10.9/debian/control --- netifaces-0.10.9/debian/control 2019-11-25 11:16:02.000000000 -0500 +++ netifaces-0.10.9/debian/control 2020-01-31 00:39:47.000000000 -0500 @@ -8,9 +8,6 @@ Build-Depends: debhelper (>= 9), dh-python, - python-all-dbg, - python-all-dev, - python-setuptools, python3-all-dbg, python3-all-dev, python3-setuptools, @@ -19,39 +16,6 @@ Vcs-Browser: https://salsa.debian.org/python-team/modules/netifaces Homepage: http://alastairs-place.net/projects/netifaces/ -Package: python-netifaces -Architecture: any -Depends: - ${misc:Depends}, - ${python:Depends}, - ${shlibs:Depends}, -Provides: - ${python:Provides}, -XB-Python-Version: ${python:Versions} -Description: portable network interface information - Python 2.x - netifaces provides a (hopefully portable-ish) way for Python programmers to - get access to a list of the network interfaces on the local machine, and to - obtain the addresses of those network interfaces. - . - This package contains the module for Python 2.x. - -Package: python-netifaces-dbg -Section: debug -Priority: extra -Architecture: any -Depends: - python-dbg, - python-netifaces (= ${binary:Version}), - ${misc:Depends}, - ${shlibs:Depends}, -XB-Python-Version: ${python:Versions} -Description: portable network interface information - Python 2.x debug extension - netifaces provides a (hopefully portable-ish) way for Python programmers to - get access to a list of the network interfaces on the local machine, and to - obtain the addresses of those network interfaces. - . - This package contains debug symbols of python-netifaces. - Package: python3-netifaces Architecture: any Depends: diff -Nru netifaces-0.10.9/debian/python-netifaces.install netifaces-0.10.9/debian/python-netifaces.install --- netifaces-0.10.9/debian/python-netifaces.install 2018-04-02 16:08:38.000000000 -0400 +++ netifaces-0.10.9/debian/python-netifaces.install 1969-12-31 19:00:00.000000000 -0500 @@ -1,2 +0,0 @@ -usr/lib/python2.*/*/*.egg-info -usr/lib/python2.*/*/netifaces.so diff -Nru netifaces-0.10.9/debian/rules netifaces-0.10.9/debian/rules --- netifaces-0.10.9/debian/rules 2019-11-25 11:16:02.000000000 -0500 +++ netifaces-0.10.9/debian/rules 2020-01-31 00:40:57.000000000 -0500 @@ -1,42 +1,33 @@ #!/usr/bin/make -f -PYVERS = $(shell pyversions -vr) -PYVERSION = $(shell pyversions -vd) +PY3VERSION = $(shell py3versions -vd) PY3VERS = $(shell py3versions -vr) %: - dh $@ --with=python2,python3 + dh $@ --with=python3 --buildsystem=pybuild override_dh_auto_clean: rm -rf $(CURDIR)/build dh_auto_clean -override_dh_auto_build: - set -ex && for pyvers in $(PYVERS) $(PY3VERS); do \ - python$$pyvers setup.py build; \ - python$$pyvers-dbg setup.py build; \ - done - -override_dh_auto_install: - set -ex && for pyvers in $(PYVERS) $(PY3VERS); do \ - python$$pyvers setup.py install --install-layout=deb --root $(CURDIR)/debian/tmp; \ - python$$pyvers-dbg setup.py install --install-layout=deb --root $(CURDIR)/debian/tmp; \ - done + +#override_dh_auto_install: +# set -ex && for pyvers in $(PYVERS) $(PY3VERS); do \ +# python$$pyvers setup.py install --install-layout=deb --root $(CURDIR)/debian/tmp; \ +# python$$pyvers-dbg setup.py install --install-layout=deb --root $(CURDIR)/debian/tmp; \ +# done override_dh_installdocs: dh_installdocs - rm -rf debian/python-netifaces-dbg/usr/share/doc/python-netifaces-dbg - ln -s python-netifaces debian/python-netifaces-dbg/usr/share/doc/python-netifaces-dbg rm -rf debian/python3-netifaces-dbg/usr/share/doc/python3-netifaces-dbg ln -s python3-netifaces debian/python3-netifaces-dbg/usr/share/doc/python3-netifaces-dbg override_dh_strip: - dh_strip -X"python3" --dbg-package=python-netifaces-dbg - dh_strip -X"python2" --dbg-package=python3-netifaces-dbg + dh_strip --dbg-package=python3-netifaces-dbg override_dh_python3: find debian/python3-netifaces -name 'netifaces.cpython-*d*-$(DEB_HOST_MULTIARCH).so' | xargs -r rm -f