debian/0000755000000000000000000000000012264521112007162 5ustar debian/README.source0000644000000000000000000000015111546703615011352 0ustar This package uses the patch management system quilt as documented in /usr/share/doc/quilt/README.source. debian/rules0000755000000000000000000000343012150223764010250 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 include /usr/share/python3/python.mk PYVERS=$(shell pyversions -vr) $(shell py3versions -vr) VERSION=$(shell sed -rn 's,^Version: (.*),\1,p' $(CURDIR)/PKG-INFO) pkgdir = $(CURDIR)/debian/python$(if $(patsubst 3.%,,$(1)),,3)-jinja2 clean: dh_testdir dh_testroot rm -rf dist build Jinja2.egg-info find . -name '*\.pyc' -delete find . -name '\._*' -delete find . -name '\.DS_Store' -delete make -C docs clean dh_clean install-stamp build-stamp \ $(PYVERS:%=install-python%) $(PYVERS:%=build-python%) build: build-indep build-arch: 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 $@ build-docs: PYTHONPATH=$(CURDIR):$(CURDIR)/docs make -C docs html install: install-stamp install-stamp: $(PYVERS:%=install-python%) dh_install touch $@ install-python%: build-python% python$* setup.py install $(py_setup_install_args) \ --skip-build --root $(call pkgdir,$*) touch $@ binary-indep: build-indep install dh_testdir dh_testroot dh_installchangelogs -i CHANGES dh_installdocs -i dh_sphinxdoc -p python-jinja2-doc dh_installexamples -i find $(CURDIR)/debian/ -name '*.py[co]' -delete dh_python2 -i -p python-jinja2 dh_python3 -i -p python3-jinja2 dh_link -i /usr/share/doc/python-jinja2-doc/html /usr/share/doc/python-jinja2/html dh_link -i /usr/share/doc/python-jinja2-doc/html/_sources /usr/share/doc/python-jinja2/rst dh_compress -i -X.html -X.py -Xobjects.inv dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i -- -Z bzip2 binary-arch: binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/compat0000644000000000000000000000000212146477764010406 0ustar 9 debian/python-jinja2-doc.dirs0000644000000000000000000000003611546703615013317 0ustar /usr/share/doc/python-jinja2/ debian/copyright0000644000000000000000000000614311613227055011127 0ustar This package was debianized by Piotr Ożarowski on Mon, 14 Jul 2008 23:45:03 +0200. It was downloaded from http://pypi.python.org/pypi/Jinja2 Copyright (c) 2009-2011 by the Jinja Team, see AUTHORS for more details. Some rights reserved. License: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * The names of the contributors may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --------------------------------------------------------------- docs/_build/html/_static/interface.js and docs/_build/html/_static/jquery.js (source package only) are part of jQuery project (Copyright (c) 2006 Stefan Petre) and are licensed under dual licensed under the MIT and GPL licenses. --------------------------------------------------------------- ext/jinja.el (source package only): Author: Georg Brandl This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. --------------------------------------------------------------- The Debian packaging is © 2008-2011, Piotr Ożarowski and is licensed under the same license as Jinja2. debian/control0000644000000000000000000000655512150223764010606 0ustar Source: jinja2 Section: python Priority: optional Maintainer: Piotr Ożarowski Uploaders: Debian Python Modules Team Build-Depends: debhelper (>= 9), python-all (>= 2.6.6-3), python3-all, python-setuptools (>= 0.6b3-1~), python3-setuptools, python-sphinx (>= 1.0.7+dfsg) | python3-sphinx, python-pygments Standards-Version: 3.9.4 Homepage: http://jinja.pocoo.org/2/ X-Python-Version: >= 2.6 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/ Package: python-jinja2 Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-markupsafe Recommends: python-pkg-resources Suggests: python-jinja2-doc Enhances: python-pybabel 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: python-jinja2-doc Section: doc Architecture: all Priority: extra Depends: ${sphinxdoc:Depends}, ${misc:Depends} Recommends: python-jinja2 Description: documentation for the Jinja2 Python library Jinja2 is a small but fast and easy to use stand-alone template engine . This package contains the documentation for Jinja2 in HTML and reStructuredText formats. Package: python3-jinja2 Architecture: all Depends: ${python3:Depends}, ${misc:Depends}, python3-markupsafe Recommends: python3-pkg-resources Provides: ${python3:Provides} Suggests: python-jinja2-doc 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. debian/python-jinja2-doc.examples0000644000000000000000000000001311546703615014167 0ustar examples/* debian/watch0000644000000000000000000000017611546703615010233 0ustar version=3 opts=uversionmangle=s/rc/~rc/ \ http://pypi.python.org/packages/source/J/Jinja2/Jinja2-(.+)\.tar\.gz debian uupdate debian/python-jinja2-doc.docs0000644000000000000000000000002111546703615013300 0ustar docs/_build/html debian/patches/0000755000000000000000000000000012264521255010621 5ustar debian/patches/series0000644000000000000000000000012512264520535012034 0ustar drop_next_import_from_docs-jinjaext.patch jinja2-typos.patch fix_CVE-2014-0012.patch debian/patches/jinja2-typos.patch0000644000000000000000000000671412150225220014166 0ustar Description: doc typos Author: Jakub Wilk Bug-Debian: http://bugs.debian.org/679534 --- jinja2-2.7.orig/docs/tricks.rst +++ jinja2-2.7/docs/tricks.rst @@ -15,7 +15,7 @@ Null-Master Fallback Jinja2 supports dynamic inheritance and does not distinguish between parent and child template as long as no `extends` tag is visited. While this leads to the surprising behavior that everything before the first `extends` tag -including whitespace is printed out instead of being igored, it can be used +including whitespace is printed out instead of being ignored, it can be used for a neat trick. Usually child templates extend from one template that adds a basic HTML --- jinja2-2.7.orig/docs/templates.rst +++ jinja2-2.7/docs/templates.rst @@ -474,7 +474,7 @@ include characters that affect the resul manually escaping each variable or automatically escaping everything by default. Jinja supports both, but what is used depends on the application configuration. -The default configuaration is no automatic escaping for various reasons: +The default configuration is no automatic escaping for various reasons: - escaping everything except of safe values will also mean that Jinja is escaping variables known to not include HTML such as numbers which is @@ -1033,7 +1033,7 @@ but exists for completeness' sake. The a look at the ``~`` operator. ``{{ 1 + 1 }}`` is ``2``. \- - Substract the second number from the first one. ``{{ 3 - 2 }}`` is ``1``. + Subtract the second number from the first one. ``{{ 3 - 2 }}`` is ``1``. / Divide two numbers. The return value will be a floating point number. --- jinja2-2.7.orig/docs/sandbox.rst +++ jinja2-2.7/docs/sandbox.rst @@ -54,7 +54,7 @@ Operator Intercepting .. versionadded:: 2.6 -For maximum performace Jinja2 will let operators call directly the type +For maximum performance Jinja2 will let operators call directly the type specific callback methods. This means that it's not possible to have this intercepted by overriding :meth:`Environment.call`. Furthermore a conversion from operator to special method is not always directly possible --- jinja2-2.7.orig/docs/api.rst +++ jinja2-2.7/docs/api.rst @@ -450,7 +450,7 @@ This is especially useful if you have a the first request and Jinja compiles many templates at once which slows down the application. -To use a bytecode cache, instanciate it and pass it to the :class:`Environment`. +To use a bytecode cache, instantiate it and pass it to the :class:`Environment`. .. autoclass:: jinja2.BytecodeCache :members: load_bytecode, dump_bytecode, clear @@ -618,7 +618,7 @@ Evaluation Context ------------------ The evaluation context (short eval context or eval ctx) is a new object -introducted in Jinja 2.4 that makes it possible to activate and deactivate +introduced in Jinja 2.4 that makes it possible to activate and deactivate compiled features at runtime. Currently it is only used to enable and disable the automatic escaping but --- jinja2-2.7.orig/docs/extensions.rst +++ jinja2-2.7/docs/extensions.rst @@ -213,7 +213,7 @@ Writing Extensions .. module:: jinja2.ext -By writing extensions you can add custom tags to Jinja2. This is a non trival +By writing extensions you can add custom tags to Jinja2. This is a non-trivial task and usually not needed as the default tags and expressions cover all common use cases. The i18n extension is a good example of why extensions are useful, another one would be fragment caching. debian/patches/fix_CVE-2014-0012.patch0000644000000000000000000000103012264521660014063 0ustar Index: jinja2-2.7.2/jinja2/bccache.py =================================================================== --- jinja2-2.7.2.orig/jinja2/bccache.py +++ jinja2-2.7.2/jinja2/bccache.py @@ -206,7 +206,7 @@ class FileSystemBytecodeCache(BytecodeCa def __init__(self, directory=None, pattern='__jinja2_%s.cache'): if directory is None: - directory = self._get_default_cache_dir() + directory = tempfile.mkdtemp(prefix='jinja2-cache-') self.directory = directory self.pattern = pattern debian/patches/drop_next_import_from_docs-jinjaext.patch0000644000000000000000000000117512146475252021113 0ustar Description: drop next import from docs/jinjaext.py next is not available in jinja2/utils.py and all Python versions supported by Jessie already support this function, no need for backwards compatible wrapper Author: Piotr Ożarowski --- jinja2-2.7.orig/docs/jinjaext.py +++ jinja2-2.7/docs/jinjaext.py @@ -23,7 +23,7 @@ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic from jinja2 import Environment, FileSystemLoader -from jinja2.utils import next +#from jinja2.utils import next def parse_rst(state, content_offset, doc): debian/source/0000755000000000000000000000000011546703615010476 5ustar debian/source/format0000644000000000000000000000001411546704454011706 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000002066212264522215011047 0ustar jinja2 (2.7.2-2) unstable; urgency=high * Add fix_CVE-2014-1402 patch which uses tempfile.mkdtemp to create cache dir (closes: 734956) -- Piotr Ożarowski Sun, 12 Jan 2014 15:09:04 +0100 jinja2 (2.7.2-1) unstable; urgency=high * New upstream release - changes default folder for the filesystem cache (closes: 734747, CVE-2014-1402) -- Piotr Ożarowski Fri, 10 Jan 2014 20:56:20 +0100 jinja2 (2.7.1-1) unstable; urgency=low * New upstream release -- Piotr Ożarowski Thu, 08 Aug 2013 22:25:01 +0200 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) -- Piotr Ożarowski Sat, 25 May 2013 23:07:10 +0200 jinja2 (2.7-2) unstable; urgency=low * Relax build dependency on python3-all and hardcode python3-jinja2's Depends and postinst maintainer script (temporary fix, closes: #709390) -- Piotr Ożarowski Thu, 23 May 2013 18:42:20 +0200 jinja2 (2.7-1) unstable; urgency=low [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. [ Piotr Ożarowski ] * New upstream release - minimum required Python version bumped to 2.6 and 3.3 * debugsupport extension no longer available, Architecture changed to "all" * Bump minimum required python3-all version in Build-Depends (to generate versioned py3compile -V in maintainer script) * Add patches/drop_next_import_from_docs-jinjaext.patch to fix building docs * Use dh_sphinxdoc to handle JavaScript libraries used in -doc package * Standards-Version bumped to 3.9.4 - add build-arch and build-indep targets * debian/compat changed to 9 -- Piotr Ożarowski Mon, 20 May 2013 21:15:37 +0200 jinja2 (2.6-1) unstable; urgency=low * New upstream release * add_version_placeholder patch removed (no longer needed) * htmljinja.vim is no longer available, use jinja.vim instead * python3-jinja2 suggests python-jinja2-doc instead of python3-jinja2-doc * Standards-version bumped to 3.9.2 (no other changes needed) -- Piotr Ożarowski Mon, 25 Jul 2011 10:31:24 +0200 jinja2 (2.5.5-5) unstable; urgency=low * Drop hardcoded python3.1 from Depends (closes: #621816) * Do not compress objects.inv file (closes: #608757) -- Piotr Ożarowski Fri, 15 Apr 2011 22:05:53 +0200 jinja2 (2.5.5-4) unstable; urgency=low * Upload to unstable (closes: 621001) * Lower versions of build dependencies (to the ones from 2.5.5-1) * Convert from dh_pysupport to dh_python2 * Change source format to 3.0 (quilt), drop quilt build dependency -- Piotr Ożarowski Tue, 05 Apr 2011 23:21:21 +0200 jinja2 (2.5.5-3) experimental; urgency=low * Bump minimum required python-support version to the one in experimental to get Python 2.7 support (closes: 608149) -- Piotr Ożarowski Mon, 27 Dec 2010 23:15:04 +0100 jinja2 (2.5.5-2) experimental; urgency=low * Rebuild for Python 2.7 and 3.2 extension (minimum required python-all's version temporary bumped to 2.6.6-4, python-setuptools' to 0.6.14-5 and python3-all's to 3.1.2-14 to make sure the right version from experimental will be used). Closes: 607450. * Update debian/rules to handle Python >= 3.2 -- Piotr Ożarowski Tue, 21 Dec 2010 20:58:19 +0100 jinja2 (2.5.5-1) unstable; urgency=low * New upstream release -- Piotr Ożarowski Tue, 19 Oct 2010 08:34:49 +0200 jinja2 (2.5.4-1) unstable; urgency=low * New upstream release -- Piotr Ożarowski Sun, 17 Oct 2010 20:48:21 +0200 jinja2 (2.5.2-3) unstable; urgency=low * Rebuild against newer python3-all-dev package (python3.1 now uses /usr/lib/python3/), minimum python3-all version bumped to 3.1.2-10 * Use python3's python.mk * Drop python3-jinja2.{postinst,prerm} maintainer scripts, dh_python3 will generate them -- Piotr Ożarowski Sun, 26 Sep 2010 21:19:54 +0200 jinja2 (2.5.2-2) unstable; urgency=low * Really remove _markupsafe -- Piotr Ożarowski Thu, 19 Aug 2010 09:24:47 +0200 jinja2 (2.5.2-1) unstable; urgency=low * New upstream release - speedups module moved to separate package: MarkupSafe * python-markupsafe added to Depends (jinja2._markupsafe removed from the package) * debian/control: python3-jinja2 binary package updated to latest changes in dh_python3 * Standards-version bumped to 3.9.1 (no other changes needed) -- Piotr Ożarowski Wed, 18 Aug 2010 11:29:44 +0200 jinja2 (2.5-1) unstable; urgency=low * New upstream release * python3_builtins.patch removed, no longer needed * add python3.1 to python3-jinja2's Depends -- Piotr Ożarowski Sun, 30 May 2010 11:01:51 +0200 jinja2 (2.4.1-1) unstable; urgency=low * New upstream release * Add python3_builtins.patch taken from upstream repo (Different name for builtins in Python 3) -- Piotr Ożarowski Tue, 20 Apr 2010 19:51:16 +0200 jinja2 (2.4-3) unstable; urgency=low * Add missing maintainer scripts in python3-jinja2 package -- Piotr Ożarowski Sun, 18 Apr 2010 17:15:49 +0200 jinja2 (2.4-2) unstable; urgency=low * Add Python 3 support, new binary packages: python3-jinja2 and python3-jinja2-dbg -- Piotr Ożarowski Tue, 13 Apr 2010 20:44:43 +0200 jinja2 (2.4-1) unstable; urgency=low * New upstream release -- Piotr Ożarowski Tue, 13 Apr 2010 19:52:05 +0200 jinja2 (2.3.1-1) unstable; urgency=low * New upstream release * Move python-pybabel from Recommends to Enhances -- Piotr Ożarowski Fri, 19 Feb 2010 18:31:52 +0100 jinja2 (2.3-1) unstable; urgency=low * New upstream release * Hardcode __version__ at build time, no need to use pkg_resources (Closes: #548062) * Standards-version bumped to 3.8.4 (no other changes needed) -- Piotr Ożarowski Wed, 10 Feb 2010 22:06:28 +0100 jinja2 (2.2.1-1) unstable; urgency=low * New upstream release -- Piotr Ożarowski Tue, 15 Sep 2009 19:38:47 +0200 jinja2 (2.2-1) unstable; urgency=low [ Jakub Wilk ] * Build depend on Sphinx >= 0.6 (due to changes_for_sphinx_0.6 patch) [ Piotr Ożarowski ] * New upstream release (Closes: #536227) * No longer needed patches: - changes_for_sphinx_0.6.patch - dont_install_docs_via_setup_py.patch * pass --with-speedups to setup.py (building extension is now disabled by default in upstream code) * debian/copyright file updated * Standards-version bumped to 3.8.3 (no other changes needed) -- Piotr Ożarowski Sun, 13 Sep 2009 16:44:18 +0200 jinja2 (2.1.1-3) unstable; urgency=low * Documentation builds fine with new Sphinx now, thanks to Jakub Wilk for the patch (Closes: #527486) * Standards-version bumped to 3.8.2: - python-jinja2-dbg's section changed to debug * Support /usr/local/*/dist-packages in debian/rules (python2.6 will need it) -- Piotr Ożarowski Wed, 08 Jul 2009 21:40:46 +0200 jinja2 (2.1.1-2) unstable; urgency=low * Install Vim syntax files in /usr/share/vim/addons/syntax/ Use `vim-addons install jinja` to enable it (Closes: 514046) * Upload to unstable -- Piotr Ożarowski Tue, 10 Feb 2009 19:59:56 +0100 jinja2 (2.1.1-1) experimental; urgency=low * New upstream release * Build depend on Sphinx >= 0.5.1 + remove_non_ascii_char patch removed -- Piotr Ożarowski Thu, 25 Dec 2008 19:10:36 +0100 jinja2 (2.1-1) experimental; urgency=low [ Sandro Tosi ] * Switch Vcs-Browser field to viewsvn [ Piotr Ożarowski ] * New upstream release * Bump required python-sphinx version to >= 0.5 (needed to build docs) + upload to experimental (Sphinx 0.5 is in experimental for now) * Add remove_non_ascii_char patch (to workaround docutils/Sphinx bug) -- Piotr Ożarowski Sun, 30 Nov 2008 20:14:33 +0100 jinja2 (2.0-2) unstable; urgency=low * Recommend python-pybabel instead of python-babel (Closes: #501725) -- Piotr Ożarowski Thu, 09 Oct 2008 22:43:11 +0200 jinja2 (2.0-1) unstable; urgency=low * Initial release (this package is an successor of jinja package) -- Piotr Ożarowski Sun, 20 Jul 2008 23:01:02 +0200 debian/python-jinja2.dirs0000644000000000000000000000006611546703615012557 0ustar /usr/share/vim/addons/syntax/ /usr/share/vim/registry debian/u2to3.py0000644000000000000000000000035012150223764010514 0ustar #!/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') debian/python-jinja2.install0000644000000000000000000000013211613226340013244 0ustar ext/Vim/jinja.vim /usr/share/vim/addons/syntax/ debian/jinja.yaml /usr/share/vim/registry debian/jinja.yaml0000644000000000000000000000014711613226331011145 0ustar addon: jinja description: "allow syntax highlighting for Jinja templates" files: - syntax/jinja.vim