Package: vmdk-stream-converter Version: 0.2-3 Severity: normal Tags: upstream patch Forwarded: https://github.com/imcleod/VMDK-stream-converter/pull/3
Dear Maintainer, Support for Python 2.7 will end in 2020 [1], in Buster's support period. Please switch to Python3 with the package to rely on a supported Python version for the foreseeable future. The current upstream code does not work with Python3 but an open PR [2] fixes that. I'm attaching proposed changes to the package to make the switch to Python3 and also switch to a package name aligning with the policy for shipping Python3 modules Thanks, Balint [1] https://www.python.org/dev/peps/pep-0373/ [2] https://github.com/imcleod/VMDK-stream-converter/pull/3 -- System Information: Debian Release: buster/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.14.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages vmdk-stream-converter depends on: ii python 2.7.14-1 vmdk-stream-converter recommends no packages. vmdk-stream-converter suggests no packages. -- no debconf information
>From 4402e18137736cbd6d56e11522ff274d9abf0029 Mon Sep 17 00:00:00 2001 From: Balint Reczey <balint.rec...@canonical.com> Date: Wed, 6 Dec 2017 01:30:08 +0100 Subject: [PATCH 2/2] Rename main package to python3-vmdkstream to follow Python 3 module naming policy --- debian/control | 14 ++++++++++---- debian/python3-vmdkstream.install | 1 + debian/source.lintian-overrides | 2 ++ 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 debian/python3-vmdkstream.install create mode 100644 debian/source.lintian-overrides diff --git a/debian/control b/debian/control index 446da44..c5449f6 100644 --- a/debian/control +++ b/debian/control @@ -8,13 +8,19 @@ Homepage: https://github.com/imcleod/VMDK-stream-converter Vcs-Git: https://anonscm.debian.org/git/collab-maint/vmdk-stream-converter.git Vcs-Browser: https://anonscm.debian.org/collab-maint/vmdk-stream-converter.git -Package: vmdk-stream-converter +Package: python3-vmdkstream Architecture: all Depends: ${python3:Depends}, ${misc:Depends} -Description: raw disk images to stream-optimized VMDK files convert tool - This tool convert raw disk images to stream-optimized VMDK files for VMWare - ESX/vSphere environment, and known to work on ESXi 4.1. +Description: Python 3 module for converting raw disk images to VMDK files + This Python 3 module converts raw disk images to stream-optimized VMDK files + for VMWare ESX/vSphere environment, and known to work on ESXi 4.1. . Its format is only useful if you are attempting to import virtual machines into ESX using the vSphere SOAP API and HTTP POST uploads of image files. (In which case, it is required.) + +Package: vmdk-stream-converter +Architecture: all +Depends: python3-vmdkstream +Description: transitional dummy package + This is a transitional dummy package. It can safely be removed. diff --git a/debian/python3-vmdkstream.install b/debian/python3-vmdkstream.install new file mode 100644 index 0000000..4606faa --- /dev/null +++ b/debian/python3-vmdkstream.install @@ -0,0 +1 @@ +usr/lib/python3* diff --git a/debian/source.lintian-overrides b/debian/source.lintian-overrides new file mode 100644 index 0000000..fec7b78 --- /dev/null +++ b/debian/source.lintian-overrides @@ -0,0 +1,2 @@ +# this is a transitional package +vmdk-stream-converter source: debhelper-but-no-misc-depends vmdk-stream-converter -- 2.11.0
>From 6e9b336479976ff5b47734d595a9d96506619f8a Mon Sep 17 00:00:00 2001 From: Balint Reczey <balint.rec...@canonical.com> Date: Thu, 30 Nov 2017 18:35:34 +0100 Subject: [PATCH 1/2] Switch to Python 3 --- debian/control | 4 ++-- debian/rules | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/control b/debian/control index 22487ef..446da44 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: vmdk-stream-converter Section: misc Priority: optional Maintainer: Hideki Yamane <henr...@debian.org> -Build-Depends: debhelper (>= 10), python | python-all | python-dev | python-all-dev +Build-Depends: debhelper (>= 10), python3 | python3-all | python3-dev | python3-all-dev Standards-Version: 4.1.1 Homepage: https://github.com/imcleod/VMDK-stream-converter Vcs-Git: https://anonscm.debian.org/git/collab-maint/vmdk-stream-converter.git @@ -10,7 +10,7 @@ Vcs-Browser: https://anonscm.debian.org/collab-maint/vmdk-stream-converter.git Package: vmdk-stream-converter Architecture: all -Depends: ${python:Depends}, ${misc:Depends} +Depends: ${python3:Depends}, ${misc:Depends} Description: raw disk images to stream-optimized VMDK files convert tool This tool convert raw disk images to stream-optimized VMDK files for VMWare ESX/vSphere environment, and known to work on ESXi 4.1. diff --git a/debian/rules b/debian/rules index 00a288f..4a50b60 100755 --- a/debian/rules +++ b/debian/rules @@ -3,4 +3,4 @@ #export DH_VERBOSE=1 %: - dh $@ --with=python2 + dh $@ --with python3 --buildsystem=pybuild -- 2.11.0