122 Commits

Author SHA256 Message Date
4304d39379 Accepting request 1282928 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1282928
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=61
2025-06-10 06:57:05 +00:00
941a66b8ee - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=119
2025-06-05 04:41:19 +00:00
f0044ca305 Accepting request 1269360 from devel:languages:python
- update to 1.3.10:
  * Fix undefined variable errors when strict_undefined=True when
    using a nested list comprehension.

OBS-URL: https://build.opensuse.org/request/show/1269360
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=60
2025-04-15 18:46:50 +00:00
fcbb1465cb - update to 1.3.10:
* Fix undefined variable errors when strict_undefined=True when
    using a nested list comprehension.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=117
2025-04-14 20:21:42 +00:00
4399aa9e7c Accepting request 1244766 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1244766
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=59
2025-02-11 20:20:38 +00:00
e96fba51d4 Accepting request 1244709 from home:glaubitz:branches:devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1244709
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=115
2025-02-10 13:46:57 +00:00
72ecd7c424 Accepting request 1230045 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1230045
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=58
2024-12-13 21:31:05 +00:00
2693786e26 Accepting request 1230021 from home:glaubitz:branches:devel:languages:python
- Update to 1.3.8
  * Reverted the fix for 🎫`140` released in Mako 1.3.7 as it produced
    regressions in existing user code.
- from version 1.3.7
  * During the lexical analysis phase, add an additional prefix for undeclared
    identifiers that have the same name as built-in flags, and determine the
    final filter to be used during the code generation phase based on the
    context provided by the user. Pull request by Hai Zhu.
  * Support the direct passing of dictionary literals when calling functions
    and fix the errors caused by nested braces.   This revises the fix that was
    released in 1.3.4 and then reverted in 1.3.5. Pull request by Hai Zhu and
    Jose Galvez.

OBS-URL: https://build.opensuse.org/request/show/1230021
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=113
2024-12-11 09:54:51 +00:00
00f0465840 Accepting request 1221950 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1221950
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=57
2024-11-07 15:25:56 +00:00
60a4ed6f00 Accepting request 1221806 from home:glaubitz:branches:devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1221806
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=111
2024-11-06 20:19:11 +00:00
99f75704fa Accepting request 1178620 from devel:languages:python
- update to 1.3.5:
  * Reverted the fix for 🎫`400` as it caused new issues
    when traversing some bracketed situations.

OBS-URL: https://build.opensuse.org/request/show/1178620
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=56
2024-06-06 10:31:42 +00:00
ac8680cf6e - update to 1.3.5:
* Reverted the fix for 🎫`400` as it caused new issues
    when traversing some bracketed situations.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=109
