Control: tags 804895 + patch
Control: tags 804895 + pending

Dear maintainer,

I've prepared an NMU for flask-babel (versioned as 0.9-2.1) and uploaded it
to DELAYED/10. Please feel free to tell me if I should delay it longer.

Please be aware that the package build depends on python3-speaklater that is
provided by the speaklater source package since its 1.3-3 version. That
package is still in the NEW queue [1].

[1] https://ftp-master.debian.org/new.html


Regards.

-- 
Jan Dittberner - Debian Developer
GPG-key: 4096R/558FB8DD 2009-05-10
         B2FF 1D95 CE8F 7A22 DF4C  F09B A73E 0055 558F B8DD
https://portfolio.debian.net/ - https://people.debian.org/~jandd/
diff -Nru flask-babel-0.9/debian/changelog flask-babel-0.9/debian/changelog
--- flask-babel-0.9/debian/changelog	2015-10-28 20:07:50.000000000 +0100
+++ flask-babel-0.9/debian/changelog	2016-01-27 14:46:22.000000000 +0100
@@ -1,3 +1,11 @@
+flask-babel (0.9-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add Python3 support (Closes: #804895)
+  * switch to dh-python
+
+ -- Jan Dittberner <[email protected]>  Wed, 27 Jan 2016 14:46:18 +0100
+
 flask-babel (0.9-2) unstable; urgency=medium
 
   * debian/control:
diff -Nru flask-babel-0.9/debian/control flask-babel-0.9/debian/control
--- flask-babel-0.9/debian/control	2015-10-28 19:59:31.000000000 +0100
+++ flask-babel-0.9/debian/control	2016-01-27 14:46:22.000000000 +0100
@@ -2,18 +2,24 @@
 Section: python
 Priority: optional
 Maintainer: Sebastian Ramacher <[email protected]>
-Build-Depends:
- debhelper (>= 9),
- dh-python,
- python-all,
- python-setuptools,
- python-flask (>= 0.8),
- python-babel (>= 1.0),
- python-jinja2 (>= 2.5),
- python-speaklater (>= 1.2),
- python-sphinx (>= 1.0.7+dfsg),
- python-doc
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               python-all (>= 2.6.6-3~),
+               python-babel (>= 1.0),
+               python-doc,
+               python-flask (>= 0.8),
+               python-jinja2 (>= 2.5),
+               python-setuptools,
+               python-speaklater (>= 1.2),
+               python-sphinx (>= 1.0.7+dfsg),
+               python3-all,
+               python3-babel,
+               python3-flask,
+               python3-jinja2,
+               python3-setuptools,
+               python3-speaklater
 X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.4
 Standards-Version: 3.9.6
 Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/flask-babel.git
 Vcs-Git: git://anonscm.debian.org/collab-maint/flask-babel.git
@@ -21,23 +27,33 @@
 
 Package: python-flask-babel
 Architecture: all
-Depends:
- ${python:Depends},
- ${misc:Depends},
- python-flask (>= 0.8),
- python-babel (>= 1.0)
+Depends: python-babel (>= 1.0),
+         python-flask (>= 0.8),
+         ${misc:Depends},
+         ${python:Depends}
 Suggests: python-flask-babel-doc
 Description: internationalization and localization support for Flask
  Flask-Babel is an extension to Flask that adds internationalization and
  localization support. It has a friendly interface to gettext translations and
  supports date formatting with timezones.
+ .
+ This is the Python 2 version of the package.
+
+Package: python3-flask-babel
+Architecture: all
+Depends: python3-babel, python3-flask, ${misc:Depends}, ${python3:Depends}
+Suggests: python-flask-babel-doc
+Description: internationalization and localization support for Flask
+ Flask-Babel is an extension to Flask that adds internationalization and
+ localization support. It has a friendly interface to gettext translations and
+ supports date formatting with timezones.
+ .
+ This is the Python 3 version of the package.
 
 Package: python-flask-babel-doc
 Architecture: all
 Section: doc
-Depends:
- ${misc:Depends},
- ${sphinxdoc:Depends}
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
 Description: internationalization and localization support for Flask (documentation)
  Flask-Babel is an extension to Flask that adds internationalization and
  localization support. It has a friendly interface to gettext translations and
diff -Nru flask-babel-0.9/debian/python-flask-babel.install flask-babel-0.9/debian/python-flask-babel.install
--- flask-babel-0.9/debian/python-flask-babel.install	2015-10-28 19:51:16.000000000 +0100
+++ flask-babel-0.9/debian/python-flask-babel.install	1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-usr/lib/python2.*
diff -Nru flask-babel-0.9/debian/rules flask-babel-0.9/debian/rules
--- flask-babel-0.9/debian/rules	2015-10-28 19:57:40.000000000 +0100
+++ flask-babel-0.9/debian/rules	2016-01-27 14:46:22.000000000 +0100
@@ -1,17 +1,10 @@
 #!/usr/bin/make -f
 
-# Supported Python versions
-PYVERS = $(shell pyversions -vr)
-
-# Callable functions to determine the correct PYTHONPATH
-pythonpath = $$(ls -d $(CURDIR)/build/lib.*-$(1))
+export PYBUILD_DESTDIR_python2=debian/python-flask-babel
+export PYBUILD_DESTDIR_python3=debian/python3-flask-babel
 
 %:
-	dh $@ --with=python2,sphinxdoc --buildsystem=python_distutils
-
-override_dh_clean:
-	dh_clean
-	rm -rf docs/_build
+	dh $@ --with python2,python3,sphinxdoc --buildsystem pybuild
 
 override_dh_auto_build:
 	dh_auto_build
@@ -19,7 +12,5 @@
 
 override_dh_auto_test:
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
-	set -ex && cd tests && for py in $(PYVERS); do \
-		PYTHONPATH=$(call pythonpath,$$py) python$$py tests.py ;\
-	done
+	dh_auto_test -- --system=custom --test-args='set -ex && cd tests && PYTHONPATH={destdir}{install_dir} {interpreter} tests.py'
 endif

Attachment: signature.asc
Description: PGP signature

Reply via email to