On Fri, 30 Aug 2019 07:56:17 +0000 Matthias Klose <d...@debian.org> wrote:
> Package: src:trace-summary
> Version: 0.88-1
> Severity: normal
> Tags: sid bullseye
> User: debian-pyt...@lists.debian.org
> Usertags: py2removal
> 
> Python2 becomes end-of-live upstream, and Debian aims to remove
> Python2 from the distribution, as discussed in
> https://lists.debian.org/debian-python/2019/07/msg00080.html
> 
> Your package either build-depends, depends on Python2, or uses Python2
> in the autopkg tests.  Please stop using Python2, and fix this issue
> by one of the following actions.
> 
> - Convert your Package to Python3. This is the preferred option.  In
>   case you are providing a Python module foo, please consider dropping
>   the python-foo package, and only build a python3-foo package.  Please
>   don't drop Python2 modules, which still have reverse dependencies,
>   just document them.
>   
>   This is the preferred option.

Debdiff to switch to python3 attached.  Although I wrote the changelog in the 
style of an NMU, I do not currently plan to NMU the package.  I have verified 
that with the debdiff applied the package builds a correct python3 package in 
unstable (with appropriate depends and shebang).  I have not verified the 
package works as I'm not familiar with it.  Upstream does support python3, so 
in theory it should be fine.

I would like to drop the python-subnettree binary from subnettree sooner 
rather than later and this is one of the two blockers.  I would appreciate it 
if you would take time to address it soon.  If you would prefer that I upload 
the NMU, please let me know and I will do so.

Scott K
diff -Nru trace-summary-0.88/debian/changelog trace-summary-0.88/debian/changelog
--- trace-summary-0.88/debian/changelog	2018-12-26 10:54:40.000000000 -0500
+++ trace-summary-0.88/debian/changelog	2019-10-14 18:35:34.000000000 -0400
@@ -1,3 +1,10 @@
+trace-summary (0.88-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Switch to python3 (Closes: #938692)
+
+ -- Scott Kitterman <sc...@kitterman.com>  Mon, 14 Oct 2019 18:35:34 -0400
+
 trace-summary (0.88-1) unstable; urgency=medium
 
   * New upstream version 0.88
diff -Nru trace-summary-0.88/debian/control trace-summary-0.88/debian/control
--- trace-summary-0.88/debian/control	2018-12-26 10:54:01.000000000 -0500
+++ trace-summary-0.88/debian/control	2019-10-14 18:35:34.000000000 -0400
@@ -5,7 +5,7 @@
 Uploaders: Hilko Bengen <ben...@debian.org>
 Build-Depends: debhelper (>= 11),
                dh-python,
-               python | python-all | python-dev | python-all-dev
+               python3-all
 Standards-Version: 4.3.0
 Homepage: https://www.bro.org/sphinx/components/trace-summary/README.html
 Vcs-Git: https://salsa.debian.org/bro-team/trace-summary.git
@@ -14,8 +14,8 @@
 Package: trace-summary
 Architecture: all
 Depends: ${misc:Depends},
-         ${python:Depends},
-         python-subnettree
+         ${python3:Depends},
+         python3-subnettree
 Description: tool for generating break-downs of network traffic
  trace-summary is a Python script that generates break-downs of network
  traffic, including lists of the top hosts, protocols, ports,
diff -Nru trace-summary-0.88/debian/rules trace-summary-0.88/debian/rules
--- trace-summary-0.88/debian/rules	2018-12-21 17:51:02.000000000 -0500
+++ trace-summary-0.88/debian/rules	2019-10-14 18:35:34.000000000 -0400
@@ -4,6 +4,9 @@
 include /usr/share/dpkg/default.mk
 
 %:
-	dh $@ --with=python2
+	dh $@ --with=python3
+
+override_dh_python3:
+	dh_python3 --shebang=/usr/bin/python3
 
 override_dh_auto_build override_dh_auto_test:

Reply via email to