Package: python-colorama
Version: 0.2.4-1.1
Severity: normal

Hi,

Please find attached diff file for adding support for Python3.
Can you please upload that? Alternatively, can you allow me
to NMU the package?

Cheers,

Thomas Goirand (zigo)
diff -Nru python-colorama-0.2.4/debian/changelog python-colorama-0.2.5/debian/changelog
--- python-colorama-0.2.4/debian/changelog	2012-07-23 13:02:44.000000000 +0800
+++ python-colorama-0.2.5/debian/changelog	2013-07-25 14:45:20.000000000 +0800
@@ -1,3 +1,10 @@
+python-colorama (0.2.5-0.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Added support for python3.
+
+ -- Thomas Goirand <z...@debian.org>  Thu, 25 Jul 2013 14:41:38 +0800
+
 python-colorama (0.2.4-1.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff -Nru python-colorama-0.2.4/debian/control python-colorama-0.2.5/debian/control
--- python-colorama-0.2.4/debian/control	2012-07-23 13:01:55.000000000 +0800
+++ python-colorama-0.2.5/debian/control	2013-07-25 14:43:58.000000000 +0800
@@ -12,7 +12,7 @@
 Package: python-colorama
 Architecture: all
 Depends: ${python:Depends}, ${misc:Depends}
-Description: Cross-platform colored terminal text in Python
+Description: Cross-platform colored terminal text in Python - Python 2.x
  Python-colorama provides a simple cross-platform API to print colored terminal
  text from Python applications.
  .
@@ -21,3 +21,20 @@
  .
  This has the happy side-effect that existing applications or libraries which
  already use ANSI sequences to produce colored output on Linux.
+ .
+ This package provides the module for Python 2.x.
+
+Package: python3-colorama
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Description: Cross-platform colored terminal text in Python - Python 3.x
+ Python-colorama provides a simple cross-platform API to print colored terminal
+ text from Python applications.
+ .
+ ANSI escape character sequences are commonly used to produce colored terminal
+ text on Unix. Colorama provides some shortcuts to generate these sequences.
+ .
+ This has the happy side-effect that existing applications or libraries which
+ already use ANSI sequences to produce colored output on Linux.
+ .
+ This package provides the module for Python 2.x.
diff -Nru python-colorama-0.2.4/debian/rules python-colorama-0.2.5/debian/rules
--- python-colorama-0.2.4/debian/rules	2012-07-23 13:01:55.000000000 +0800
+++ python-colorama-0.2.5/debian/rules	2013-07-25 14:43:20.000000000 +0800
@@ -1,9 +1,21 @@
 #!/usr/bin/make -f
-#export DH_VERBOSE=1
+
+PYTHONS:=$(shell pyversions -vr)
+PYTHON3S:=$(shell py3versions -vr)
 
 %:
-	dh $@ --with=python2
+	dh $@ --buildsystem=python_distutils --with python2,python3
 
 override_dh_installexamples:
 	cp -r $(CURDIR)/demos/* $(CURDIR)/debian/python-colorama/usr/share/doc/python-colorama/examples/
 	rm $(CURDIR)/debian/python-colorama/usr/share/doc/python-colorama/examples/*.bat
+
+override_dh_auto_install:
+	set -e && for pyvers in $(PYTHONS); do \
+		python$$pyvers setup.py install --install-layout=deb \
+			--root $(CURDIR)/debian/python-colorama; \
+	done
+	set -e && for pyvers in $(PYTHON3S); do \
+		python$$pyvers setup.py install --install-layout=deb \
+			--root $(CURDIR)/debian/python3-colorama; \
+	done

Reply via email to