diff -Nru pyserial-3.4/debian/changelog pyserial-3.4/debian/changelog --- pyserial-3.4/debian/changelog 2020-01-07 13:21:42.000000000 +0000 +++ pyserial-3.4/debian/changelog 2020-02-03 16:29:07.000000000 +0000 @@ -1,3 +1,10 @@ +pyserial (3.4-5.1) unstable; urgency=medium + + * Non-maintainer upload. + * Drop python2 support; Closes: #937533 + + -- Sandro Tosi Mon, 03 Feb 2020 11:29:07 -0500 + pyserial (3.4-5) unstable; urgency=medium * Re-add the build dependency on python2, use python2 in the rules file. diff -Nru pyserial-3.4/debian/control pyserial-3.4/debian/control --- pyserial-3.4/debian/control 2020-01-07 13:21:37.000000000 +0000 +++ pyserial-3.4/debian/control 2020-02-03 16:26:53.000000000 +0000 @@ -3,23 +3,11 @@ Priority: optional Maintainer: Matthias Klose Build-Depends: debhelper (>= 9) -Build-Depends-Indep: python2, python3, dh-python, - python-setuptools, python3-setuptools, -XS-Python-Version: all +Build-Depends-Indep: python3, dh-python, + python3-setuptools, Standards-Version: 4.4.1 Homepage: http://pyserial.sourceforge.net/ -Package: python-serial -Architecture: all -Depends: ${python:Depends}, ${misc:Depends} -Suggests: python-wxgtk3.0 | python-wxgtk -XB-Python-Version: ${python:Versions} -Description: pyserial - module encapsulating access for the serial port - This module encapsulates the access for the serial port. It provides - back-ends for standard Python running on Windows, Linux, BSD (possibly - any POSIX compliant system). The module named "serial" automatically - selects the appropriate back-end. - Package: python3-serial Architecture: all Depends: ${python3:Depends}, ${misc:Depends} diff -Nru pyserial-3.4/debian/rules pyserial-3.4/debian/rules --- pyserial-3.4/debian/rules 2020-01-07 13:20:16.000000000 +0000 +++ pyserial-3.4/debian/rules 2020-02-03 16:27:36.000000000 +0000 @@ -6,8 +6,6 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -PY_INTERPRETER = /usr/bin/python - build: build-stamp build-indep: build-stamp build-arch: @@ -15,7 +13,6 @@ build-stamp: dh_testdir - python2 setup.py build python3 setup.py build touch build-stamp @@ -32,13 +29,9 @@ dh_testroot dh_prep dh_installdirs - python2 setup.py install --root=$(CURDIR)/debian/python-serial --install-layout=deb - find debian/python-serial -name 'aio.py*' | xargs -r rm -f python3 setup.py install --root=$(CURDIR)/debian/python3-serial --install-layout=deb - dh_python2 dh_python3 mv debian/python3-serial/usr/bin/miniterm.py debian/python3-serial/usr/bin/miniterm - rm -f debian/python-serial/usr/bin/miniterm.py # Build architecture-independent files here. binary-indep: build install