Package: python-humanize Version: 0.5-1 Followup-For: Bug #797065 Dear Maintainer,
Attached is a suggestion for the changes needed to add support to build binary packages for both python2 and python3 from the source package. Than you and regards, Kleber
diff -Nru python-humanize-0.5/debian/control python-humanize-0.5/debian/control --- python-humanize-0.5/debian/control 2014-02-27 21:57:02.000000000 +0100 +++ python-humanize-0.5/debian/control 2015-08-28 12:11:50.000000000 +0200 @@ -5,8 +5,13 @@ Uploaders: Sylvestre Ledru <sylves...@debian.org> Build-Depends: debhelper (>= 9), + dh-python, python-all, - python-setuptools + python-setuptools, + python3-all, + python3-setuptools +X-Python-Version: >= 2.4 +X-Python3-Version: >= 3.0 Standards-Version: 3.9.5 Homepage: http://github.com/jmoiron/humanize #Vcs-Git: git://git.debian.org/collab-maint/humanize.git @@ -15,7 +20,15 @@ Package: python-humanize Architecture: all Depends: ${misc:Depends}, ${python:Depends} -Description: Python Humanize library +Description: Python Humanize library (Python 2) + This library proposes various common humanization utilities, like turning + a number into a fuzzy human readable duration ('3 minutes ago') or into a + human readable size or throughput. + +Package: python3-humanize +Architecture: all +Depends: ${misc:Depends}, ${python3:Depends} +Description: Python Humanize library (Python 3) This library proposes various common humanization utilities, like turning a number into a fuzzy human readable duration ('3 minutes ago') or into a human readable size or throughput. diff -Nru python-humanize-0.5/debian/rules python-humanize-0.5/debian/rules --- python-humanize-0.5/debian/rules 2014-02-27 21:57:02.000000000 +0100 +++ python-humanize-0.5/debian/rules 2015-08-28 12:11:50.000000000 +0200 @@ -1,10 +1,12 @@ #!/usr/bin/make -f -PY2_PACKAGE_NAME = python-humanize -PYVERS = $(shell pyversions -r) +export PYBUILD_NAME=humanize %: - dh $@ --with python2 + dh $@ --with python2,python3 --buildsystem=pybuild + +override_dh_auto_test: + override_dh_auto_clean: dh_auto_clean