126 Commits

Author SHA256 Message Date
2c1018a7cb - update to 2.11.1
* Fix a bug that prevented looking up a key after an attribute
   ({{ data.items[1:] }}) in an async template
 * Drop support for Python 2.6, 3.3, and 3.4. This will be the last version
   to support Python 2.7 and 3.5.
 * Added a new ChainableUndefined class to support getitem and getattr
   on an undefined object.
 * Allow {%+ syntax (with NOP behavior) when lstrip_blocks is disabled.
 * Added a default parameter for the map filter.
 * Exclude environment globals from meta.find_undeclared_variables().
 * Float literals can be written with scientific notation, like 2.56e-3.
 * Int and float literals can be written with the ‘_’ separator
   for legibility, like 12_345.
 * Fix a bug causing deadlocks in LRUCache.setdefault
 * The trim filter takes an optional string of characters to trim.
 * A new jinja2.ext.debug extension adds a {% debug %} tag to quickly dump
   the current context and available filters and tests.
 * Lexing templates with large amounts of whitespace is much faster.
 * Parentheses around comparisons are preserved, so {{ 2 * (3 < 5) }} outputs
   “2” instead of “False”.
 * Add new boolean, false, true, integer and float tests.
 * The environment’s finalize function is only applied to the output of expressions
   (constant or not), not static template data.
 * When providing multiple paths to FileSystemLoader, a template can have
   the same name as a directory.
 * Always return Undefined when omitting the else clause in a {{ 'foo' if bar }}
   expression, regardless of the environment’s undefined class. Omitting
   the else clause is a valid shortcut and should not raise an error when using
   StrictUndefined.
 * Fix behavior of loop control variables such as length and revindex0 when

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=76
2020-02-18 17:34:49 +00:00
f9fb753b15 Accepting request 735867 from devel:languages:python
- Update to 2.10.3:
  * Fix Python 3.7 deprecation warnings.
  * Using range in the sandboxed environment uses xrange on Python 2 to avoid memory use. :issue:`933`
  * Use Python 3.7's better traceback support to avoid a core dump when using debug builds of Python 3.7. :issue:`1050`
  * Fix a typo in Babel entry point in setup.py that was preventing installation.
- Remove merged python38.patch

OBS-URL: https://build.opensuse.org/request/show/735867
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=37
2019-11-04 16:04:22 +00:00
Tomáš Chvátal
3bb888be77 - Update to 2.10.3:
* Fix Python 3.7 deprecation warnings.
  * Using range in the sandboxed environment uses xrange on Python 2 to avoid memory use. :issue:`933`
  * Use Python 3.7's better traceback support to avoid a core dump when using debug builds of Python 3.7. :issue:`1050`
  * Fix a typo in Babel entry point in setup.py that was preventing installation.
- Remove merged python38.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=74
2019-10-07 13:42:06 +00:00
145e38345e Accepting request 732915 from devel:languages:python
- Add patch to work with python 3.8:
  * python38.patch

OBS-URL: https://build.opensuse.org/request/show/732915
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=36
2019-09-30 13:55:31 +00:00
Tomáš Chvátal
ebf628bfa2 - Add patch to work with python 3.8:
* python38.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=72
2019-09-24 11:08:14 +00:00
edacb25ffe Accepting request 699516 from devel:languages:python
- update to version 2.10.1 (bsc#1132323, CVE-2019-10906, bsc#1125815, CVE-2019-8341):
- Update to 2.9.5 (bsc#1132174, CVE-2016-10745)

OBS-URL: https://build.opensuse.org/request/show/699516
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=35
2019-05-05 19:19:27 +00:00
70c95b1a56 - Update to 2.9.5 (bsc#1132174, CVE-2016-10745)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=70
2019-04-30 03:52:25 +00:00
71b5ca4be4 - update to version 2.10.1 (bsc#1132323, CVE-2019-10906, bsc#1125815, CVE-2019-8341):
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=69
2019-04-30 03:47:17 +00:00
2d3f3ad072 Accepting request 694206 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/694206
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=34
2019-04-19 16:36:56 +00:00
Tomáš Chvátal
08a1273b8f Accepting request 693919 from home:jengelh:branches:devel:languages:python
- Trim bias from descriptions. Make sure % is escaped.

OBS-URL: https://build.opensuse.org/request/show/693919
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=67
2019-04-15 09:38:14 +00:00
45d9838fa2 - update to version 2.10.1 (bsc#1132323, CVE-2019-10906):
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=66
2019-04-15 06:36:04 +00:00
60fb8787c2 Accepting request 693824 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/693824
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=65
2019-04-13 09:56:36 +00:00
Stephan Kulow
09bc184ac9 Accepting request 677238 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/677238
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=33
2019-02-24 19:46:44 +00:00
40bd2cec9f Accepting request 677234 from home:jayvdb:moban
- Activate test suite
- Add minimum build dependency to match runtime dependency

OBS-URL: https://build.opensuse.org/request/show/677234
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=63
2019-02-19 05:56:36 +00:00
89d74da297 Accepting request 656829 from devel:languages:python
- Fix fdupes call

- Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/656829
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=32
2018-12-14 19:48:14 +00:00
Tomáš Chvátal
6fd4ec8a40 - Fix fdupes call
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=61
2018-12-10 12:43:13 +00:00
4df1d45015 Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=60
2018-12-04 17:15:42 +00:00
4087e03b57 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=59
2018-12-04 13:35:16 +00:00
208a65b595 Accepting request 583700 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/583700
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=31
2018-03-09 09:34:32 +00:00
Tomáš Chvátal
9ae6bc7fe1 Accepting request 583466 from home:aplanas:branches:devel:languages:python
Allows Recommends and Suggest in Fedora

OBS-URL: https://build.opensuse.org/request/show/583466
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=57
2018-03-06 20:51:40 +00:00
d7221bd9ef Accepting request 580801 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/580801
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=30
2018-03-05 12:34:44 +00:00
6aa0cc8953 Accepting request 580742 from home:aplanas:branches:devel:languages:python
- Recommends only for SUSE

OBS-URL: https://build.opensuse.org/request/show/580742
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=55
2018-02-27 21:51:01 +00:00
a0a5049d44 Accepting request 540464 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/540464
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=29
2017-11-12 17:00:10 +00:00
80a5c1b8d3 Accepting request 540119 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/540119
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=53
2017-11-10 11:53:28 +00:00
165a451cb8 Accepting request 485735 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/485735
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=28
2017-04-19 16:07:30 +00:00
41c8f0a797 Accepting request 485686 from devel:languages:python:singlespec
- update for singlespec
- update to 2.9.6
  * fixed custom context behavior in fast resolve mode

OBS-URL: https://build.opensuse.org/request/show/485686
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=51
2017-04-05 05:32:48 +00:00
f17bca1878 - fix requires
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=50
2017-03-22 04:39:50 +00:00
ebca934777 Accepting request 481792 from home:stroeder:branches:devel:languages:python
update to 2.9.5

OBS-URL: https://build.opensuse.org/request/show/481792
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=49
2017-03-21 16:07:46 +00:00
35ab65a4fc Accepting request 345260 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/345260
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=27
2015-12-03 12:25:45 +00:00
af04b1e161 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
2015-11-19 15:58:15 +00:00
Stephan Kulow
8ba9327e26 Accepting request 317965 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/317965
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=26
2015-07-24 07:57:41 +00:00
5fd4a70f96 Accepting request 317956 from home:jengelh:branches:devel:languages:python
- Use %python_version over %py_ver: better portability to RHEL

OBS-URL: https://build.opensuse.org/request/show/317956
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=45
2015-07-22 14:50:36 +00:00
Stephan Kulow
1f3f1c79ca Accepting request 306661 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/306661
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=25
2015-05-15 07:02:57 +00:00
Denisart Benjamin
e7bc06937c Accepting request 305728 from Cloud:OpenStack:Master
- Update to 2.7.3 (bnc#858239, CVE-2014-0012)

OBS-URL: https://build.opensuse.org/request/show/305728
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=43
2015-05-12 21:28:04 +00:00
3bf0c8d939 Accepting request 244834 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/244834
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=23
2014-08-20 15:52:41 +00:00
Michal Čihař
95cbfbe87d Accepting request 244833 from home:Nijel:branches:devel:languages:python
- run testsuite during build

- adjust dependency to use up to date package name for python-MarkupSafe

OBS-URL: https://build.opensuse.org/request/show/244833
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=41
2014-08-15 12:37:44 +00:00
Stephan Kulow
5c43b834ad Accepting request 241046 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/241046
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=22
2014-07-16 14:37:11 +00:00
Todd R
3d9ac61e80 Accepting request 241045 from home:TheBlackCat:branches:devel:languages:python
Update to 2.7.3

OBS-URL: https://build.opensuse.org/request/show/241045
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=39
2014-07-15 10:46:55 +00:00
Stephan Kulow
f075b1a043 Accepting request 233228 from devel:languages:python
- fix package build (file selection missing) (forwarded request 233206 from frispete)

OBS-URL: https://build.opensuse.org/request/show/233228
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=21
2014-05-10 20:56:59 +00:00
Todd R
7a1602f410 Accepting request 233206 from home:frispete:python
- fix package build (file selection missing)

OBS-URL: https://build.opensuse.org/request/show/233206
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=37
2014-05-09 08:03:23 +00:00
Todd R
e80ef494fb OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=36 2014-05-08 11:33:06 +00:00
Stephan Kulow
5427221bdc Accepting request 231785 from devel:languages:python
- avoid rebuildcycle with vim (forwarded request 231546 from dirkmueller)

OBS-URL: https://build.opensuse.org/request/show/231785
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=20
2014-05-02 17:21:58 +00:00
Denisart Benjamin
f4c29e8c29 Accepting request 231546 from Cloud:OpenStack:Master
- avoid rebuildcycle with vim

OBS-URL: https://build.opensuse.org/request/show/231546
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=34
2014-04-28 09:04:18 +00:00
Stephan Kulow
9e9355130a Accepting request 213770 from devel:languages:python
- update to 2.7.2:
  - Prefix loader was not forwarding the locals properly to
    inner loaders.  This is now fixed.
  - Security issue: Changed the default folder for the filesystem cache to be
    user specific and read and write protected on UNIX systems.  See `Debian bug
    734747`_ for more information. (forwarded request 213701 from dirkmueller)

OBS-URL: https://build.opensuse.org/request/show/213770
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=19
2014-01-16 14:38:11 +00:00
Denisart Benjamin
dd4852d57c Accepting request 213701 from Cloud:OpenStack:Master
- update to 2.7.2:
  - Prefix loader was not forwarding the locals properly to
    inner loaders.  This is now fixed.
  - Security issue: Changed the default folder for the filesystem cache to be
    user specific and read and write protected on UNIX systems.  See `Debian bug
    734747`_ for more information.

OBS-URL: https://build.opensuse.org/request/show/213701
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=32
2014-01-13 17:20:46 +00:00
Tomáš Chvátal
4708aa1a88 Accepting request 204582 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/204582
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=18
2013-10-25 09:19:53 +00:00
Sascha Peilicke
5ea5496812 - Require python-setuptools instead of distribute (upstreams merged)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=30
2013-10-24 11:07:21 +00:00
Stephan Kulow
9e84d944c5 Accepting request 197127 from devel:languages:python
- Avoid "Recommends:" on old rpm distros

OBS-URL: https://build.opensuse.org/request/show/197127
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=16
2013-09-03 20:03:21 +00:00
Sascha Peilicke
92869f45a3 - Avoid "Recommends:" on old rpm distros
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=28
2013-09-02 14:59:46 +00:00
Sascha Peilicke
18a003e610 Accepting request 196196 from home:H4T:filesystem:Testing
Avoid "Recommends:" on old rpm distros

OBS-URL: https://build.opensuse.org/request/show/196196
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=27
2013-09-02 08:33:04 +00:00