Revisions of python-Chameleon

Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1169357 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 19)
- update to 4.5.4:
  * Fix an issue where $-sign interpolation escaping would not
    work correctly when more than two such symbols appeared next
    to each other.
  * Minor optimization when rendering translations with a static
    message id (don't need to test if it's non-empty).
  * Fix a bug where a macro could not be used correctly to render
    a translation name.
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1158870 from Steve Kowalik's avatar Steve Kowalik (StevenK) (revision 18)
- Add missing {Build,}Requires on importlib-metadata.
- Drop unneeded Requires on setuptools.
- No more greedy globs in %files.
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1142764 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 17)
- update to 4.5.2:
  * Fix a regression where a static symbol would not get
    correctly imported.
  * Add Python 3.13 classifier.
  * Fix a regression where default_extension was no longer permitted
  * Chameleon now has type annotations!
  * Fix a regression where generated template code would
    suboptimal due to incorrect handling of internal variables.
  * Always cook templates in debug mode, even when using
    CHAMELEON_CACHE option to persist generated code on disk.
  * Parsing the AST back to Python code now uses the built-in
    ast.unparse function. This change is not directly surfaced
    but means that the unparsing code is now more correctly
    tracking changes to the interpreter.
  * Drop support for platforms where AST nodes aren't weakref-
    capable (e.g., older PyPy).
  * Fix a PyPy compatibility issue having to do with determining
    the set
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1139516 from Factory Maintainer's avatar Factory Maintainer (factory-maintainer) (revision 16)
Automatic submission by obs-autosubmit
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1114697 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 15)
- 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
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1055881 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 14)
- update to 3.10.2:
  * Fix handling of eager compilation with subclassing (e.g. Pyramid
    integration).
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 819491 from Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) (revision 11)
- Update to 3.8.1
 * Added code optimization to reduce sequential appends of static text.
 * The default symbol in dynamic attributes is now symbolic.
 * The built-in attrs dictionary of static element attributes now correctly
    works with tal:define, etc.
 * Fix slice code generation compatibility issue on Python 3.9.
 * Expose default marker as importable symbol chameleon.tales.DEFAULT_MARKER.
 * Removed legacy flag literal_false. To get a similar behavior, use boolean_attributes.
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 812491 from Ondřej Súkup's avatar Ondřej Súkup (mimi_vx) (revision 10)
- Update to 3.7.2
 * Fix compatiblity issue with Python 3.9.
 * Allow setting a custom value representation function
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 717492 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 8)
- Update to 3.6.2:
  * Fix SyntaxWarnings in Python 3.8 resulting from comparing literals with 'is'
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 690341 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 7)
- Update to 3.6.1:
  * Fix limited search expression for illegal double hyphens in HTML comments to fix issue #289.
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 682406 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 6)
- Fix macro expansion

- Update to version 3.6:
  * Exclude RuntimeError (or RecursionError when available) from exception wrapping.
  * Fix double dollar '$$' escaping such that a double dollar is always resolved, either as an interpolation expression, or as an escape where it is substituted by a single dollar symbol. This is now consistent with Zope's handling of this character.
  * Drop support for Python 3.3.
  * Add support for Python 3.8.
  * Add support for TAL attributes in an XML declaration tag. This fixes issue #269.
  * Add support for custom exception handling for the tal:on-error statement. There is now an option on_error_handler available as a template configuration (issue #266).
  * Fix issue where double '$$' escaping would affect non-interpolation expressions such as the bare '$$' (issue #265).
  * Fix an issue where backslash dollar escaping would leave the backslash character still in place.
  * Fix regression with translations in case of multiple nodes.
  * Reset error token when rendering internal macro calls.
  * Fix edge case in exception handler causing recursion. [MatthewWilkes]
  * Add the automatic variable macroname that's bound to the name of the executing macro. Fixes https://github.com/malthe/chameleon/issues/238
  * A tokenizer can now be configured on the template class. This is useful in the case where the template file input is modified before parsing (for example, where some tags are stripped away) such that token positions need to be offset accordingly for error locations to be rendered correctly.
  * Expression errors now display source marker (previously only filename, line and column was shown).
  * No longer require Python source files to import modules. [mrh1997]

- Drop the doc subpackage, not really needed
- Format with spec-cleaner and reduce some of the conditionals
- Update url
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 659257 from Matej Cepl's avatar Matej Cepl (mcepl) (revision 5)
- Remove superfluous devel dependency for noarch package
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 526902 from Hans-Peter Jansen's avatar Hans-Peter Jansen (frispete) (revision 4)
- Packaging : 
  + Move to singlespec
  + Spec-cleanup
  + Split documentation to speedup rebuild
 
- Update to version 3.1 (forwarded request 526690 from bruno_friedmann)
Adrian Schröter's avatar Adrian Schröter (adrianSuSE) committed (revision 2)
Split 13.2 from Factory
Stephan Kulow's avatar Stephan Kulow (coolo) accepted request 210353 from Denisart Benjamin's avatar Denisart Benjamin (posophe) (revision 1)
Chameleon is an HTML/XML template engine for Python. It uses the *page templates* language.

New dependency of python-Pyramid
Displaying all 19 revisions
openSUSE Build Service is sponsored by