SHA256
1
0
forked from pool/python-Mako

56 Commits

Author SHA256 Message Date
054ddfc4f6 - 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
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.

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
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.

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
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.

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
84a185b9bc 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
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

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
de0048b6ba 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
da67db86e4 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
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.

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
163cd770fc - 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
5013e7d64d 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
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.

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
237de06d25 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
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.

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
5fbabe49da - 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
2c11732028 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
b73a4b0ae7 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
67a6367a47 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
b73fe4f709 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
79b88cb710 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
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.

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
afdf4df8ea 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
9e2d26f8f8 - update to 1.1.3
* The default template encoding is now utf-8

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=72
2020-06-08 08:59:39 +00:00
Tomáš Chvátal
2be7671ae6 Accepting request 808638 from home:pgajdos:python
submit

OBS-URL: https://build.opensuse.org/request/show/808638
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=70
2020-05-25 09:23:10 +00:00
121517e7bb - update to 1.1.2
* Added –output-file argument to the Mako command line runner

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=68
2020-03-02 08:39:33 +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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=66
2020-02-18 17:03:10 +00:00
Tomáš Chvátal
f171012d61 Accepting request 721022 from home:pgajdos
- version update to 1.1.0
  * Removed the "python setup.py test" feature in favor
  * Replaced usage of ``inspect.getfullargspec()`` with the vendored version
    used by SQLAlchemy, Alembic to avoid future deprecation warnings.

OBS-URL: https://build.opensuse.org/request/show/721022
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=64
2019-08-05 18:06:18 +00:00
Tomáš Chvátal
ea29564d89 Accepting request 719500 from home:pgajdos
- version update to 1.0.14
  * The n filter is now supported in the <%page> tag. This allows a template to omit the default expression filters throughout a whole template, for those cases where a
    template-wide filter needs to have default filtering disabled.
  * Fixed issue where the correct file URI would not be shown in the template-formatted exception traceback if the template filename were not known. Additionally fixes an issue
    where stale filenames would be displayed if a stack trace alternated between different templates.
  * Improved the line-number tracking for source lines inside of Python <% ... %> blocks, such that text- and HTML-formatted exception traces such as that of
    html_error_template() now report the correct source line inside the block, rather than the first line of the block itself. Exceptions in <%! ... %> blocks which get raised
    while loading the module are still not reported correctly, as these are handled before the Mako code is generated.

OBS-URL: https://build.opensuse.org/request/show/719500
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=63
2019-07-29 08:41:32 +00:00
Tomáš Chvátal
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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=61
2019-06-18 08:41:48 +00:00
Tomáš Chvátal
ee44dd0c24 Accepting request 703500 from home:kwususe1:branches:devel:languages:python
- Update to 1.0.10:
  * Added default encoding for Python 3 for traceback.

OBS-URL: https://build.opensuse.org/request/show/703500
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=59
2019-05-16 17:44:21 +00:00
Tomáš Chvátal
df7e98f40b - Update to 1.0.9:
* Fixed an element in the AST Python generator which changed for Python 3.8

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=57
2019-04-29 08:02:31 +00:00
a8bd327273 - update to 1.0.8
* Added --output-encoding flag to the mako-render script

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=55
2019-03-21 13:41:34 +00:00
aa5107c238 Clean up SPEC file.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=53
2018-07-05 21:48:07 +00:00
Tomáš Chvátal
e63053c032 Accepting request 583642 from home:aplanas:branches:devel:languages:python
Allows Recommends and Suggest in Fedora

OBS-URL: https://build.opensuse.org/request/show/583642
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=51
2018-03-06 20:52:17 +00:00
Thomas Bechtold
90056b67c7 Accepting request 517981 from home:tbechtold:branches:devel:languages:python
- update to 1.0.7:
  * Changed the "print" in the mako-render command to
    sys.stdout.write(), avoiding the extra newline at the end
    of the template output.

OBS-URL: https://build.opensuse.org/request/show/517981
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=49
2017-08-21 17:00:28 +00:00
Todd R
6e77f1173e Accepting request 493118 from home:TheBlackCat:branches:devel:languages:python
Don't provide python2-mako, singlespec packages should use correct name.

OBS-URL: https://build.opensuse.org/request/show/493118
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=47
2017-05-06 04:27:38 +00:00
Todd R
862effb985 Accepting request 487255 from home:jengelh:branches:devel:languages:python
- Trim extreme wording of description

OBS-URL: https://build.opensuse.org/request/show/487255
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=45
2017-04-24 16:27:39 +00:00
Jan Matejek
3a1308a8b4 - restore compatibility Provides
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=43
2017-04-06 11:39:18 +00:00
Jan Matejek
870298a4e6 Accepting request 484188 from home:alois:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/484188
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=42
2017-03-31 17:01:12 +00:00
Thomas Bechtold
1241b8ea26 Accepting request 456071 from home:stroeder:branches:devel:languages:python
update to 1.0.6

OBS-URL: https://build.opensuse.org/request/show/456071
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=40
2017-02-10 17:07:10 +00:00
Thomas Bechtold
95fd4819ce Accepting request 440549 from home:tbechtold:branches:devel:languages:python
- python-Beaker is only recommended, not required.

