Your message dated Sat, 25 May 2013 21:49:35 +0000
with message-id <[email protected]>
and subject line Bug#709638: fixed in jinja2 2.7-3
has caused the Debian Bug report #709638,
regarding jinja2: does not support default Python 3 version
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
709638: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=709638
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: jinja2
Version: 2.7-2
Severity: grave
Justification: renders package (mostly) unusable
Tags: patch

jinja2_2.7-1 dropped support for Python 3.2, but this still the default version of Python 3. This breaks python3-sphinx, and makes at least 4 packages that build-depend on it FTBFS.

As I understand it, the only 3.3-specific feature jinja2 uses is u'' literals. Fortunately, you can convert from u'' back to '' by using 2to3 cleverly. Patch attached.

--
Jakub Wilk
diff -Nru jinja2-2.7/debian/changelog jinja2-2.7/debian/changelog
--- jinja2-2.7/debian/changelog	2013-05-23 18:44:24.000000000 +0200
+++ jinja2-2.7/debian/changelog	2013-05-24 16:42:51.000000000 +0200
@@ -1,3 +1,9 @@
+jinja2 (2.7-3) UNRELEASED; urgency=low
+
+  * Restore Python 3.2 compatibility.
+
+ -- Jakub Wilk <[email protected]>  Fri, 24 May 2013 16:42:43 +0200
+
 jinja2 (2.7-2) unstable; urgency=low
 
   * Relax build dependency on python3-all and hardcode python3-jinja2's
diff -Nru jinja2-2.7/debian/control jinja2-2.7/debian/control
--- jinja2-2.7/debian/control	2013-05-23 18:39:49.000000000 +0200
+++ jinja2-2.7/debian/control	2013-05-24 17:13:42.000000000 +0200
@@ -10,7 +10,7 @@
 Standards-Version: 3.9.4
 Homepage: http://jinja.pocoo.org/2/
 X-Python-Version: >= 2.6
-X-Python3-Version: >= 3.3
+X-Python3-Version: >= 3.2
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/jinja2/trunk/
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/jinja2/trunk/
 
@@ -53,7 +53,7 @@
 
 Package: python3-jinja2
 Architecture: all
-Depends: python3 (>= 3.3) | python3.3, ${misc:Depends}, python3-markupsafe
+Depends: ${python3:Depends}, ${misc:Depends}, python3-markupsafe
 Recommends: python3-pkg-resources
 Provides: ${python3:Provides}
 Suggests: python-jinja2-doc
diff -Nru jinja2-2.7/debian/python3-jinja2.postinst jinja2-2.7/debian/python3-jinja2.postinst
--- jinja2-2.7/debian/python3-jinja2.postinst	2013-05-23 18:48:24.000000000 +0200
+++ jinja2-2.7/debian/python3-jinja2.postinst	1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-#!/bin/sh
-set -e
-
-if which py3compile >/dev/null 2>&1; then
-	py3compile -p python3-jinja2 -V 3.3-
-fi
diff -Nru jinja2-2.7/debian/rules jinja2-2.7/debian/rules
--- jinja2-2.7/debian/rules	2013-05-23 18:40:05.000000000 +0200
+++ jinja2-2.7/debian/rules	2013-05-24 17:27:26.000000000 +0200
@@ -26,6 +26,11 @@
 build-indep: $(PYVERS:%=build-python%) build-docs
 	touch $@
 
+build-python3%:
+	python3$* setup.py build
+	python debian/u2to3.py --no-diffs --write --nobackups build/lib/
+	touch $@
+
 build-python%:
 	python$* setup.py build
 	touch $@
diff -Nru jinja2-2.7/debian/u2to3.py jinja2-2.7/debian/u2to3.py
--- jinja2-2.7/debian/u2to3.py	1970-01-01 01:00:00.000000000 +0100
+++ jinja2-2.7/debian/u2to3.py	2013-05-24 17:32:25.000000000 +0200
@@ -0,0 +1,12 @@
+#!/usr/bin/python
+
+'''
+minimal 2to3 coverter that touches only u'' literals
+'''
+
+import sys
+from lib2to3.fixes.fix_unicode import FixUnicode
+
+FixUnicode.PATTERN = 'STRING'
+sys.argv[1:1] = ['-f', 'unicode']
+execfile('/usr/bin/2to3')

--- End Message ---
--- Begin Message ---
Source: jinja2
Source-Version: 2.7-3

