[Python-modules-commits] r12592 - in packages/jinja2/trunk/debian (changelog control rules)
piotr at users.alioth.debian.org
piotr at users.alioth.debian.org
Tue Apr 13 19:48:23 UTC 2010
Date: Tuesday, April 13, 2010 @ 19:48:16
Author: piotr
Revision: 12592
Add Python 3 support, new binary packages:
python3-jinja and python3-jinja-dbg
Modified:
packages/jinja2/trunk/debian/changelog
packages/jinja2/trunk/debian/control
packages/jinja2/trunk/debian/rules
Modified: packages/jinja2/trunk/debian/changelog
===================================================================
--- packages/jinja2/trunk/debian/changelog 2010-04-13 19:40:21 UTC (rev 12591)
+++ packages/jinja2/trunk/debian/changelog 2010-04-13 19:48:16 UTC (rev 12592)
@@ -1,3 +1,10 @@
+jinja2 (2.4-2) unstable; urgency=low
+
+ * Add Python 3 support, new binary packages:
+ python3-jinja and python3-jinja-dbg
+
+ -- Piotr Ożarowski <piotr at debian.org> Tue, 13 Apr 2010 20:44:43 +0200
+
jinja2 (2.4-1) unstable; urgency=low
* New upstream release
Modified: packages/jinja2/trunk/debian/control
===================================================================
--- packages/jinja2/trunk/debian/control 2010-04-13 19:40:21 UTC (rev 12591)
+++ packages/jinja2/trunk/debian/control 2010-04-13 19:48:16 UTC (rev 12592)
@@ -3,8 +3,10 @@
Priority: optional
Maintainer: Piotr Ożarowski <piotr at debian.org>
Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 5), python-support (>= 0.6.4),
- python-setuptools (>= 0.6b3-1~), python-all-dev (>= 2.3.5-11), python-all-dbg, quilt
+Build-Depends: debhelper (>= 5), quilt, python-support (>= 0.6.4),
+ python-all-dev (>= 2.3.5-11), python-all-dbg,
+ python3-all-dev, python3-all-dbg,
+ python-setuptools (>= 0.6b3-1~), python3-setuptools
Build-Depends-Indep: python-sphinx (>= 0.6), python-pygments
Standards-Version: 3.8.4
Homepage: http://jinja.pocoo.org/2/
@@ -64,3 +66,43 @@
sandboxed environment.
.
This package contains the extension built for the Python debug interpreter.
+
+Package: python3-jinja2
+Architecture: any
+Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Recommends: python-pkg-resources
+Provides: ${python:Provides}
+Suggests: python-jinja2-doc
+XB-Python-Version: ${python:Versions}
+Description: small but fast and easy to use stand-alone template engine
+ Jinja2 is a template engine written in pure Python. It provides a Django
+ inspired non-XML syntax but supports inline expressions and an optional
+ sandboxed environment.
+ .
+ The key-features are:
+ * Configurable syntax. If you are generating LaTeX or other formats with
+ Jinja2 you can change the delimiters to something that integrates better
+ into the LaTeX markup.
+ * Fast. While performance is not the primarily target of Jinja2 itâs
+ surprisingly fast. The overhead compared to regular Python code was reduced
+ to the very minimum.
+ * Easy to debug. Jinja2 integrates directly into the Python traceback system
+ which allows you to debug Jinja2 templates with regular Python debugging
+ helpers.
+ * Secure. Itâs possible to evaluate untrusted template code if the optional
+ sandbox is enabled. This allows Jinja2 to be used as templating language
+ for applications where users may modify the template design.
+
+Package: python3-jinja2-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: python3-jinja2 (= ${binary:Version}), python3-dbg, ${shlibs:Depends}, ${misc:Depends}
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
+Description: small but fast and easy to use stand-alone template engine
+ Jinja2 is a template engine written in pure Python. It provides a Django
+ inspired non-XML syntax but supports inline expressions and an optional
+ sandboxed environment.
+ .
+ This package contains the extension built for the Python debug interpreter.
Modified: packages/jinja2/trunk/debian/rules
===================================================================
--- packages/jinja2/trunk/debian/rules 2010-04-13 19:40:21 UTC (rev 12591)
+++ packages/jinja2/trunk/debian/rules 2010-04-13 19:48:16 UTC (rev 12592)
@@ -3,9 +3,14 @@
#export DH_VERBOSE=1
include /usr/share/quilt/quilt.make
+-include /usr/share/python/python.mk
+ifeq (,$(py_libdir))
+ py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages
+endif
-PYVERS=$(shell pyversions -vr)
-PKGDIR=$(CURDIR)/debian/python-jinja2
+PYVERS=$(shell pyversions -vr) 3.1
+VERSION=$(shell sed -rn 's,^Version: (.*),\1,p' $(CURDIR)/PKG-INFO)
+pkgdir = $(CURDIR)/debian/python$(if $(patsubst 3.%,,$(1)),,3)-jinja2
clean: unpatch
dh_testdir
@@ -41,29 +46,32 @@
touch $@
install-python%: build
- python$* setup.py --with-speedups install \
- --skip-build --single-version-externally-managed --root $(PKGDIR)
+ python$* setup.py --with-speedups install $(py_setup_install_args) \
+ --skip-build --single-version-externally-managed --root $(call pkgdir,$*)
+ sed -i -e 's,REPLACE_ME_WITH_PROPER_VERSION,$(VERSION),' $(call pkgdir,$*)$(call py_libdir,$*)/jinja2/__init__.py
touch $@
install-debug-python%: build
- python$*-dbg setup.py --with-speedups install \
- --skip-build --single-version-externally-managed --root $(PKGDIR)-dbg/
- find $(PKGDIR)-dbg/usr/ ! -type d ! -name '*_d\.so' -delete
- find $(PKGDIR)-dbg/usr/ -depth -empty -delete
+ python$*-dbg setup.py --with-speedups install $(py_setup_install_args) \
+ --skip-build --single-version-externally-managed --root $(call pkgdir,$*)-dbg/
+ find $(call pkgdir,$*)-dbg/usr/ ! -type d ! -name '*_d\.so' -delete
+ find $(call pkgdir,$*)-dbg/usr/ -depth -empty -delete
touch $@
-VERSION=$(shell sed -rn 's,^Version: (.*),\1,p' $(CURDIR)/PKG-INFO)
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs -a CHANGES
dh_installdocs -a
+ find $(CURDIR)/debian/ -name '*.py[co]' -delete
dh_pysupport -a
- sed -i -e 's,REPLACE_ME_WITH_PROPER_VERSION,$(VERSION),' $(PKGDIR)/usr/share/pyshared/jinja2/__init__.py
dh_makeshlibs -a
dh_strip -ppython-jinja2 --dbg-package=python-jinja2-dbg
- rm -rf $(PKGDIR)-dbg/usr/share/doc/python-jinja2-dbg
- ln -s python-jinja2 $(PKGDIR)-dbg/usr/share/doc/python-jinja2-dbg
+ dh_strip -ppython3-jinja2 --dbg-package=python3-jinja2-dbg
+ rm -rf $(call pkgdir,2.X)-dbg/usr/share/doc/python-jinja2-dbg
+ rm -rf $(call pkgdir,3.X)-dbg/usr/share/doc/python3-jinja2-dbg
+ ln -s python-jinja2 $(call pkgdir,2.X)-dbg/usr/share/doc/python-jinja2-dbg
+ ln -s python3-jinja2 $(call pkgdir,3.X)-dbg/usr/share/doc/python3-jinja2-dbg
dh_compress -a -X.py
dh_fixperms -a
dh_installdeb -a
More information about the Python-modules-commits
mailing list