forked from pool/python-Jinja2
- 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
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-Jinja2
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,7 +19,7 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
Name: python-Jinja2
|
||||
Version: 2.10.3
|
||||
Version: 2.11.1
|
||||
Release: 0
|
||||
Summary: A template engine written in pure Python
|
||||
License: BSD-3-Clause
|
||||
@@ -47,7 +47,6 @@ sandboxed environment.
|
||||
|
||||
%package -n python-Jinja2-vim
|
||||
Summary: Jinja2 syntax files for Vim
|
||||
License: BSD-3-Clause
|
||||
Requires: %{name} = %{version}
|
||||
%if 0%{?suse_version} || 0%{?fedora_version} >= 24
|
||||
Recommends: vim
|
||||
@@ -56,16 +55,6 @@ Recommends: vim
|
||||
%description -n python-Jinja2-vim
|
||||
Vim syntax highlighting scheme for Jinja2 templates.
|
||||
|
||||
%package -n python-Jinja2-emacs
|
||||
Summary: Jinja2 syntax files for Emacs
|
||||
License: GPL-2.0-or-later
|
||||
Requires: %{name} = %{version}
|
||||
%if 0%{?suse_version} || 0%{?fedora_version} >= 24
|
||||
Recommends: emacs
|
||||
%endif
|
||||
|
||||
%description -n python-Jinja2-emacs
|
||||
Emacs syntax highlighting scheme for Jinja2 templates.
|
||||
|
||||
%prep
|
||||
%setup -q -n Jinja2-%{version}
|
||||
@@ -77,7 +66,6 @@ dos2unix LICENSE.rst # Fix wrong EOL encoding
|
||||
%install
|
||||
%python_install
|
||||
install -Dm644 ext/Vim/jinja.vim %{buildroot}%{_datadir}/vim/site/syntax/jinja.vim # Install VIM syntax file
|
||||
install -Dm644 ext/jinja.el %{buildroot}%{_datadir}/emacs/site-lisp/jinja.el # Install Emacs syntax file
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -95,7 +83,4 @@ install -Dm644 ext/jinja.el %{buildroot}%{_datadir}/emacs/site-lisp/jinja.el # I
|
||||
%dir %{_datadir}/vim/site/syntax
|
||||
%{_datadir}/vim/site/syntax/jinja.vim
|
||||
|
||||
%files -n python-Jinja2-emacs
|
||||
%{_datadir}/emacs/site-lisp/jinja.el
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user