summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-03-07Snap for 11541002 from 90c51db1751e60ede56866cd1c8ec9773bcce99e to sdk-releaseplatform-tools-35.0.1sdk-releasebusytown-mac-infra-releaseAndroid Build Coastguard Worker
Change-Id: If33a7eca786a486ddfa0a45f7c91b90c9bde5a95
2023-12-15Merge remote-tracking branch 'origin/upstream' am: be49714f29mainInna Palant
Original change: undetermined Change-Id: Ia4a0d0a42cfc90ca1370946842c9c1f94ddef78b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-14Merge remote-tracking branch 'origin/upstream'platform-tools-34.0.5simpleperf-releaseInna Palant
Import b/312187805
2023-12-13external: Import makoupstreamGurchetan Singh
Third-Party Import of: https://github.com/sqlalchemy/mako Request Document: go/android3p For CL Reviewers: go/android3p#cl-review For Build Team: go/ab-third-party-imports Bug: http://b/312187805 Test: compile Change-Id: Ic42492d0a01a157ad0e3f529ea7c072df444d78f
2023-12-05Initial empty repositoryUmer Abdullah
2023-11-08- 1.3.0upstream/rel_1_3_0Mike Bayer
2023-09-18bump black, zimportsMike Bayer
Change-Id: Id9afb5a6dfd02ce37b11486a046ca522fcd3c91a
2023-09-18Add support for Python 3.11 and 3.12 and drop EOL 3.7Hugo van Kemenade
Mako 1.3.0 bumps the minimum Python version to 3.8, as 3.7 is EOL as of 2023-06-27. Python 3.12 is now supported explicitly. Closes: #379 Pull-request: https://github.com/sqlalchemy/mako/pull/379 Pull-request-sha: 9f09d4c704ca540f4592d88968fb62609b88ee8f Change-Id: Ie02118907071ac77cf4975be8affe4b6a2c3d7ad
2023-01-03happy new year 2023Mike Bayer
Change-Id: I1ae40f516c03801427063175d6b18a60556fbd29
2022-12-01Fix StringIO import for the example in usage.rstRaf Baluyot
For some reason people fixed the `print` call but not the import when https://github.com/sqlalchemy/mako/issues/234 was brought up. I also mentioned in in https://github.com/sqlalchemy/mako/issues/369 Closes: #370 Pull-request: https://github.com/sqlalchemy/mako/pull/370 Pull-request-sha: 8560bfed22f11b7edb5d2ac2e5cfc6a7bd59b718 Change-Id: I236eef05f5b45420035c522287fa66eb3cb21a00
2022-11-15Version 1.2.5 placeholderMike Bayer
2022-11-15- 1.2.4upstream/rel_1_2_4Mike Bayer
2022-11-15Support nested tuple unpacking in for loopsMatt Trescott
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. For example: ~~~ for (key1, val1), (key2, val2) in itertools.pairwise(dict.items()): ... ~~~ This is really just "kicking the can down the road" so to speak, because it doesn't allow an infinite number of layers of tuples, but it helps somewhat. Closes: #368 Pull-request: https://github.com/sqlalchemy/mako/pull/368 Pull-request-sha: 3f15a87266a36306826d460cddc7699dd62a9c43 Change-Id: I52915acb8904daf7071d8c92e1de352f200131ec
2022-09-22Version 1.2.4 placeholderMike Bayer
2022-09-22- 1.2.3upstream/rel_1_2_3Mike Bayer
2022-09-22replace "dot" with "set not containing whitespace"Mike Bayer
Fixed issue in lexer in the same category as that of :ticket:`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. Fixes: #367 Change-Id: I2f3a8665e92c1b6efcf36b1dba6e58fe0975b7da
2022-08-29Version 1.2.3 placeholderMike Bayer
2022-08-29- 1.2.2upstream/rel_1_2_2Mike Bayer
2022-08-29Merge "fix tag regexp to match quoted groups correctly" into mainmike bayer
2022-08-29fix tag regexp to match quoted groups correctlyMike Bayer
Fixed issue in lexer where the regexp used to match tags would not correctly interpret quoted sections individually. While this parsing issue still produced the same expected tag structure later on, the mis-handling of quoted sections was also subject to a regexp crash if a tag had a large number of quotes within its quoted sections. Fixes: #366 Change-Id: I74e0d71ff7f419970711a7cd51adcf1bb90a44c0
2022-08-19Restore unit tests in classes starting with TestMartin von Gagern
https://github.com/sqlalchemy/mako/commit/7e52b60b7dac75a3c7177e69244123c0dad9e9d9 changed tests from `unittest.TestCase` to pytest collection. But since then only classes *ending* in the word `Test` were considered to be tests; classes *starting* in `Test` were not. This disabled some existing tests, and while renaming these would be a viable way to restore coverage, extending the list of test class names avoids accidentally missing similar classes in the future. The loop test classes make use of the `setUp` method, so in their current form they need to inherit from `unittest` again. Changing to pytest fixtures would be a possible future modification. This commit adds 33 tests that had been missing before: * 25 methods in 4 classes from `test_loop.py` * 2 methods in `TestTemplateAPI` from `test_template.py` * 6 methods in `TestTGPlugin` from `test_tgplugin.py` Closes: #365 Pull-request: https://github.com/sqlalchemy/mako/pull/365 Pull-request-sha: 6b5ff13dd5346f3472ac93f3af0a9da172ae1c5e Change-Id: I744b8c6f28cf485c07cd30a11c328ea7391c7d3b
2022-07-06Update FUNDING.ymlmike bayer
2022-07-06Update FUNDING.ymlmike bayer
2022-07-06add FUNDINGMike Bayer
Change-Id: I15d9b058f20c331c426c98dde64d8b319b9cafe1
2022-06-30Version 1.2.2 placeholderMike Bayer
2022-06-30- 1.2.1upstream/rel_1_2_1Mike Bayer
2022-06-30happy new yearMike Bayer
Change-Id: I1aef208387ea7d25462b8effdfc298e89c74dadd
2022-06-30optimize some code pathsTakuto Ikuta
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. This shows around 10% performance improvement in our use case (https://crbug.com/1214033#c32). Closes: #361 Pull-request: https://github.com/sqlalchemy/mako/pull/361 Pull-request-sha: bcdee5ccf57100490aa0e48baeda6f15b584ab32 Change-Id: If647f77a52d5745019dcc46f82fd7a928f990757
2022-06-29fix tests for py311Mike Bayer
- use more specific warnings Change-Id: If1713e0f3ced05a886cd8f43862db91eba1d16de
2022-06-27use license_files instead of the deprecated license_fileFederico Caselli
Change-Id: I0d3716d87ccc5c18c5e944e71f986df437a1f62a
2022-05-13Fix test runs without lingua or babelMichał Górny
Defer test imports to fall within exclusion decorators Support for identifying new 3.11-style error message Closes: #357 Pull-request: https://github.com/sqlalchemy/mako/pull/357 Pull-request-sha: 44f788b4f3a3c3e1f8328670a2334555163b90e2 Change-Id: I39d59383d92e041e10adc967f51d74839105a1eb
2022-05-08additional test_exceptions fixesMike Bayer
Various fixes to the test suite in the area of exception message rendering to accommodate for variability in Python versions as well as Pygments. builds on 9b8da4b1e2bdc025b643f2061aa32 which also reduced some of the checks for exception message formatting. also updates black to 22.3.0 as there seem to be some dependency issues with the older version Fixes: #360 Change-Id: Ib8916534699e7c57817cf82d53300e50d47d0d50
2022-04-09reduce exception message tested for py311 compatMike Bayer
Change-Id: I519d4a840fd456ea042a5b0735da183a1e340aa4
2022-04-08Add closing tag in include.Abhilash Raj
Fixes #260 Closes: #359 Pull-request: https://github.com/sqlalchemy/mako/pull/359 Pull-request-sha: 541f219237c47ab159a7bc36172044d503cd0c08 Change-Id: Icdaa09284cb9921b5753985ae600978763e0223f
2022-03-10Version 1.2.1 placeholderMike Bayer
2022-03-10more release fixesupstream/rel_1_2_0Mike Bayer
2022-03-10- 1.2.0 for mar 10 2022Mike Bayer
2022-02-18Changed GPG artifact in setup.cfgMichael Bourke
Change-Id: I7c5be755026df9d6f4d269e327e512a1344abc9e
2022-01-18- 1.2.0Michael Bourke
2022-01-17Fix for WindowsMichael Bourke
Change-Id: I1f332e81cc8a67391c3a9133e37c9a8bb1362745
2022-01-14Refactor test.util into mako.testingMichael Bourke
Fixes: #349 Change-Id: I202c252a913fb72cc328a6e7f0f33174802487d3
2022-01-06Replace (old) raises test helper with expect_raisesMichael Bourke
Fixes #350 Change-Id: I154ffeecad925622167593b6a5a45458eaf95641
2022-01-03Fix changelog.rst so create_release.sh runsMichael Bourke
Change-Id: Ic54c7e719dab661aa6181ef483cbde2cee6dd852
2022-01-02Merge "Remove Python 2 residue; use Python 3 idioms" into mainmike bayer
2021-12-28Corrected universal wheel directive; building wheels now targets Python 3 onlyMichael Bourke
Fixes #351 Change-Id: I7bd7d105871628f3c65433e46bbf3fe7b106386a
2021-12-27Remove Python 2 residue; use Python 3 idiomsMichael Bourke
Fixes #352 Change-Id: I051ec20505464559e9399a8f1ac4a39dc323902a
2021-12-16Fix changelog tagsMichael Bourke
Change-Id: I64c34efbfed69c3cc952218c3f27928a958ca859
2021-12-10Fix 3.7 and Windows problemsMichael Bourke
Change-Id: Iec9544a055a1a2e3e2a87b8dce8360ffa64a67c3
2021-12-09Fix exception causes in lookup.pyRam Rachum
Mako now performs exception chaining using ``raise from``, correctly identifying underlying exception conditions when it raises its own exceptions. Pull request courtesy Ram Rachum. Additionally includes cleanup of the test suite to include better exception fixtures. Closes: #319 Pull-request: https://github.com/sqlalchemy/mako/pull/319 Pull-request-sha: d06526ac3f80ca9d24cd8143d8afde254f80b094 Additionally: Fixes: #348 Change-Id: Ibb2864de822bf4b63adf22a6bb32cf0758d296bd
2021-11-17fix typoJan Chren
Closes: #326 Pull-request: https://github.com/sqlalchemy/mako/pull/326 Pull-request-sha: a04258282a896237596e926135f0d179686e64ac Change-Id: I54896fdaeb4a5b7f8f2d1d13afeaa66377bc6ab5