Package: python3-jinja2
Version: 2.8-1
Severity: normal
Tags: patch
User: debian-pyt...@lists.debian.org
Usertags: python3.6

Dear Maintainer,

python3-jinja2, as currently packaged, cannot be imported by Python 3.6 because
it tries to import asyncsupport.py which is not currently installed. I'm
attaching the diff I applied in Ubuntu to fix this.

Cheers,
mwh

-- System Information:
Debian Release: stretch/sid
  APT prefers xenial-updates
  APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 
'xenial'), (400, 'xenial-proposed'), (100, 'xenial-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-75-generic (SMP w/4 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-jinja2 depends on:
ii  python3-markupsafe  0.23-2build2
pn  python3:any         <none>

Versions of packages python3-jinja2 recommends:
ii  python3-pkg-resources  20.7.0-1

Versions of packages python3-jinja2 suggests:
pn  python-jinja2-doc  <none>

-- no debconf information
diff -Nru jinja2-2.9.5/debian/changelog jinja2-2.9.5/debian/changelog
--- jinja2-2.9.5/debian/changelog	2017-02-08 10:27:54.000000000 +1300
+++ jinja2-2.9.5/debian/changelog	2017-05-12 09:43:03.000000000 +1200
@@ -1,3 +1,10 @@
+jinja2 (2.9.5-1ubuntu1) artful; urgency=medium
+
+  * Install asyncsupport.py and asyncfilters.py now that Python 3.6 is a
+    supported version (but do not compile them on install with Python 3.5).
+
+ -- Michael Hudson-Doyle <michael.hud...@ubuntu.com>  Mon, 08 May 2017 12:35:12 +1200
+
 jinja2 (2.9.5-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru jinja2-2.9.5/debian/control jinja2-2.9.5/debian/control
--- jinja2-2.9.5/debian/control	2017-02-08 10:27:35.000000000 +1300
+++ jinja2-2.9.5/debian/control	2017-05-08 12:41:40.000000000 +1200
@@ -1,7 +1,8 @@
 Source: jinja2
 Section: python
 Priority: optional
-Maintainer: Piotr Ożarowski <pi...@debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
+XSBC-Original-Maintainer: Piotr Ożarowski <pi...@debian.org>
 Uploaders: Debian Python Modules Team <python-modules-t...@lists.alioth.debian.org>
 Build-Depends: debhelper (>= 9), dh-python,
  python-all (>= 2.6.6-3), python3-all,
diff -Nru jinja2-2.9.5/debian/python3-jinja2.bcep jinja2-2.9.5/debian/python3-jinja2.bcep
--- jinja2-2.9.5/debian/python3-jinja2.bcep	1970-01-01 12:00:00.000000000 +1200
+++ jinja2-2.9.5/debian/python3-jinja2.bcep	2017-05-09 15:39:45.000000000 +1200
@@ -0,0 +1 @@
+re|-3.6|/usr/lib/python3/dist-packages/jinja2|.*/async(support|filters).py
diff -Nru jinja2-2.9.5/debian/python3-jinja2.install jinja2-2.9.5/debian/python3-jinja2.install
--- jinja2-2.9.5/debian/python3-jinja2.install	1970-01-01 12:00:00.000000000 +1200
+++ jinja2-2.9.5/debian/python3-jinja2.install	2017-05-12 09:43:31.000000000 +1200
@@ -0,0 +1 @@
+debian/python3-jinja2.bcep usr/share/python3/bcep
diff -Nru jinja2-2.9.5/debian/python3-jinja2.pyremove jinja2-2.9.5/debian/python3-jinja2.pyremove
--- jinja2-2.9.5/debian/python3-jinja2.pyremove	2017-02-08 10:27:35.000000000 +1300
+++ jinja2-2.9.5/debian/python3-jinja2.pyremove	1970-01-01 12:00:00.000000000 +1200
@@ -1,4 +0,0 @@
-# these files require Python3.6 and are not used in <= 3.5
-# see https://github.com/pallets/jinja/issues/643
-jinja2/asyncfilters.py
-jinja2/asyncsupport.py

Reply via email to