From af04b1e1619a427eba9a5d0364c6fbe5e09bb373a11347fc05bf12a2f9ec38eb Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Thu, 19 Nov 2015 15:58:15 +0000 Subject: [PATCH] Accepting request 345259 from home:aplanas:branches:devel:languages:python - Update to 2.8 - Added `target` parameter to urlize function. - Added support for `followsymlinks` to the file system loader. - The truncate filter now counts the length. - Added equalto filter that helps with select filters. - Changed cache keys to use absolute file names if available instead of load names. - Fixed loop length calculation for some iterators. - Changed how Jinja2 enforces strings to be native strings in Python 2 to work when people break their default encoding. - Added :func:`make_logging_undefined` which returns an undefined object that logs failures into a logger. - If unmarshalling of cached data fails the template will be reloaded now. - Implemented a block ``set`` tag. - Default cache size was incrased to 400 from a low 50. - Fixed ``is number`` test to accept long integers in all Python versions. - Changed ``is number`` to accept Decimal as a number. - Added a check for default arguments followed by non-default arguments. This change makes ``{% macro m(x, y=1, z) %}...{% endmacro %}`` a syntax error. The previous behavior for this code was broken anyway (resulting in the default value being applied to `y`). - Add ability to use custom subclasses of ``jinja2.compiler.CodeGenerator`` and ``jinja2.runtime.Context`` by adding two new attributes to the environment (`code_generator_class` and `context_class`) (pull request ``#404``). - added support for context/environment/evalctx decorator functions on the finalize callback of the environment. - escape query strings for urlencode properly. Previously slashes were not escaped in that place. - Add 'base' parameter to 'int' filter. OBS-URL: https://build.opensuse.org/request/show/345259 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=47 --- Jinja2-2.7.3.tar.gz | 3 --- Jinja2-2.8.tar.gz | 3 +++ python-Jinja2.changes | 35 +++++++++++++++++++++++++++++++++++ python-Jinja2.spec | 5 +---- 4 files changed, 39 insertions(+), 7 deletions(-) delete mode 100644 Jinja2-2.7.3.tar.gz create mode 100644 Jinja2-2.8.tar.gz diff --git a/Jinja2-2.7.3.tar.gz b/Jinja2-2.7.3.tar.gz deleted file mode 100644 index ede8b2c..0000000 --- a/Jinja2-2.7.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2e24ac5d004db5714976a04ac0e80c6df6e47e98c354cb2c0d82f8879d4f8fdb -size 378470 diff --git a/Jinja2-2.8.tar.gz b/Jinja2-2.8.tar.gz new file mode 100644 index 0000000..d2cda38 --- /dev/null +++ b/Jinja2-2.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc1ff2ff88dbfacefde4ddde471d1417d3b304e8df103a7a9437d47269201bf4 +size 357055 diff --git a/python-Jinja2.changes b/python-Jinja2.changes index aa261aa..6127545 100644 --- a/python-Jinja2.changes +++ b/python-Jinja2.changes @@ -1,3 +1,38 @@ +------------------------------------------------------------------- +Thu Nov 19 13:18:12 UTC 2015 - aplanas@suse.com + +- Update to 2.8 + - Added `target` parameter to urlize function. + - Added support for `followsymlinks` to the file system loader. + - The truncate filter now counts the length. + - Added equalto filter that helps with select filters. + - Changed cache keys to use absolute file names if available + instead of load names. + - Fixed loop length calculation for some iterators. + - Changed how Jinja2 enforces strings to be native strings in + Python 2 to work when people break their default encoding. + - Added :func:`make_logging_undefined` which returns an undefined + object that logs failures into a logger. + - If unmarshalling of cached data fails the template will be + reloaded now. + - Implemented a block ``set`` tag. + - Default cache size was incrased to 400 from a low 50. + - Fixed ``is number`` test to accept long integers in all Python versions. + - Changed ``is number`` to accept Decimal as a number. + - Added a check for default arguments followed by non-default arguments. This + change makes ``{% macro m(x, y=1, z) %}...{% endmacro %}`` a syntax error. The + previous behavior for this code was broken anyway (resulting in the default + value being applied to `y`). + - Add ability to use custom subclasses of ``jinja2.compiler.CodeGenerator`` and + ``jinja2.runtime.Context`` by adding two new attributes to the environment + (`code_generator_class` and `context_class`) (pull request ``#404``). + - added support for context/environment/evalctx decorator functions on + the finalize callback of the environment. + - escape query strings for urlencode properly. Previously slashes were not + escaped in that place. + - Add 'base' parameter to 'int' filter. +- Tests are removed from the package (not distributed in the tar.gz) + ------------------------------------------------------------------- Wed Jul 22 14:20:45 UTC 2015 - jengelh@inai.de diff --git a/python-Jinja2.spec b/python-Jinja2.spec index b901d2a..2bee9f1 100644 --- a/python-Jinja2.spec +++ b/python-Jinja2.spec @@ -17,7 +17,7 @@ Name: python-Jinja2 -Version: 2.7.3 +Version: 2.8 Release: 0 Summary: A fast and easy to use template engine written in pure Python License: BSD-3-Clause @@ -92,9 +92,6 @@ install -Dm644 ext/jinja.el %{buildroot}%{_datadir}/emacs/site-lisp/jinja.el # I %fdupes %{buildroot}%{_prefix} %endif -%check -python run-tests.py - %files %defattr(-,root,root,-) %doc AUTHORS CHANGES LICENSE artwork examples