Chameleon

Latest version: v4.5.4

Safety actively analyzes 621907 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 19

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.
(`422 <https://github.com/malthe/chameleon/issues/422>`_)

4.5.3

------------------

- 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.
(`419 <https://github.com/malthe/chameleon/issues/419>`_)

4.5.2

------------------

- Fix a regression where a static symbol would not get correctly
imported.
(`414 <https://github.com/malthe/chameleon/issues/414>`_)

4.5.1

------------------

- Add Python 3.13 classifier.

- Fix a regression where `default_extension` was no longer permitted
as a positional argument to `PageTemplateLoader`.
(`411 <https://github.com/malthe/chameleon/issues/411>`_)

4.5.0

------------------

- Chameleon now has type annotations!

- The list of names previously disallowed for use as variables in
templates such as "int" and "float" has been trimmed significantly,
not because it's a good idea to use such names but because the list
of disallowed names was not exhaustive and complicated the compiler
code; and perhaps more importantly, the technical reason for
disallowing the names in the first place no longer applies.

- 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).

4.4.4

------------------

- Fix a PyPy compatibility issue having to do with determining the set
of versions when some packages (e.g. `cffi`) would not carry a
version.

Page 1 of 19

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.