Control: tags 934844 + patch
Control: tags 938227 + patch

Dear maintainer,

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

Regards.

diff -Nru python-trezor-0.9.0/debian/control python-trezor-0.9.0/debian/control
--- python-trezor-0.9.0/debian/control  2018-03-10 18:16:36.000000000 +0100
+++ python-trezor-0.9.0/debian/control  2019-10-27 18:41:20.000000000 +0100
@@ -8,13 +8,6 @@
  bash-completion,
  debhelper (>= 11),
  dh-python,
- python-all,
- python-ecdsa,
- python-hid,
- python-mnemonic,
- python-protobuf,
- python-requests,
- python-setuptools,
  python3-all,
  python3-ecdsa,
  python3-hid,
@@ -28,7 +21,7 @@
 
 Package: trezor
 Architecture: all
-Depends: python3-trezor, ${misc:Depends}, ${python:Depends}
+Depends: python3-trezor, ${misc:Depends}, ${python3:Depends}
 Section: utils
 Breaks: python-trezor (<< 0.7.16-1)
 Replaces: python-trezor (<< 0.7.16-1)
@@ -42,19 +35,6 @@
  This package contains the trezorctl binary for interacting with a TREZOR
  wallet, and the udev rules needed to make the device accessible.
 
-Package: python-trezor
-Architecture: all
-Depends: ${misc:Depends}, ${python:Depends}
-Breaks: electrum (<< 3.1.0)
-Description: library for communicating with TREZOR Bitcoin HW wallet (Python 2)
- No matter how unprotected your computer or internet connection might be,
- your coins always stay safe with TREZOR as it never exposes your private keys.
- TREZOR is an isolated environment for offline transaction signing and using
- a small display you can visually verify the transaction contents. That's why
- all operations using TREZOR are entirely safe.
- .
- This package contains the Python 2 version of python-trezor.
-
 Package: python3-trezor
 Architecture: all
 Depends: ${misc:Depends}, ${python3:Depends}
diff -Nru python-trezor-0.9.0/debian/changelog 
python-trezor-0.9.0/debian/changelog
--- python-trezor-0.9.0/debian/changelog        2018-03-10 18:16:36.000000000 
+0100
+++ python-trezor-0.9.0/debian/changelog        2019-10-27 18:41:20.000000000 
+0100
@@ -1,3 +1,10 @@
+python-trezor (0.9.0-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Drop Python 2 support (Closes: #938227, #934844).
+
+ -- Ondřej Nový <on...@debian.org>  Sun, 27 Oct 2019 18:41:20 +0100
+
 python-trezor (0.9.0-1) unstable; urgency=medium
 
   [ Ondřej Nový ]
diff -Nru python-trezor-0.9.0/debian/pydist-overrides 
python-trezor-0.9.0/debian/pydist-overrides
--- python-trezor-0.9.0/debian/pydist-overrides 2018-03-10 18:16:36.000000000 
+0100
+++ python-trezor-0.9.0/debian/pydist-overrides 1970-01-01 01:00:00.000000000 
+0100
@@ -1 +0,0 @@
-hidapi python-hid; PEP386
diff -Nru python-trezor-0.9.0/debian/python-trezor.pyremove 
python-trezor-0.9.0/debian/python-trezor.pyremove
--- python-trezor-0.9.0/debian/python-trezor.pyremove   2018-03-10 
18:16:36.000000000 +0100
+++ python-trezor-0.9.0/debian/python-trezor.pyremove   1970-01-01 
01:00:00.000000000 +0100
@@ -1 +0,0 @@
-bin/trezorctl
diff -Nru python-trezor-0.9.0/debian/rules python-trezor-0.9.0/debian/rules
--- python-trezor-0.9.0/debian/rules    2018-03-10 18:16:36.000000000 +0100
+++ python-trezor-0.9.0/debian/rules    2019-10-27 18:38:47.000000000 +0100
@@ -1,8 +1,7 @@
 #!/usr/bin/make -f
 
 export PYBUILD_NAME=trezor
-export PYBUILD_AFTER_INSTALL_python2=rm -r {destdir}/usr/bin
 export PYBUILD_AFTER_INSTALL_python3=mkdir -p debian/trezor/usr/bin && mv 
{destdir}/usr/bin/trezorctl debian/trezor/usr/bin
 
 %:
-       dh $@ --with python2,python3 --buildsystem=pybuild
+       dh $@ --with python3 --buildsystem=pybuild

Reply via email to