2024-06-04 21:04:20 +00:00
de14fdc080 Accepting request 1173914 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1173914
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=55
2024-05-15 19:25:55 +00:00
6c5993e89a - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=107
2024-05-14 08:15:58 +00:00
d8fb67fc14 Accepting request 1167721 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1167721
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=54
2024-04-16 18:02:58 +00:00
e3a44b154d - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=105
2024-04-15 06:15:36 +00:00
0ad3ccf087 Accepting request 1143278 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1143278
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=53
2024-02-01 17:04:20 +00:00
df3f6dbd40 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=103
2024-02-01 10:10:20 +00:00
bbe722e54e Accepting request 1140408 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1140408
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=52
2024-01-22 19:30:48 +00:00
b47e6ca10a Accepting request 1140393 from home:alarrosa:branches:devel:languages:python
Add bug/CVE references

    correctly interpret quoted sections individually (CVE-2022-40023,
    bsc#1203246)

OBS-URL: https://build.opensuse.org/request/show/1140393
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=101
2024-01-22 09:15:01 +00:00
3616ff61f1 Accepting request 1131715 from devel:languages:python
- 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,

OBS-URL: https://build.opensuse.org/request/show/1131715
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=51
2023-12-09 21:49:01 +00:00
320c09ec0a - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=99
2023-12-07 22:10:19 +00:00
f88c78aa36 Accepting request 1093359 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1093359
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=50
2023-06-17 20:20:11 +00:00
320aa99ac4 Accepting request 1093293 from devel:languages:python:mailman:backports
- Use sle15_python_module_pythons

OBS-URL: https://build.opensuse.org/request/show/1093293
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=97
2023-06-15 20:03:02 +00:00
b01596e9e2 Accepting request 1039736 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1039736
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=49
2022-12-04 13:57:42 +00:00
e96bf55205 Accepting request 1039707 from home:yarunachalam:branches:devel:languages:python
- Update to 1.2.4 
  [bug] [codegen] Fixed issue where unpacking nested tuples in a for loop using would raise a
  "couldn't apply loop context" error if the loop context was used. The regex
  used to match the for loop expression now allows the list of loop variables
  to contain parenthesized sub-tuples. Pull request courtesy Matt Trescott.

OBS-URL: https://build.opensuse.org/request/show/1039707
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=95
2022-12-03 07:22:40 +00:00
84dc1d7e52 Accepting request 1007102 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1007102
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=48
2022-10-03 11:44:18 +00:00
5f31466083 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=93
2022-09-29 19:46:09 +00:00
a2bef76421 Accepting request 1002487 from devel:languages:python
- update to 1.2.2:
  * Fixed issue in lexer where the regexp used to match tags would not
    correctly interpret quoted sections individually

OBS-URL: https://build.opensuse.org/request/show/1002487
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=47
2022-09-15 20:57:23 +00:00
84d477d684 - update to 1.2.2:
* Fixed issue in lexer where the regexp used to match tags would not
    correctly interpret quoted sections individually

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=91
2022-09-11 07:33:49 +00:00
3afb79a15e Accepting request 989969 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/989969
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=46
2022-08-04 11:23:10 +00:00
9344569ebc Fix typo for BuildRequires
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=89
2022-07-18 13:40:00 +00:00
74e9d5fac3 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=88
2022-07-18 09:46:10 +00:00
d2f120fa97 Accepting request 964655 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/964655
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=45
2022-03-28 14:58:38 +00:00
e25eefd148 Accepting request 964538 from home:pgajdos:python
- python-mock is not required for build

OBS-URL: https://build.opensuse.org/request/show/964538
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=86
2022-03-24 12:32:12 +00:00
a859c38f83 Accepting request 936087 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/936087
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=44
2021-12-09 18:45:15 +00:00
f3ab4ed135 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=85
2021-12-06 09:48:49 +00:00
34734ad47f Accepting request 927135 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/927135
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=43
2021-10-25 13:17:07 +00:00
2a04a7afa1 - update to 1.1.5:
* Fixed some issues with running the test suite which would 
    be revealed by running tests in random order.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=84
2021-10-16 19:03:21 +00:00
2e2217de30 Fix changes
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=83
2021-10-06 07:34:36 +00:00
f318f09d08 Remove obsolete suse_version if
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=82
2021-10-06 07:34:07 +00:00
805409fbd7 Accepting request 923269 from home:schubi2
- Added BuildRequires:  alts

OBS-URL: https://build.opensuse.org/request/show/923269
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=81
2021-10-06 07:33:09 +00:00
75fad189bc Accepting request 922596 from home:schubi2
- Use libalternatives instead of update-alternatives.

OBS-URL: https://build.opensuse.org/request/show/922596
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=80
2021-10-03 20:08:50 +00:00
298439cc88 Accepting request 920174 from devel:languages:python
revert

OBS-URL: https://build.opensuse.org/request/show/920174
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=79
2021-09-19 17:35:40 +00:00
2fd910b01d Accepting request 919795 from home:schubi2
- Use libalternatives instead of update-alternatives.

OBS-URL: https://build.opensuse.org/request/show/919795
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=78
2021-09-17 20:48:49 +00:00
71953394c5 Accepting request 866414 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/866414
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=42
2021-02-01 12:26:41 +00:00
fe36e56734 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=76
2021-01-24 19:49:39 +00:00
de0f8d4c2e Accepting request 855358 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/855358
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=41
2020-12-16 09:59:17 +00:00
21e5e22ce4 Accepting request 855003 from home:bnavigator:branches:devel:languages:python
- Let the python-rpm-macros do their job for the correct provides
  and obsoletes tags for multiple python3 flavors
  gh#openSUSE/python-rpm-macros#66

OBS-URL: https://build.opensuse.org/request/show/855003
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=74
2020-12-12 12:16:59 +00:00
a6209e82b1 Accepting request 812490 from devel:languages:python
- update to 1.1.3
 * The default template encoding is now utf-8

OBS-URL: https://build.opensuse.org/request/show/812490
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mako?expand=0&rev=40
2020-06-09 22:34:23 +00:00