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-31 Thread Benjamin Drung
tags 797065 pending
thanks

Hi,

I did a team upload of python-humanize 0.5.1-2 to add Python 3 support.
The package is currently stuck in the NEW queue.

-- 
Benjamin Drung
System Developer
Debian & Ubuntu Developer

ProfitBricks GmbH
Greifswalder Str. 207
D - 10405 Berlin

Email: benjamin.dr...@profitbricks.com
URL:  http://www.profitbricks.com

Sitz der Gesellschaft: Berlin.
Registergericht: Amtsgericht Charlottenburg, HRB 125506B.
Geschäftsführer: Andreas Gauger, Achim Weiss.
diff -Nru python-humanize-0.5.1/debian/changelog python-humanize-0.5.1/debian/changelog
--- python-humanize-0.5.1/debian/changelog	2015-05-03 19:25:26.0 +0200
+++ python-humanize-0.5.1/debian/changelog	2015-08-31 12:55:43.0 +0200
@@ -1,3 +1,11 @@
+python-humanize (0.5.1-2) unstable; urgency=medium
+
+  * Team upload.
+  * Add python3-humanize. Thanks to Kleber Souza (Closes: #797065)
+  * Specify short license as MIT
+
+ -- Benjamin Drung   Mon, 31 Aug 2015 12:26:14 +0200
+
 python-humanize (0.5.1-1) unstable; urgency=medium
 
   * Upload to unstable
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 12:59:01.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,19 @@
 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/copyright python-humanize-0.5.1/debian/copyright
--- python-humanize-0.5.1/debian/copyright	2014-02-27 21:57:02.0 +0100
+++ python-humanize-0.5.1/debian/copyright	2015-08-31 12:50:37.0 +0200
@@ -4,7 +4,7 @@
 
 Files: *
 Copyright: 2010 Jason Moiron and Contributors
-License:
+License: MIT
  Permission is hereby granted, free of charge, to any person obtaining
  a copy of this software and associated documentation files (the
  "Software"), to deal in the Software without restriction, including
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 12:28:17.0 +0200
@@ -1,10 +1,11 @@
 #!/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


signature.asc
Description: This is a digitally signed message part


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