forked from pool/python-Chameleon
Accepting request 1114697 from devel:languages:python
- update to 4.2.0:
* An XML document provided as a string (i.e. decoded) now
correctly has its content encoding parsed.
* Boolean attributes are now automatically configured for
templates in non-XML mode, presuming that we're being used
to generate HTML.
* This means that the same loading mechanism can be used for
both XML-and HTML-based templates.
* Boolean attributes (those configured using the optional
`boolean_attributes` parameter) now work with $-expression
interpolation.
* Unlike content and regular attributes, a special check for a
falsy value is now done for boolean attributes, such that
boolean logic can be used for interpolation expressions
(only a truthy value will include the attribute).
This reverts a change in behavior introduced in 3.8.0.
* Fix format spec applying for f-strings.
* Drop support for Python 2.7, 3.5, 3.6.
* Add support for set- and dict comprehensions
* Remove the following functions resp. modules:
``.utils.text_()``
``.utils.unescape()``
``.compat``
* A RepeatDict no longer inherits from dict since it does not actually provide
* Added feature gate enable_comment_interpolation which controls whether
Add option restricted_namespace which controls whether to
restrict namespaces to those defined and used by the page
Fixed attribute HTML entity escaping issue where an entity such
Simplify exception tracking, reducing bytecode size
OBS-URL: https://build.opensuse.org/request/show/1114697
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=15
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:20b6f77a69f8d908942bc21f25f8fd458ed5dbe756567cd47d62639736c3fe8e
|
||||
size 137228
|
||||
3
Chameleon-4.2.0.tar.gz
Normal file
3
Chameleon-4.2.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:74745322830a58b28735536baf3109a5b1a92424fd3691f0ca4043bef289d773
|
||||
size 140486
|
||||
@@ -1,3 +1,30 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 07:19:53 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 4.2.0:
|
||||
* An XML document provided as a string (i.e. decoded) now
|
||||
correctly has its content encoding parsed.
|
||||
* Boolean attributes are now automatically configured for
|
||||
templates in non-XML mode, presuming that we're being used
|
||||
to generate HTML.
|
||||
* This means that the same loading mechanism can be used for
|
||||
both XML-and HTML-based templates.
|
||||
* Boolean attributes (those configured using the optional
|
||||
`boolean_attributes` parameter) now work with $-expression
|
||||
interpolation.
|
||||
* Unlike content and regular attributes, a special check for a
|
||||
falsy value is now done for boolean attributes, such that
|
||||
boolean logic can be used for interpolation expressions
|
||||
(only a truthy value will include the attribute).
|
||||
This reverts a change in behavior introduced in 3.8.0.
|
||||
* Fix format spec applying for f-strings.
|
||||
* Drop support for Python 2.7, 3.5, 3.6.
|
||||
* Add support for set- and dict comprehensions
|
||||
* Remove the following functions resp. modules:
|
||||
``.utils.text_()``
|
||||
``.utils.unescape()``
|
||||
``.compat``
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 4 15:01:37 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
@@ -50,9 +77,9 @@ Fri Apr 17 08:04:30 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
- Update to 3.7.0
|
||||
* Fixed garbage collection issue with variable scope objects (issue #301).
|
||||
* Fixed issue where setting a global variable would not be available locally.
|
||||
* A RepeatDict no longer inherits from dict since it does not actually provide
|
||||
* A RepeatDict no longer inherits from dict since it does not actually provide
|
||||
that interface in a meaningful way.
|
||||
* Added feature gate enable_comment_interpolation which controls whether
|
||||
* Added feature gate enable_comment_interpolation which controls whether
|
||||
expression interpolation is enabled inside HTML comments (default is enabled).
|
||||
* Added support for Python 3.6+ f-strings (issue #294).
|
||||
|
||||
@@ -110,45 +137,45 @@ Sat Sep 16 19:43:24 UTC 2017 - bruno@ioda-net.ch
|
||||
|
||||
- Update to version 3.1
|
||||
+ Features:
|
||||
Add option restricted_namespace which controls whether to
|
||||
restrict namespaces to those defined and used by the page
|
||||
Add option restricted_namespace which controls whether to
|
||||
restrict namespaces to those defined and used by the page
|
||||
template language. [hansroh]
|
||||
+ Bugs:
|
||||
Fixed attribute HTML entity escaping issue where an entity such
|
||||
Fixed attribute HTML entity escaping issue where an entity such
|
||||
as & would be encoded twice.
|
||||
+ Optimizations:
|
||||
Simplify exception tracking, reducing bytecode size
|
||||
Simplify exception tracking, reducing bytecode size
|
||||
significantly.
|
||||
Avoid checking if a static string is None during expression
|
||||
Avoid checking if a static string is None during expression
|
||||
interpolation.
|
||||
3.0 (2016-12-07)
|
||||
+ Bugs:
|
||||
Fix issue on Python 2 where an exception was not cleared when
|
||||
using the pipe operator and was thus accessible through
|
||||
Fix issue on Python 2 where an exception was not cleared when
|
||||
using the pipe operator and was thus accessible through
|
||||
sys.exc_info().
|
||||
The “exists” expression no longer leaks error information.
|
||||
Escape ‘$$’ into ‘$’ in both content and string expressions.
|
||||
Fix use of macro definition inside translation block.
|
||||
+ Improvements:
|
||||
Allow unquoted attribute values.
|
||||
Wrap attribute error thrown when trying to use a non-macro as
|
||||
Wrap attribute error thrown when trying to use a non-macro as
|
||||
a macro as a RenderError to get proper error output.
|
||||
Throw a parse error if ‘–’ (double hyphen) appears in an
|
||||
Throw a parse error if ‘–’ (double hyphen) appears in an
|
||||
XML comment.
|
||||
The i18n:target attribute now overrides a default target_language
|
||||
variable and is passed to the translation function.
|
||||
Include filename in the on-disk cache module name. Previously,
|
||||
only the SHA digest in hex representation would be used, making
|
||||
it difficult to see where the module came from. This fixes
|
||||
Include filename in the on-disk cache module name. Previously,
|
||||
only the SHA digest in hex representation would be used, making
|
||||
it difficult to see where the module came from. This fixes
|
||||
issue #132.
|
||||
Add support for non-ascii attribute names. [sank]
|
||||
+ Compatibility:
|
||||
Drop support for Python 2.6, 3.1, and 3.2.
|
||||
2.25 (2016-09-24)
|
||||
Add explicit support / testing for Python 3.5.
|
||||
Add \r to negative regex matches to the chameleon parser, where
|
||||
\n is used but \r was missing. Fixes a case, where the tag name
|
||||
was parsed into html\r instead of html.
|
||||
Add \r to negative regex matches to the chameleon parser, where
|
||||
\n is used but \r was missing. Fixes a case, where the tag name
|
||||
was parsed into html\r instead of html.
|
||||
Fixes: https://github.com/malthe/chameleon/issues/219
|
||||
2.24 (2015-10-28)
|
||||
Fixed Python 3.5 compatibility.
|
||||
@@ -156,11 +183,11 @@ Sat Sep 16 19:43:24 UTC 2017 - bruno@ioda-net.ch
|
||||
2.23 (2015-10-26)
|
||||
Added enable_data_attributes option that allows using HTML5 data attributes as control attributes instead or in addition to XML namespace attributes.
|
||||
|
||||
- Packaging :
|
||||
- Packaging :
|
||||
+ Move to singlespec
|
||||
+ Spec-cleanup
|
||||
+ Split documentation to speedup rebuild
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 6 17:07:27 UTC 2015 - hpj@urpla.net
|
||||
|
||||
@@ -197,7 +224,7 @@ Fri Feb 6 17:07:27 UTC 2015 - hpj@urpla.net
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 10 11:44:10 UTC 2013 - p.drouand@gmail.com
|
||||
|
||||
- Update to version 2.14
|
||||
- Update to version 2.14
|
||||
+ Element repetition using the TAL namespace no longer includes
|
||||
whitespace. This fixes issue #110.
|
||||
+ Use absolute import for chameleon.interfaces module. This fixes
|
||||
@@ -238,7 +265,7 @@ Thu Nov 22 09:39:27 UTC 2012 - toddrme2178@gmail.com
|
||||
|
||||
- Update to 2.11
|
||||
- Bugfixes:
|
||||
- An issue was resolved where a METAL statement was combined
|
||||
- An issue was resolved where a METAL statement was combined
|
||||
with a ``tal:on-error`` handler.
|
||||
- Fix minor parser issue with incorrectly formatted processing
|
||||
instructions.
|
||||
@@ -247,32 +274,32 @@ Thu Nov 22 09:39:27 UTC 2012 - toddrme2178@gmail.com
|
||||
- The simple translation function now supports the
|
||||
``translationstring`` interface.
|
||||
- Optimizations:
|
||||
- Minor optimization which correctly detects when an element
|
||||
- Minor optimization which correctly detects when an element
|
||||
has no attributes.
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 21 16:22:03 UTC 2012 - suse@ammler.ch
|
||||
|
||||
- update to 2.10
|
||||
- Deprecations:
|
||||
- The fast_translate function has been deprecated. Instead, the default translation
|
||||
- The fast_translate function has been deprecated. Instead, the default translation
|
||||
function is now always a function that simply interpolates the mapping onto the message default or id.
|
||||
- The motivation is that since version 2.9, the context argument is non-trivial: the econtext
|
||||
mapping is passed. This breaks an expectation on the Zope platform that the context parameter is the HTTP
|
||||
- The motivation is that since version 2.9, the context argument is non-trivial: the econtext
|
||||
mapping is passed. This breaks an expectation on the Zope platform that the context parameter is the HTTP
|
||||
request. Previously, with Chameleon this parameter was simply not provided and so that did not cause issues as such.
|
||||
- The ast24 module has been renamed to ast25. This should help clear up any confusion that
|
||||
- The ast24 module has been renamed to ast25. This should help clear up any confusion that
|
||||
Chameleon 2.x might be support a Python interpreter less than version 2.5 (it does not).
|
||||
- Features:
|
||||
- The ProxyExpr expression class (and hence the load: expression type) is now a TALES-expression.
|
||||
In practical terms, this means that the expression type (which computes a string result using the
|
||||
- The ProxyExpr expression class (and hence the load: expression type) is now a TALES-expression.
|
||||
In practical terms, this means that the expression type (which computes a string result using the
|
||||
standard "${...}" interpolation syntax and proxies the result through a function) now supports fallback using the pipe operator ("|"). This fixes issue #128.
|
||||
- An attempt to interpolate using the empty string as the expression (i.e. ${}) now does nothing: the string ${} is simply output as is.
|
||||
- Added support for adding, modifying, and removing attributes using a dictionary expression in tal:attributes (analogous to Genshi's py:attrs directive):
|
||||
- <div tal:attributes="name value; attrs" />
|
||||
- In the example above, name is an identifier, while value and attrs are Python expressions. However,
|
||||
- In the example above, name is an identifier, while value and attrs are Python expressions. However,
|
||||
attrs must evaluate to a Python dictionary object (more concisely, the value must implement the dictionary API-methods update() and items()).
|
||||
- Optimizations:
|
||||
- In order to cut down on the size of the compiled function objects, some conversion and quoting statements
|
||||
- In order to cut down on the size of the compiled function objects, some conversion and quoting statements
|
||||
have been put into functions. In one measurement, the reduction was 35%. The benchmark suite does not report of an increased render time (actually slightly decreased).
|
||||
- Bugfixes:
|
||||
- An exception is now raised if a trivial string is passed for metal:fill-slot. This fixes issue #89.
|
||||
@@ -289,25 +316,25 @@ Thu Jun 7 10:14:49 UTC 2012 - suse@ammler.ch
|
||||
- Fixed a PyPy incompatibility.
|
||||
- Fixed issue #109 which caused testing failures on some platforms.
|
||||
- changes in 2.9.1
|
||||
- Fixed issue #103. The tal:on-error statement now always adds an explicit
|
||||
- Fixed issue #103. The tal:on-error statement now always adds an explicit
|
||||
end-tag to the element, even with a substitution content of nothing.
|
||||
- Fixed issue #113. The tal:on-error statement now works correctly also for
|
||||
- Fixed issue #113. The tal:on-error statement now works correctly also for
|
||||
dynamic attributes. That is, the fallback tag now includes only static attributes.
|
||||
- Fixed name error which prevented the benchmark from running correctly.
|
||||
- Compatibility: Fixed deprecation warning on Python 3 for zope interface implements declaration. This fixes issue #116.
|
||||
- changes in 2.9.0
|
||||
- Feature: The translation function now gets the econtext argument as the
|
||||
value for context. Note that historically, this was usually an HTTP request
|
||||
- Feature: The translation function now gets the econtext argument as the
|
||||
value for context. Note that historically, this was usually an HTTP request
|
||||
which might provide language negotiation data through a dictionary interface. [alvinyue]
|
||||
- Fixed import alias issue which would lead to a syntax error in generated Python code. Fixes issue #114.
|
||||
- changes in 2.8.5
|
||||
- Fixed minor installation issues on Python 2.5 and 3. [ppaez]
|
||||
- Ensure output is unicode even when trivial (an empty string).
|
||||
- changes in 2.8.4
|
||||
- Feature: In exception output, long filenames are now truncated to 60 characters
|
||||
- Feature: In exception output, long filenames are now truncated to 60 characters
|
||||
of output, preventing line wrap which makes it difficult to scan the exception output.
|
||||
- Bugfix: Include filename and location in exception output for exceptions raised during compilation.
|
||||
- Bugfix: If a trivial translation substitution variable is given
|
||||
- Bugfix: If a trivial translation substitution variable is given
|
||||
(i.e. an empty string), simply ignore it. This fixes issue #106.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
@@ -315,12 +342,12 @@ Sun May 27 04:05:18 UTC 2012 - highwaystar.ru@gmail.com
|
||||
|
||||
- python3 package added
|
||||
- removed cercular Chameleon BuildRequires, use PYTHONPATH instead
|
||||
- minor file section improvement
|
||||
- minor file section improvement
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 19 10:38:41 UTC 2012 - suse@ammler.ch
|
||||
|
||||
- add Chameleon as BuildRequires to build the docs
|
||||
- add Chameleon as BuildRequires to build the docs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 16 10:32:33 UTC 2012 - suse@ammler.ch
|
||||
@@ -333,9 +360,9 @@ Mon Apr 16 10:32:33 UTC 2012 - suse@ammler.ch
|
||||
Sat Mar 31 08:58:26 UTC 2012 - suse@ammler.ch
|
||||
|
||||
- update to 2.8.2
|
||||
- Feature: Temporary caches used in debug mode are cleaned up
|
||||
- Feature: Temporary caches used in debug mode are cleaned up
|
||||
eagerly, rather than waiting for process termination.
|
||||
- Fix: The index, start and end methods on the TAL repeat object
|
||||
- Fix: The index, start and end methods on the TAL repeat object
|
||||
are now callable. This fixes an incompatibility with ZPT.
|
||||
- Fix: The loader now correctly handles absolute paths on Windows.
|
||||
|
||||
@@ -343,11 +370,11 @@ Sat Mar 31 08:58:26 UTC 2012 - suse@ammler.ch
|
||||
Fri Mar 30 11:37:12 UTC 2012 - suse@ammler.ch
|
||||
|
||||
- update to 2.8.1
|
||||
- Feature: The exception formatter now lists errors in 'wrapping order'.
|
||||
- Feature: The exception formatter now lists errors in 'wrapping order'.
|
||||
This means that the innermost, and presumably most relevant exception is shown last.
|
||||
- Fix: The exception formatter now correctly recognizes nested errors
|
||||
- Fix: The exception formatter now correctly recognizes nested errors
|
||||
and does not rewrap the dynamically generated exception class.
|
||||
- Fix: The exception formatter now correctly sets the __module__
|
||||
- Fix: The exception formatter now correctly sets the __module__
|
||||
attribute to that of the original exception class.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
@@ -362,11 +389,11 @@ Thu Mar 8 13:13:04 UTC 2012 - saschpe@suse.de
|
||||
Wed Mar 7 20:30:40 UTC 2012 - suse@ammler.ch
|
||||
|
||||
- update to 2.8.0
|
||||
- Feature: support for code blocks using the <?python ... ?>
|
||||
- Feature: support for code blocks using the <?python ... ?>
|
||||
processing instruction syntax.
|
||||
- Fix: Fall back to the exception class' __new__ method to safely
|
||||
- Fix: Fall back to the exception class' __new__ method to safely
|
||||
create an exception object that is not implemented in Python.
|
||||
- Fix: The exception formatter now keeps track of already
|
||||
- Fix: The exception formatter now keeps track of already
|
||||
formatted exceptions, and ignores them from further output.
|
||||
- add setuptools as requires
|
||||
|
||||
|
||||
@@ -16,17 +16,19 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-Chameleon
|
||||
Version: 3.10.2
|
||||
Version: 4.2.0
|
||||
Release: 0
|
||||
Summary: Fast HTML/XML Template Compiler
|
||||
License: BSD-3-Clause AND BSD-4-Clause AND Python-2.0 AND ZPL-2.1
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/malthe/chameleon
|
||||
Source: https://github.com/malthe/chameleon/archive/%{version}.tar.gz#/Chameleon-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel >= 3.8}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-setuptools
|
||||
@@ -44,10 +46,10 @@ version of Python (2.5 and up, including 3.x and pypy).
|
||||
%setup -q -n chameleon-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
# Don't ship testsuite
|
||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/chameleon/tests
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
Reference in New Issue
Block a user