We believe that the bug you reported is fixed in the latest version of
jinja2, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Piotr Ożarowski <[email protected]> (supplier of updated jinja2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 25 May 2013 23:07:10 +0200
Source: jinja2
Binary: python-jinja2 python-jinja2-doc python3-jinja2
Architecture: source all
Version: 2.7-3
Distribution: unstable
Urgency: low
Maintainer: Piotr Ożarowski <[email protected]>
Changed-By: Piotr Ożarowski <[email protected]>
Description: 
 python-jinja2 - small but fast and easy to use stand-alone template engine
 python-jinja2-doc - documentation for the Jinja2 Python library
 python3-jinja2 - small but fast and easy to use stand-alone template engine
Closes: 679534 709638
Changes: 
 jinja2 (2.7-3) unstable; urgency=low
 .
   [ Jakub Wilk ]
   * Restore Python 3.2 compatibility (closes: #709638)
   * Fix bunch of typos in the documentation (closes: #679534)
Checksums-Sha1: 
 262d1e2ca4e94032be33deb9b8cf75fa0eeff1c9 2181 jinja2_2.7-3.dsc
 0851c06e23c5fc2ff2c333ccc650c7ec89aacbb4 8146 jinja2_2.7-3.debian.tar.gz
 65b98b009c319889aa535b3f910bbd4fed9c74e7 169744 python-jinja2_2.7-3_all.deb
 e16f79b4d6669dee0e3e9b74131a68e310fd475d 145148 python-jinja2-doc_2.7-3_all.deb
 bf176dd321798154867b962b0c5f31013b0f1aa5 166348 python3-jinja2_2.7-3_all.deb
Checksums-Sha256: 
 6d7c6e96182572e95cd62646d8ebf644de8c7e74cc4c65fb4e390038e6500326 2181 
jinja2_2.7-3.dsc
 4f5e07e2dc746080a5b0e404c49f1e35524b3df9b8309e613f155828889bc7cb 8146 
jinja2_2.7-3.debian.tar.gz
 9653246b19ca1a69cf88d898ab2fbfb283deb1e3105780d418dc34ef05ba5174 169744 
python-jinja2_2.7-3_all.deb
 d2781772a2ed38b8095da6a071e8c91e100882f4810320269e7cf9fe4bf6596a 145148 
python-jinja2-doc_2.7-3_all.deb
 be6fca0d2c7f83a4dd58b465c479487d5d566f29339c858244c524906025751f 166348 
python3-jinja2_2.7-3_all.deb
Files: 
 1c6a50679d49d820961d12440a626760 2181 python optional jinja2_2.7-3.dsc
 4e2c88cd07dc21a2439ac65608e98981 8146 python optional 
jinja2_2.7-3.debian.tar.gz
 0cbd545322b236ff62a81b617abd7d65 169744 python optional 
python-jinja2_2.7-3_all.deb
 cd497a9e01df5842f30fd8b94eceb0fb 145148 doc extra 
python-jinja2-doc_2.7-3_all.deb
 f3adf6997f1d6b51cf675c4e61c9a512 166348 python optional 
python3-jinja2_2.7-3_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCgAGBQJRoSvQAAoJEK728aKnRXZFsvQP/jVe2D2XduQ1WsENlOfExA9h
zEt4NWtGy6iJ2pPGVbmkUTpYxWFpbUKxkHCn1Qf6cVg8yJScIhgCEIAbnKbDi22S
1mrTi6xcw3M/s+umCeMTIub19pFWZ3feyDI932vUgr/xzmTSNBpxAjjN5cUCgZvu
nWrN3/++EHC4U5NAY3uiMThCUy1Oho/RzSGPvHgUJz5aD8wESFngr1QzgIT0R0Gq
WcoHEyfo6DtN/ldhhsDxQ+2Fihb3d5te5TDkYP367sfg662FkqSdTVG6cIz9McA9
7+lHIsFhp5I33SjcFjg40WxrEHmrvw7zTtjVogWcQ0A4EyVZ8Ev+Tjo+UimBlqNr
xtpCX9kjUdaHVMVYWccn/tDESoKoZThmWMwTzpn+525fjQhp+UohYapPZ7HBrF1T
pOwCiMj1kbDYVChvZuQkcbu+DZ+fjOI5FjtOg7NzBaZliuLIDr/+Eu1GGVPbK8JA
rpB8ZLpJdcCvx7+HtQDVG382hrVP1P++OAkz8St0AYIVeYvGJEQStu3Vz35Ihk0h
KHtzHkseMHDg9heZ8fWKqG/24LkOUv4UklStHzv66sgmJw7U16iPjQj626xTCeWm
dWMd9sdsGsrp9u2f78fpk7bFbiWilOX0bH1e550F0y5PxTGK3f+Br81qP45FV891
6csaqJ2Mb2PXPj8hHLjw
=XOh/
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to