OBS-URL: https://build.opensuse.org/request/show/440549
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=38
2016-11-16 06:59:45 +00:00
Todd R
2f9ac0bb11 Accepting request 428033 from home:TheBlackCat:branches:devel:languages:python
update to version 1.0.4

OBS-URL: https://build.opensuse.org/request/show/428033
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=36
2016-09-16 04:07:55 +00:00
e1ca06705b Accepting request 318683 from home:seife:OpenStack:Master
fix non-SUSE distro build by conditionalizing Suggests: tag

OBS-URL: https://build.opensuse.org/request/show/318683
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=34
2015-07-27 06:19:56 +00:00
Denisart Benjamin
2ced8f2796 Accepting request 290614 from home:posophe:branches:devel:languages:python
Update + disable tests

OBS-URL: https://build.opensuse.org/request/show/290614
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=32
2015-03-13 11:46:20 +00:00
0b7d282708 Accepting request 242919 from Cloud:OpenStack:Master
- fix up build for SLE11

OBS-URL: https://build.opensuse.org/request/show/242919
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=30
2014-07-31 15:32:42 +00:00
Todd R
89254936e2 Accepting request 241522 from home:TheBlackCat:branches:devel:languages:python
Update to version 1.0.0

OBS-URL: https://build.opensuse.org/request/show/241522
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=28
2014-07-18 14:51:13 +00:00
Sascha Peilicke
d92400249b - Only suggest Beaker, it's an extra requirement and not really needed
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=26
2014-03-06 14:28:59 +00:00
Denisart Benjamin
a60621e763 Accepting request 213703 from Cloud:OpenStack:Master
- update to 0.9.1:
  - [bug] Fixed bug in Babel plugin where translator comments
    would be lost if intervening text nodes were encountered.
    Fix courtesy Ned Batchelder.  [ticket:225]
  
  - [bug] Fixed TGPlugin.render method to support unicode template
    names in Py2K - courtesy Vladimir Magamedov.
  
  - [bug] Fixed an AST issue that was preventing correct operation
    under alpha versions of Python 3.4.  Pullreq courtesy Zer0-.
  
  - [bug] Changed the format of the "source encoding" header output
    by the code generator to use the format ``# -*- coding:%s -*-``
    instead of ``# -*- encoding:%s -*-``; the former is more common
    and compatible with emacs.  Courtesy Martin Geisler.
  
  - [bug] Fixed issue where an old lexer rule prevented a template line
    which looked like "#*" from being correctly parsed.  [ticket:224]

OBS-URL: https://build.opensuse.org/request/show/213703
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=24
2014-01-13 17:21:04 +00:00
Sascha Peilicke
80e03fb436 Accepting request 197228 from home:dirkmueller:branches:devel:languages:python
- update to 0.9.0:
  - [bug] The Context.locals_() method becomes a private underscored
    method, as this method has a specific internal use. The purpose
    of Context.kwargs has been clarified, in that it only delivers
    top level keyword arguments originally passed to template.render().
    [ticket:219]
  
  - [bug] Fixed the babel plugin to properly interpret ${} sections
    inside of a "call" tag, i.e. <%self:some_tag attr="${_('foo')}"/>.
    Code that's subject to babel escapes in here needs to be
    specified as a Python expression, not a literal.  This change
    is backwards incompatible vs. code that is relying upon a _('')
    translation to be working within a call tag.
  
  - [bug] The Babel plugin has been repaired to work on Python 3.
    [ticket:187]
  
  - [bug] Using <%namespace import="*" module="somemodule"/> now
    skips over module elements that are not explcitly callable,
    avoiding TypeError when trying to produce partials.
    [ticket:207]
  
  - [bug] Fixed Py3K bug where a "lambda" expression was not
    interpreted correctly within a template tag; also
    fixed in Py2.4.  [ticket:190]

OBS-URL: https://build.opensuse.org/request/show/197228
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=22
2013-09-03 08:34:06 +00:00
Sascha Peilicke
75d7ea8c25 Accepting request 180867 from home:dirkmueller:branches:devel:languages:python
- update to 0.8.1:
 - [bug] Changed setup.py to skip installing markupsafe
   if Python version is < 2.6 or is between 3.0 and
   less than 3.3, as Markupsafe now only supports 2.6->2.X,
   3.3->3.X. [ticket:216]
 
 - [bug] Fixed regression where "entity" filter wasn't
   converted for py3k properly (added tests.)
   [ticket:214]
 
 - [bug] Fixed bug where mako-render script wasn't
   compatible with Py3k.  [ticket:212]
 
 - [bug] Cleaned up all the various deprecation/
   file warnings when running the tests under
   various Pythons with warnings turned on.
   [ticket:213]
 
 - [feature] Performance improvement to the
   "legacy" HTML escape feature, used for XML
   escaping and when markupsafe isn't present,
   courtesy George Xie.
 
 - [bug] Fixed bug whereby an exception in Python 3
   against a module compiled to the filesystem would
   fail trying to produce a RichTraceback due to the
   content being in bytes. [ticket:209]
 
 - [bug] Change default for compile()->reserved_names
   from tuple to frozenset, as this is expected to be

OBS-URL: https://build.opensuse.org/request/show/180867
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Mako?expand=0&rev=20
2013-06-25 12:20:38 +00:00