Package: python-humanize
Version: 0.5-1
Followup-For: Bug #797065

Dear Maintainer,

Please consider this version of the patch. It fixes the Python version that
the Python 2 version of the package depends on and changes the long description
of the packages to fix the following lintian error:

I: python-humanize source: duplicate-long-description python-humanize \
python3-humanize

Best regards,
Kleber
diff -Nru python-humanize-0.5.1/debian/control python-humanize-0.5.1/debian/control
--- python-humanize-0.5.1/debian/control	2014-12-30 13:34:13.000000000 +0100
+++ python-humanize-0.5.1/debian/control	2015-08-31 09:55:52.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.7
+X-Python3-Version: >= 3.0
 Standards-Version: 3.9.6
 Homepage: http://github.com/jmoiron/humanize
 #Vcs-Git: git://git.debian.org/collab-maint/humanize.git
@@ -15,7 +20,17 @@
 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.
+ This is the Python 2 version of the package.
+
+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.
+ This is the Python 3 version of the package.
diff -Nru python-humanize-0.5.1/debian/rules python-humanize-0.5.1/debian/rules
--- python-humanize-0.5.1/debian/rules	2014-02-27 21:57:02.000000000 +0100
+++ python-humanize-0.5.1/debian/rules	2015-08-31 09:47:53.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

Reply via email to