ANNOUNCE.rst (cheetah3-3.2.0) | : | ANNOUNCE.rst (cheetah3-3.2.1) | ||
---|---|---|---|---|
Hello! | Hello! | |||
I'm pleased to announce version 3.2.0, the first stable release of branch | I'm pleased to announce version 3.2.1, the first bugfix release of branch | |||
3.2 of CheetahTemplate3. | 3.2 of CheetahTemplate3. | |||
What's new in CheetahTemplate3 | What's new in CheetahTemplate3 | |||
============================== | ============================== | |||
Features: | Contributor for this release is Nicola Soranzo. | |||
- Dropped support for Python 3.3. | ||||
- Implement LoadTemplate.loadTemplate{Module,Class} to load templates | ||||
from .py[co], .py or .tmpl. | ||||
- CheetahDirOwner caches compiled template in the template directory. | ||||
- CheetahDirOwner now silently ignores errors on compiled templates | ||||
writing. To get tracebacks set CheetahDirOwner.debuglevel = 1. | ||||
- CheetahDirOwner and DirOwner byte-compile compiled templates | ||||
to .pyc/.pyo. Errors on writing are silently ignored. | ||||
Minor features: | Minor features: | |||
- Implement Compiler.__unicode__ under Python 2 and Compiler.__bytes__ | - Changed LoadTemplate.loadTemplate{Module,Class}: | |||
under Python 3. | the loaded module's __name__ set to just the file name. | |||
- Use imp for Python 2, importlib for Python 3. | ||||
Bug fixes: | Bug fixes: | |||
- Fix a bug in Compiler.__str__: under Python 2 the method now always | - Fix a bug in LoadTemplate.loadTemplate{Module,Class}: | |||
returns str; it encodes unicode to str using encoding from the | raise ImportError if the template was not found. | |||
compiled source. Under Python 3 the method decodes bytes to str. | ||||
Code: | ||||
- Source code was made flake8-clean using the latest flake8. | ||||
Documentation: | ||||
- Remove outdated section markers. | ||||
- Better documentation for ImportHooks. | ||||
- Add an example of a universal makefile. | ||||
CI: | CI: | |||
- Run tests with Python 3.7. | - At Travis deploy wheels for macOS. | |||
- At travis deploy sdists and wheels for tags. | - At AppVeyor deploy wheels directly to PyPI. | |||
What is CheetahTemplate3 | What is CheetahTemplate3 | |||
======================== | ======================== | |||
Cheetah3 is a free and open source template engine. | Cheetah3 is a free and open source template engine. | |||
It's a fork of the original CheetahTemplate library. | It's a fork of the original CheetahTemplate library. | |||
Python 2.7 or 3.4+ is required. | Python 2.7 or 3.4+ is required. | |||
Where is CheetahTemplate3 | Where is CheetahTemplate3 | |||
========================= | ========================= | |||
Site: | Site: | |||
https://cheetahtemplate.org/ | http://cheetahtemplate.org/ | |||
Development: | Development: | |||
https://github.com/CheetahTemplate3 | https://github.com/CheetahTemplate3 | |||
Download: | Download: | |||
https://pypi.org/project/Cheetah3/3.2.0/ | https://pypi.org/project/Cheetah3/3.2.1/ | |||
News and changes: | News and changes: | |||
https://cheetahtemplate.org/news.html | http://cheetahtemplate.org/news.html | |||
StackOverflow: | StackOverflow: | |||
https://stackoverflow.com/questions/tagged/cheetah | https://stackoverflow.com/questions/tagged/cheetah | |||
Example | Example | |||
======= | ======= | |||
End of changes. 6 change blocks. | ||||
29 lines changed or deleted | 10 lines changed or added |