Debian Codegraph @

docs/news.rst

raw
1 News
2 ====
3
4 3.4.0 (2024-12-02)
5 ------------------
6
7 Bug fixes:
8
9 - Fixed ``ImportHooks``: it must raise ``ModuleNotFoundError``
10 instead of ``ImportError``.
11
12 - Fixed absolute import in ``ImportHooks`` under Python 3.
13
14 - Use ``cache_from_source`` in ``ImportManager`` to find out
15 ``.pyc``/``.pyo`` byte-code files.
16
17 - Fixed unmarshalling ``.pyc``/``.pyo`` byte-code files
18 in ``ImportManager``.
19
20 - Fixed ``Template.webInput``: Use ``urllib.parse.parse_qs``
21 instead of ``cgi.FieldStorage``; Python 3.13 dropped ``cgi``.
22
23 - Fixed ``_namemapper.c``: Silent an inadvertent ``TypeError`` exception
24 in ``PyMapping_HasKeyString`` under Python 3.13+
25 caused by ``_namemapper`` looking up a key in a non-dictionary.
26
27 - Fixed ``_namemapper.c``: Silence ``IndexError`` when testing
28 ``name[attr]``. Some objects like ``re.MatchObject`` implement both
29 attribute access and index access. This confuses ``NameMapper`` because
30 it expects ``name[attr]`` to raise ``TypeError`` for objects that don't
31 implement mapping protocol.
32
33 - Fixed mapping test in ``NameMapper.py``:
34 Python 3.13 brough a new mapping type ``FrameLocalsProxy``.
35
36 - Fixed another ``RecursionError`` in ``ImportHooks`` under PyPy3.
37
38 Tests:
39
40 - tox: Run tests under Python 3.13.
41
42 CI:
43
44 - CI(GHActions): Switch to ``setup-miniconda``.
45
46 - CI(GHActions): Run tests under Python 3.13.
47
48 Build/release:
49
50 - Rename sdist to lowercase; different build tools produce different case.
51 This is important because stupid PyPI doesn't ignore sdists
52 in different cases but also doesn't allow uploading.
53 So we use single case, all lower. Also see PEP 625.
54
55 3.3.3.post1 (2024-02-28)
56 ------------------------
57
58 CI:
59
60 - GHActions: Build and publish wheels on Linux/aarch64.
61
62 3.3.3 (2023-10-22)
63 ------------------
64
65 Minor features:
66
67 - Protect ``import cgi`` in preparation to Python 3.13.
68
69 Tests:
70
71 - Run tests with Python 3.12.
72
73 CI:
74
75 - GHActions: Ensure ``pip`` only if needed
76
77 This is to work around a problem in conda with Python 3.7 -
78 it brings in wrong version of ``setuptools`` incompatible with Python 3.7.
79
80 3.3.2 (2023-08-08)
81 ------------------
82
83 Bug fixes:
84
85 - Fixed printing to stdout in ``CheetahWrapper``.
86
87 CI:
88
89 - CI(GHActions): Install all Python and PyPy versions from ``conda-forge``.
90
91 3.3.1 (2022-12-25)
92 ------------------
93
94 Bug fixes:
95
96 - Fixed ``ImportHooks`` under PyPy3.
97
98 Tests:
99
100 - Run tests with PyPy3.
101
102 CI:
103
104 - Use ``conda`` to install older Pythons
105
106 Ubuntu >= 22 and ``setup-python`` dropped Pythons < 3.7.
107 Use ``s-weigand/setup-conda`` instead of ``setup-python``.
108
109 3.3.0.post1 (2022-11-26)
110 ------------------------
111
112 Tests:
113
114 - Run tests with Python 3.11.
115
116 - Fix DeprecationWarning: ``unittest.findTestCases()`` is deprecated. Use
117 ``unittest.TestLoader.loadTestsFromModule()`` instead.
118
119 CI:
120
121 - Publish wheels at Github Releases.
122
123 3.3.0 (2022-10-10)
124 ------------------
125
126 Great move:
127
128 - PyPI has wrongfully classified project ``Cheetah3`` as "critical".
129 This puts a burden to use 2FA to manage the project at PyPI. To
130 avoid the burden the project is renamed to ``CT3`` at PyPI.
131 There will be no updates for ``Cheetah3``.
132 Sorry for the inconvenience!
133
134 Minor features:
135
136 - Use relative imports everywhere.
137
138 Tests:
139
140 - Run pure-python ``NameMapper`` tests in a separate process.
141
142 - Fixed a bug in tests with pure-python ``NameMapper``.
143
144 - Add Python 3.10 to ``tox.ini``.
145
146 CI:
147
148 - Migrated to GitHub Actions.
149
150 Due to the absent of Python 3.4 at GH Actions tests are not run and
151 wheels are not built. Installation from sources should work.
152
153 Due to GH Actions lacking old compilers for w32/w64 releases for old
154 Python versions (currently 2.7) are packaged without compiled
155 _namemapper.pyd extension. Cheetah can be used without compiled
156 _namemapper.pyd extension. A pure-python replacement should work;
157 ``Cheetah`` imports it automatically if the compiled extension is
158 not available.
159
160 - Stop testing at Travis CI.
161
162 - Stop testing at AppVeyor.
163
164 3.2.7b1 (2021-07-25)
165 --------------------
166
167 Minor features:
168
169 - Load from JSON file to searchlist (similar to loading from pickle).
170
171 Bug fixes:
172
173 - Fix ``filetype`` for Python 2 in ``Template``.
174
175 Build, CI:
176
177 - Build wheels for ``aarch64`` at Travis; publish them at PyPI.
178
179 Tests:
180
181 - ``tox.ini``: Limit ``VIRTUALENV_PIP`` version for Python 3.4.
182
183 3.2.6.post1 (2021-02-22)
184 ------------------------
185
186 Tests:
187
188 - Add Python 3.9 to ``tox.ini``.
189
190 - Refactor ``tox.ini``.
191
192 CI:
193
194 - Run tests with Python 3.9 at Travis and AppVeyor.
195
196 - Run tests for Python 3.4 with ``tox`` under Python 3.5.
197
198 3.2.6 (2020-10-01)
199 ------------------
200
201 Bug fixes:
202
203 - Fixed use of uninitialized variable in _namemapper.
204
205 3.2.5 (2020-05-16)
206 ------------------
207
208 Build:
209
210 - Install ``Cheetah3`` + ``markdown`` (used in ``Cheetah.Filters``)
211 using ``pip install cheetah3[filters]`` (or ``cheetah3[markdown]``).
212
213 CI:
214
215 - Run tests with Python 3.8 at Travis CI.
216
217 3.2.4 (2019-10-22)
218 ------------------
219
220 Minor features:
221
222 - Import from ``collections`` for Python 2,
223 from ``collections.abc`` for Python 3.
224
225 Bug fixes:
226
227 - Fixed infinite recursion in ``ImportManager`` on importing
228 module ``_bootlocale`` inside ``open()``.
229
230 3.2.3 (2019-05-10)
231 ------------------
232
233 Bug fixes:
234
235 - Fixed infinite recursion in ``ImportManager`` on importing
236 a builtin module.
237
238 Documentation:
239
240 - The site https://cheetahtemplate.org/ is now served with HTTPS.
241 - Updated docs regarding fixed tests.
242
243 Tests:
244
245 - Removed ``unittest.main()`` calls from tests:
246 ``python -m unittest discover -t Cheetah -s Cheetah/Tests -p '[A-Z]*.py'``
247 does it.
248 - Fixed ``cheetah test`` command.
249 - Fixed script ``buildandrun``: copy test templates
250 to the ``build/lib`` directory.
251
252 3.2.2 (2019-04-29)
253 ------------------
254
255 Minor features:
256
257 - Replaced outdated and insecure ``mktemp`` with ``mkstemp``.
258
259 Bug fixes:
260
261 - Fixed bugs in ``TemplateCmdLineIface.py``: read binary pickles
262 from stdin and files.
263
264 Tests:
265
266 - Use ``cgi.escape()`` for Python 2, ``html.escape()`` for Python 3.
267 - Created tests for ``TemplateCmdLineIface``.
268
269
270 3.2.1 (2019-03-19)
271 ------------------
272
273 Minor features:
274
275 - Changed ``LoadTemplate.loadTemplate{Module,Class}``:
276 the loaded module's ``__name__`` set to just the file name.
277 - Use ``imp`` for Python 2, ``importlib`` for Python 3.
278
279 Bug fixes:
280
281 - Fix a bug in ``LoadTemplate.loadTemplate{Module,Class}``:
282 raise ``ImportError`` if the template was not found.
283
284 CI:
285
286 - At Travis deploy wheels for macOS.
287 - At AppVeyor deploy wheels directly to PyPI.
288
289
290 3.2.0 (2019-02-06)
291 ------------------
292
293 Features:
294
295 - Dropped support for Python 3.3.
296 - Implement ``LoadTemplate.loadTemplate{Module,Class}``
297 to load templates from ``.py[co]``, ``.py`` or ``.tmpl``.
298 - ``CheetahDirOwner`` caches compiled template in the template directory.
299 - ``CheetahDirOwner`` now silently ignores errors on compiled templates
300 writing. To get tracebacks set ``CheetahDirOwner.debuglevel = 1``.
301 - ``CheetahDirOwner`` and ``DirOwner`` byte-compile compiled templates
302 to ``.pyc/.pyo``. Errors on writing are silently ignored.
303
304 Minor features:
305
306 - Implement ``Compiler.__unicode__`` under Python 2
307 and ``Compiler.__bytes__`` under Python 3.
308
309 Bug fixes:
310
311 - Fix a bug in ``Compiler.__str__``: under Python 2 the method
312 always returns str; it encodes unicode to str using encoding from the
313 compiled source. Under Python 3 the method decodes bytes to str.
314
315 Code:
316
317 - Source code was made flake8-clean using the latest flake8.
318
319 Documentation:
320
321 - Remove outdated section markers.
322 - Better documentation for ImportHooks.
323 - Add an example of a universal makefile.
324
325 CI:
326
327 - Run tests with Python 3.7.
328 - At Travis deploy sdists and wheels for tags.
329
330
331 3.1.0 (2018-03-03)
332 ------------------
333
334 Features:
335
336 - Fix Cheetah to work with PyPy. Pull request by Mathias Stearn.
337
338 Minor features:
339
340 - Code cleanup: fix code style to satisfy flake8 linter.
341
342 Documentation:
343
344 - Rename www directory to docs.
345
346 Tests:
347
348 - Run pypy tests at AppVeyor.
349 - Use remove-old-files.py from ppu to cleanup pip cache
350 at Travis and AppVeyor.
351
352
353 3.0.1 (2018-02-27)
354 ------------------
355
356 Bug fixes:
357
358 - Fix a minor bug in Compiler.
359
360
361 3.0.0 (2017-05-07)
362 ------------------
363
364 Major features:
365
366 - !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
367 - Stop supporting Python older than 2.7.
368 - Update code to work with Python 3.3+. Tested with 3.3, 3.4, 3.5 and 3.6.
369
370 Minor features:
371
372 - Use '/usr/bin/env python' for scripts;
373 this allows eggs/wheels to be installed into virtual environments.
374
375 Bug fixes:
376
377 - Fix a bug in multiple inheritance (#extend Parent1, Parent2).
378 Pull request by Jonathan Ross Rogers.
379 - Fix bugs in pure-python NameMapper.py. Bugs reported by Noah Ingham,
380 patches by Adam Karpierz, tests by Oleg Broytman.
381
382 Tests:
383
384 - Run tests at Travis (Linux) and AppVeyor (w32) with Python 2.7, 3.3, 3.4,
385 3.5 and 3.6; x86 and x64.
386 - Fix a problem in Unicode tests - cleanup temporary files.
387
388 `Older news`_
389
390 .. _`Older news`: news2.html