Skip to content

Commit

Permalink
Release 3.4.0b1
Browse files Browse the repository at this point in the history
  • Loading branch information
phdru committed Nov 14, 2024
1 parent e19718a commit 2ce8ade
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 9 deletions.
42 changes: 38 additions & 4 deletions ANNOUNCE.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,47 @@
Hello!

I'm pleased to announce version 3.3.4a4, an alpha release
of release 3.3.4 of branch 3.3 of CheetahTemplate3.
I'm pleased to announce version 3.4.0b1, the first beta
of release 3.4.0 of branch 3.4 of CheetahTemplate3.


What's new in CheetahTemplate3
==============================

The contributors for this release are ...
Bug fixes:

- Fixed ``ImportHooks``: it must raise ``ModuleNotFoundError``
instead of ``ImportError``.

- Fixed absolute import in ``ImportHooks`` under Python 3.

- Fixed ``Template.webInput``: Use ``urllib.parse.parse_qs``
instead of ``cgi.FieldStorage``; Python 3.13 dropped ``cgi``.

- Fixed ``_namemapper.c``: Silent an inadvertent ``TypeError`` exception
in ``PyMapping_HasKeyString`` under Python 3.13+
caused by ``_namemapper`` looking up a key in a non-dictionary.

- Fixed ``_namemapper.c``: Silence ``IndexError`` when testing
``name[attr]``. Some objects like ``re.MatchObject`` implement both
attribute access and index access. This confuses ``NameMapper`` because
it expects ``name[attr]`` to raise ``TypeError`` for objects that don't
implement mapping protocol.

- Fixed mapping test in ``NameMapper.py``:
Python 3.13 brough a new mapping type ``FrameLocalsProxy``.

- Fixed another ``RecursionError`` in ``ImportHooks`` under PyPy3.

Tests:

- tox: Run tests under Python 3.13.

CI:

- CI(GHActions): Switch to ``setup-miniconda``.

- CI(GHActions): Run tests under Python 3.13.



What is CheetahTemplate3
Expand All @@ -26,7 +60,7 @@ Site:
https://cheetahtemplate.org/

Download:
https://pypi.org/project/CT3/3.3.4a4
https://pypi.org/project/CT3/3.4.0b1

News and changes:
https://cheetahtemplate.org/news.html
Expand Down
4 changes: 2 additions & 2 deletions Cheetah/Version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python

Version = '3.3.4a4'
VersionTuple = (3, 3, 4, 'alpha', 4)
Version = '3.4.0b1'
VersionTuple = (3, 4, 0, 'beta', 1)

MinCompatibleVersion = '3.0.0a1'
MinCompatibleVersionTuple = (3, 0, 0, 'alpha', 1)
Expand Down
34 changes: 34 additions & 0 deletions LATEST-CHANGES.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Bug fixes:

- Fixed ``ImportHooks``: it must raise ``ModuleNotFoundError``
instead of ``ImportError``.

- Fixed absolute import in ``ImportHooks`` under Python 3.

- Fixed ``Template.webInput``: Use ``urllib.parse.parse_qs``
instead of ``cgi.FieldStorage``; Python 3.13 dropped ``cgi``.

- Fixed ``_namemapper.c``: Silent an inadvertent ``TypeError`` exception
in ``PyMapping_HasKeyString`` under Python 3.13+
caused by ``_namemapper`` looking up a key in a non-dictionary.

- Fixed ``_namemapper.c``: Silence ``IndexError`` when testing
``name[attr]``. Some objects like ``re.MatchObject`` implement both
attribute access and index access. This confuses ``NameMapper`` because
it expects ``name[attr]`` to raise ``TypeError`` for objects that don't
implement mapping protocol.

- Fixed mapping test in ``NameMapper.py``:
Python 3.13 brough a new mapping type ``FrameLocalsProxy``.

- Fixed another ``RecursionError`` in ``ImportHooks`` under PyPy3.

Tests:

- tox: Run tests under Python 3.13.

CI:

- CI(GHActions): Switch to ``setup-miniconda``.

- CI(GHActions): Run tests under Python 3.13.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Cheetah Template 3.3.4a4
Cheetah Template 3.4.0b1
========================

Cheetah3 is a free and open source (MIT) Python template engine.
Expand Down
2 changes: 1 addition & 1 deletion SetupConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
'Cheetah.Utils',
]
classifiers = [line.strip() for line in '''\
Development Status :: 2 - Alpha
Development Status :: 4 - Beta
Intended Audience :: Developers
Intended Audience :: System Administrators
License :: OSI Approved :: MIT License
Expand Down
2 changes: 1 addition & 1 deletion docs/news.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
News
====

Development (master)
3.4.0b1 (2024-11-10)
--------------------

Bug fixes:
Expand Down

0 comments on commit 2ce8ade

Please sign in to comment.