24f758c0db
- update to 1.3.10: * Fix undefined variable errors when strict_undefined=True when using a nested list comprehension.
Dirk Mueller2025-04-14 20:21:42 +00:00
088ecdfaa4
Accepting request 1244766 from devel:languages:python
Ana Guerrero2025-02-11 20:20:38 +00:00
baaf2e48c5
- Update to 1.3.9 * [bug] [tests] Fixed test suite to not rely upon ancient "future division" statement to test the Template.future_imports feature. The test is replaced with one that tests only the rendering, not the ultimate effect.
Dirk Mueller2025-02-10 13:46:57 +00:00
0edeca3965
Accepting request 1230045 from devel:languages:python
Ana Guerrero2024-12-13 21:31:05 +00:00
fd09a6b71d
Accepting request 1230021 from home:glaubitz:branches:devel:languages:python
Markéta Machová2024-12-11 09:54:51 +00:00
cdf8b2b567
Accepting request 1221950 from devel:languages:python
Ana Guerrero2024-11-07 15:25:56 +00:00
6c4f869bee
- Update to 1.3.6 * Fixed long standing bug where the sequence <& would be misinterpreted by the lexer. It's not clear why the ampersand character was part of the characters being consumed here and it may have been an inadvertent bit of code from one of Mako's predecessor languages. - Adjust upstream source name in spec file
Markéta Machová2024-11-06 20:19:11 +00:00
de9cec6f3b
Accepting request 1178620 from devel:languages:python
Ana Guerrero2024-06-06 10:31:42 +00:00
054ddfc4f6
- update to 1.3.5: * Reverted the fix for 🎫400 as it caused new issues when traversing some bracketed situations.
Dirk Mueller2024-06-04 21:04:20 +00:00
d6ec61e2d5
Accepting request 1173914 from devel:languages:python
Ana Guerrero2024-05-15 19:25:55 +00:00
e9e4cc85f4
- update to 1.3.4: * Fixed regression caused by the fix for 🎫320 where new logic added to interpret list and dictionary comprehensions would fail for expression oriented keys. As the parsing in question was not necessary for these keys, it's been removed. * Fixed issue where a parsed expression which contained sub-brackets, such as dictionary literals, would fail to be interpreted correctly even though the initial parsing is correct.
Dirk Mueller2024-05-14 08:15:58 +00:00
fecb95569a
Accepting request 1167721 from devel:languages:python
Ana Guerrero2024-04-16 18:02:58 +00:00
311d04e39e
- update to 1.3.3: * Fixed unexpected error when use control lines which the first control block with no bodies other than comments, as pass is now added to the first empty block. * Fixed unexpected syntax error in strict_undefined mode that occurred when using comprehensions within a function in a Mako Python code block. Now, the local variable in comprehensions won't be added to the checklist when using strict_undefined mode.
Dirk Mueller2024-04-15 06:15:36 +00:00
2b337fa0ef
Accepting request 1143278 from devel:languages:python
Ana Guerrero2024-02-01 17:04:20 +00:00
4b320e09c8
- update to 1.3.2: * Fixed parsing issue where attempting to render a single percent sign % using an escaped percent %% would not function correctly if the escaped percent were not the first character on a line. Note that this is a revised version of a similar change made in Mako 1.3.1 which caused unexpected parsing regressions, resulting in the release being yanked.
Dirk Mueller2024-02-01 10:10:20 +00:00
d4e77af8c3
Accepting request 1140408 from devel:languages:python
Ana Guerrero2024-01-22 19:30:48 +00:00
84a185b9bc
Accepting request 1140393 from home:alarrosa:branches:devel:languages:python
Antonio Larrosa2024-01-22 09:15:01 +00:00
dbf4b640fa
- update to 1.3.0: * Mako 1.3.0 bumps the minimum Python version to 3.8 * Python 3.12 is now supported explicitly. - Update to 1.2.4 correctly interpret quoted sections individually * Fixed some issues with running the test suite which would be revealed by running tests in random order. - Use libalternatives instead of update-alternatives. emit warnings under Python 3.10. * The default template encoding is now utf-8 - update to 1.0.8 - fix up build for SLE11 - python3 package added - Added new "loop" variable to templates, is provided within a % for block to provide info about the loop such as index, first/last, odd/even, etc. A migration path is also provided for legacy templates via the "enable_loop" argument available on Template, TemplateLookup, and <%page>. - Added a real check for "reserved" names, that is names which are never pulled from the context and cannot be passed to the - The html_error_template() will now apply Pygments highlighting to the source code displayed in the traceback, if Pygments if - Added support for context managers, - Added class-level flag to CacheImpl "pass_context"; when True, the keyword argument 'context' will be passed to - Template caching has been converted into a plugin system, whereby the usage of Beaker is just the default plugin. Template and TemplateLookup now accept a string "cache_impl" parameter which refers to the name of a cache plugin, defaulting to the name 'beaker'. New plugins can be registered
Dirk Mueller2023-12-07 22:10:19 +00:00
73f1d271d0
- update to 1.2.3: * Fixed issue in lexer in the same category as that of 🎫366 where the regexp used to match an end tag didn't correctly organize for matching characters surrounded by whitespace, leading to high memory / interpreter hang if a closing tag incorrectly had a large amount of unterminated space in it. Credit to Sebastian Chnelik for locating the issue. * As Mako templates inherently render and directly invoke arbitrary Python code from the template source, it is **never** appropriate to create templates that contain untrusted input.
Dirk Mueller2022-09-29 19:46:09 +00:00
163cd770fc
- update to 1.2.2: * Fixed issue in lexer where the regexp used to match tags would not correctly interpret quoted sections individually
Dirk Mueller2022-09-11 07:33:49 +00:00
21086b203f
- Update to 1.2.1: * [bug] [tests] Various fixes to the test suite in the area of exception message rendering to accommodate for variability in Python versions as well as Pygments. * [performance] Optimized some codepaths within the lexer/Python code generation process, improving performance for generation of templates prior to their being cached. Pull request courtesy Takuto Ikuta. * [changed] [py3k] Corrected "universal wheel" directive in setup.cfg so that building a wheel does not target Python 2. * [changed] [py3k] The bytestring_passthrough template argument is removed, as this flag only applied to Python 2. * [changed] [py3k] With the removal of Python 2's cStringIO, Mako now uses its own internal FastEncodingBuffer exclusively. * [changed] Refactored test utilities into mako.testing module. Removed unittest.TestCase dependency in favor of pytest. * [changed] [setup] Replaced the use of pkg_resources with the importlib library. For Python < 3.8 the library importlib_metadata is used. * [changed] [py3k] Removed support for Python 2 and Python 3.6. Mako now requires Python >= 3.7. * [bug] [py3k] Mako now performs exception chaining using raise from, correctly identifying underlying exception conditions when it raises its own exceptions. Pull request courtesy Ram Rachum. - Remove python2 gubbins, since it is no longer supported.
Steve Kowalik2022-07-18 09:46:10 +00:00
cffe7fe08b
- update to 1.1.6: * Fixed issue where control statements on multi lines with a backslash would not parse correctly if the template itself contained CR/LF pairs as on Windows.
Dirk Mueller2021-12-06 09:48:49 +00:00
5fbabe49da
- update to 1.1.5: * Fixed some issues with running the test suite which would be revealed by running tests in random order.
Dirk Mueller2021-10-16 19:03:21 +00:00
af3e197bbb
- update to 1.1.4: * Fixed Python deprecation issues related to module importing, as well as file access within the Lingua plugin, for deprecated APIs that began to emit warnings under Python 3.10.
Dirk Mueller2021-01-24 19:49:39 +00:00
308d471bb2
- update to 1.1.1 * Replaced usage of the long-superseded “parser.suite” module in the mako.util package for parsing the python magic encoding comment with the “ast.parse” function * Added “babel” and “lingua” dependency entries to the setuptools entrypoints for the babel and lingua extensions
Ondřej Súkup2020-02-18 17:03:10 +00:00
5997fdf354
- Update to 1.0.12: * Fixed regression where import refactors in Mako 1.0.11 caused broken imports on Python 3.8. * Updated for additional project metadata in setup.py. Additionally, the code has been reformatted using Black and zimports.
Tomáš Chvátal
2019-06-18 08:41:48 +00:00