Bug#797065: python-humanize: Package is built only for Python2

2015-08-31 Thread Kleber Souza
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.0 +0100
+++ python-humanize-0.5.1/debian/control	2015-08-31 09:55:52.0 +0200
@@ -5,8 +5,13 @@
 Uploaders: Sylvestre Ledru 
 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.0 +0100
+++ python-humanize-0.5.1/debian/rules	2015-08-31 09:47:53.0 +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


Bug#797065: python-humanize: Package is built only for Python2

2015-08-28 Thread Kleber Souza
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.0 +0100
+++ python-humanize-0.5/debian/control	2015-08-28 12:11:50.0 +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.0 +0100
+++ python-humanize-0.5/debian/rules	2015-08-28 12:11:50.0 +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


Bug#797065: python-humanize: Package is built only for Python2

2015-08-27 Thread Kleber Souza
Package: python-humanize
Version: 0.5-1
Severity: wishlist

Dear Maintainer,

The package humanize is built only for Python2. According to the package site
(https://pypi.python.org/pypi/humanize), the package supports Python3 (tested
with Python 3.3). It would be nice to have this module packaged also for
Python3 so apps written in Python3 that imports this modules can be packaged
for debian and have humanize as a dependency.


Thank you and best regards,
Kleber


-- System Information:
Debian Release: 8.1
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.18.12-1-ibnbd (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages python-humanize depends on:
ii  python  2.7.9-1

python-humanize recommends no packages.

python-humanize suggests no packages.

-- no debconf information