Package: maybe
Version: 0.3.0-1
Severity: wishlist
Tags: patch

Hi,

Why not package this as a Python3 application ?

The Python2 -> 3 migration is slowly moving with
a lot of tangled depedencies;
but as for this one Python3 is already supported
by upstream; it should be straightforward.

Patch attached

Greets,

Alexandre



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (450, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-1-amd64 (SMP w/6 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages maybe depends on:
ii  python-blessings  1.6-2
ii  python-ptrace     0.7-1
pn  python:any        <none>

maybe recommends no packages.

maybe suggests no packages.

-- no debconf information
diff --git a/debian/control b/debian/control
index 19101de..35a822d 100644
--- a/debian/control
+++ b/debian/control
@@ -5,11 +5,10 @@ Priority: optional
 Build-Depends:
  debhelper (>= 9),
  dh-python,
- python-all (>= 2.6.6-3),
- python-setuptools (>= 0.6b3)
-Standards-Version: 3.9.6
+ python3,
+ python3-setuptools
+Standards-Version: 3.9.7
 Homepage: https://github.com/p-e-w/maybe
-X-Python-Version: >= 2.7
 X-Python3-Version: >= 3.2
 Vcs-Git: https://anonscm.debian.org/git/collab-maint/maybe.git
 Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/maybe.git
@@ -18,7 +17,7 @@ Package: maybe
 Architecture: all
 Depends:
  ${misc:Depends},
- ${python:Depends}
+ ${python3:Depends}
 Description: control filesystem modifications before they occur
  maybe runs processes under the control of ptrace. When it intercepts
  a system call that is about to make changes to the file system, it
diff --git a/debian/rules b/debian/rules
index 175f269..7961608 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,9 +3,9 @@
 export PYBUILD_NAME=maybe
 
 %:
-	dh $@ --with python2 --buildsystem=pybuild
+	dh $@ --with python3 --buildsystem=pybuild
 
 override_dh_auto_install:
-	python setup.py install --root=debian/maybe --install-layout=deb --install-lib=/usr/share/maybe --install-scripts=/usr/share/maybe
+	python3 setup.py install --root=debian/maybe --install-layout=deb --install-lib=/usr/share/maybe --install-scripts=/usr/share/maybe
 
 override_dh_auto_build:

Reply via email to