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
This commit is contained in:
parent
41c8f0a797
commit
80a5c1b8d3
3
Jinja2-2.10.tar.gz
Normal file
3
Jinja2-2.10.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f84be1bb0040caca4cea721fcbbbbd61f9be9464ca236387158b0feea01914a4
|
||||
size 261631
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ddaa01a212cd6d641401cb01b605f4a4d9f37bfc93043d7f760ec70fb99ff9ff
|
||||
size 437659
|
@ -1,3 +1,51 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 9 06:26:51 UTC 2017 - arun@gmx.de
|
||||
|
||||
- specfile:
|
||||
* CHANGES -> CHANGES.rst
|
||||
* added README.rst to %doc section
|
||||
|
||||
- update to version 2.10:
|
||||
* Added a new extension node called "OverlayScope" which can be used
|
||||
to create an unoptimized scope that will look up all variables
|
||||
from a derived context.
|
||||
* Added an "in" test that works like the in operator. This can be
|
||||
used in combination with "reject" and "select".
|
||||
* Added "previtem" and "nextitem" to loop contexts, providing access
|
||||
to the previous/next item in the loop. If such an item does not
|
||||
exist, the value is undefined.
|
||||
* Added "changed(*values)" to loop contexts, providing an easy way
|
||||
of checking whether a value has changed since the last iteration
|
||||
(or rather since the last call of the method)
|
||||
* Added a "namespace" function that creates a special object which
|
||||
allows attribute assignment using the "set" tag. This can be used
|
||||
to carry data across scopes, e.g. from a loop body to code that
|
||||
comes after the loop.
|
||||
* Added a "trimmed" modifier to "{% trans %}" to strip linebreaks
|
||||
and surrounding whitespace. Also added a new policy to enable this
|
||||
for all "trans" blocks.
|
||||
* The "random" filter is no longer incorrectly constant folded and
|
||||
will produce a new random choice each time the template is
|
||||
rendered. (`#478`_)
|
||||
* Added a "unique" filter. (`#469`_)
|
||||
* Added "min" and "max" filters. (`#475`_)
|
||||
* Added tests for all comparison operators: "eq", "ne", "lt", "le",
|
||||
"gt", "ge". (`#665`_)
|
||||
* "import" statement cannot end with a trailing comma. (`#617`_,
|
||||
`#618`_)
|
||||
* "indent" filter will not indent blank lines by default. (`#685`_)
|
||||
* Add "reverse" argument for "dictsort" filter. (`#692`_)
|
||||
* Add a "NativeEnvironment" that renders templates to native Python
|
||||
types instead of strings. (`#708`_)
|
||||
* Added filter support to the block "set" tag. (`#489`_)
|
||||
* "tojson" filter marks output as safe to match documented behavior.
|
||||
(`#718`_)
|
||||
* Resolved a bug where getting debug locals for tracebacks could
|
||||
modify template context.
|
||||
* Fixed a bug where having many "{% elif ... %}" blocks resulted in
|
||||
a "too many levels of indentation" error. These blocks now
|
||||
compile to native "elif ..:" instead of "else: if ..:" (`#759`_)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 4 14:56:17 UTC 2017 - jmatejek@suse.com
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
Name: python-Jinja2
|
||||
Version: 2.9.6
|
||||
Version: 2.10
|
||||
Release: 0
|
||||
Summary: A fast and easy to use template engine written in pure Python
|
||||
License: BSD-3-Clause
|
||||
@ -94,7 +94,7 @@ install -Dm644 ext/jinja.el %{buildroot}%{_datadir}/emacs/site-lisp/jinja.el # I
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS CHANGES LICENSE artwork examples
|
||||
%doc AUTHORS README.rst CHANGES.rst LICENSE artwork examples
|
||||
%{python_sitelib}/jinja2
|
||||
%{python_sitelib}/Jinja2-%{version}-py%{python_version}.egg-info
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user