summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* more release fixesrel_1_2_0Mike Bayer2022-03-102-1/+2
|
* - 1.2.0 for mar 10 2022Mike Bayer2022-03-102-2/+1
|
* Changed GPG artifact in setup.cfgMichael Bourke2022-02-181-1/+1
| | | | Change-Id: I7c5be755026df9d6f4d269e327e512a1344abc9e
* - 1.2.0Michael Bourke2022-01-1810-45/+53
|
* Fix for WindowsMichael Bourke2022-01-171-1/+1
| | | | Change-Id: I1f332e81cc8a67391c3a9133e37c9a8bb1362745
* Refactor test.util into mako.testingMichael Bourke2022-01-1438-348/+712
| | | | | Fixes: #349 Change-Id: I202c252a913fb72cc328a6e7f0f33174802487d3
* Replace (old) raises test helper with expect_raisesMichael Bourke2022-01-062-26/+21
| | | | | | Fixes #350 Change-Id: I154ffeecad925622167593b6a5a45458eaf95641
* Fix changelog.rst so create_release.sh runsMichael Bourke2022-01-031-1/+1
| | | | Change-Id: Ic54c7e719dab661aa6181ef483cbde2cee6dd852
* Merge "Remove Python 2 residue; use Python 3 idioms" into mainmike bayer2022-01-0217-104/+77
|\
| * Remove Python 2 residue; use Python 3 idiomsMichael Bourke2021-12-2717-104/+77
| | | | | | | | | | | | Fixes #352 Change-Id: I051ec20505464559e9399a8f1ac4a39dc323902a
* | Corrected universal wheel directive; building wheels now targets Python 3 onlyMichael Bourke2021-12-282-3/+6
|/ | | | | Fixes #351 Change-Id: I7bd7d105871628f3c65433e46bbf3fe7b106386a
* Fix changelog tagsMichael Bourke2021-12-165-5/+5
| | | | Change-Id: I64c34efbfed69c3cc952218c3f27928a958ca859
* Fix 3.7 and Windows problemsMichael Bourke2021-12-102-3/+13
| | | | Change-Id: Iec9544a055a1a2e3e2a87b8dce8360ffa64a67c3
* Fix exception causes in lookup.pyRam Rachum2021-12-0934-302/+554
| | | | | | | | | | | | | | | | | | 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
* fix typoJan Chren2021-11-171-1/+1
| | | | | | | | Closes: #326 Pull-request: https://github.com/sqlalchemy/mako/pull/326 Pull-request-sha: a04258282a896237596e926135f0d179686e64ac Change-Id: I54896fdaeb4a5b7f8f2d1d13afeaa66377bc6ab5
* still trying to fix a markup issue in changelogMike Bayer2021-11-174-5/+5
| | | | | | can't reproduce locally, so just trying things Change-Id: I43f52a216c8ea4ddca537f5f4f072bf6efec7f52
* fix formattingMike Bayer2021-11-171-1/+1
| | | | Change-Id: I1ec7deeeadeeac3dacca58a9d4207c23551e5dd9
* cherry-pick changelog from 1.1.6Mike Bayer2021-11-172-9/+14
|
* description needs to be all single line for distutilsMike Bayer2021-11-171-2/+1
| | | | Change-Id: I8511d4eb793892f6e76fda99a9840e07178be785
* Fix matching multiline control lines in templates with CRLF line endingsCharles Pigott2021-11-133-1/+27
| | | | | | | | | | | | | | | | | | | | | 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. Pull request courtesy Charles Pigott. A missing '\\' meant that it would actually allow ``` % if foo \r bar: ``` in a template file and not match if the file actually had a `\r` char Closes: #346 Pull-request: https://github.com/sqlalchemy/mako/pull/346 Pull-request-sha: e79ebabe3df7e59c9ea40e62406131e1a0c6c3b4 Change-Id: I179bdd661cecb1ffb3cf262e31183c8e83d98f12
* Remove more Python 2 language from docsMichael Bourke2021-10-283-118/+31
| | | | Change-Id: Icdddf85b3ddf5d3e7172e318c9e75b3c9a857314
* Merge "Replace the use of pkg_resources with the importlib library." into mainFederico Caselli2021-10-265-10/+33
|\
| * Replace the use of pkg_resources with the importlib library.Federico Caselli2021-10-255-10/+33
| | | | | | | | Change-Id: Iafb96d53196ff74c98f2fbc7caf2eb8fbdc70029
* | create 1.2 section in changelogMike Bayer2021-10-251-1/+5
|/ | | | | | forgot to do this in the earlier commit Change-Id: I6cd29865edd761f6a047d9c4ac363280e24565d9
* update black and formatFederico Caselli2021-10-2526-177/+229
| | | | | | | | Closes: #342 Pull-request: https://github.com/sqlalchemy/mako/pull/342 Pull-request-sha: 21a068103481410cf4856fb07c19146dc684d460 Change-Id: I9027433ec23ee19c9d9a47015e0327acf409e2d8
* update min python vesion in changelogFederico Caselli2021-10-251-1/+2
| | | | Change-Id: If35e5fb2faedc5172a0b20710616fa0f7fbb4bab
* Merge "Refactoring Code" into mainFederico Caselli2021-10-2515-227/+187
|\
| * Refactoring CodeFederico Caselli2021-10-2515-227/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ## [Setup.py](setup.py) - Use `with` when opening file to ensure closure ## [Util.py](mako/util.py) - Remove unnecessary else after guard condition - Replace if statement with if expression - Remove unnecessary else after guard condition - Replace unneeded comprehension with generator - Inline variable that is immediately returned ## [Template.py](mako/template.py) - Replace if statement with if expression, Simplify if expression by using or - Replace list(), dict() or set() with comprehension - Swap if/else branches, Merge else clause's nested if statement into elif ## [Runtime.py](mako/runtime.py) - Remove unnecessary else after guard condition ## [PyParser.py](mako/pyparser.py) - Replace yield inside for loop with yield from - Lift code into else after jump in control flow, Merge else clause's nested if statement into elif - Replace if statement with if expression ## [Pygen.py](mako/pygen.py) - Merge nested if conditions - Simplify conditional into return statement (removes comment) - Replace if statement with if expression, Simplify boolean if expression ## [Parsetree.py](mako/parsetree.py) - Replace unneeded comprehension with generator - Merge else clause's nested if statement into elif - Replace unneeded comprehension with generator ## [Lookup.py](mako/lookup.py) - Swap if/else branches, Merge else clause's nested if statement into elif - Swap if/else branches, Remove unnecessary else after guard condition ## [Lexer.py](mako/lexer.py) - Replace if statement with if expression - Merge nested if conditions - Swap if/else branches, Remove unnecessary else after guard condition, Merge else clause's nested if statement into elif - Swap if/else branches, Remove unnecessary else after guard condition ## [Exceptions.py](mako/exceptions.py) - Replace if statement with if expression, Use `with` when opening file to ensure closure ## [Ast.py](mako/ast.py) - Replace multiple comparisons of same variable with `in` operator ## [Pygmentplugin.py](mako/ext/pygmentplugin.py) - Replace if statement with if expression Closes: #335 Pull-request: https://github.com/sqlalchemy/mako/pull/335 Pull-request-sha: c6243b116441f4b14e1cff00f47ed72aee3d3133 Change-Id: I9093e2f5ca4bb59aa12536b1a0bdf2d58514aa40
* | skip python 3.10 on windows until beaker is upadtedFederico Caselli2021-10-251-0/+6
|/ | | | Change-Id: Ibe13134fe0bcd6c951a092c21970e5b7df789cbf
* use also py3.10 in workflowsFederico Caselli2021-10-252-1/+2
| | | | Change-Id: Idd639ddfbf86e39c4c8a96381dcc02db2499dc1a
* use main in workflowsFederico Caselli2021-10-252-4/+4
| | | | Change-Id: Ib59204b0a3247f5fd3feb69e4458bb752698ddad
* Merge "more code updates" into mainmike bayer2021-10-2527-269/+114
|\
| * more code updatesMike Bayer2021-10-2527-269/+114
| | | | | | | | | | | | | | | | | | | | | | - 2021 copyright - remove unneeded compat functions - remove unneeded filter constructs - bytestring_passthrough mode doesn't actually do anything, as Py3k StringIO doesn't accept bytes in any case, remove this - should we call ourselves 2.0 and do semver ? Change-Id: I8a8cb5e78037b758e58c87d5d7b4f66b6c211419
* | ensure changelog shows 1.2 as versionMike Bayer2021-10-251-1/+1
|/ | | | Change-Id: I27667b81e6577945bdb5d26a3e821c466d255019
* Modernize codeworkflow_test_initial_1_2Federico Caselli2021-10-2357-1327/+611
| | | | | | | | | | | - remove python 2 support - add github workflows - remove disable unicode - cleanup compat file - modernize setup - use pep517 Change-Id: Ic38dbf478046cec5d0815b468f0c235b4ea5e20c
* update pre-commitMike Bayer2021-10-101-1/+1
| | | | Change-Id: Id0d5707be4e1547bdff168700848081bc5483b87
* rename default branch to mainMike Bayer2021-10-101-1/+1
| | | | Change-Id: I523c4c280cdfd862784fc5191263f50bd405012f
* Update setup.pymasterAnurag Kumar2021-09-031-0/+1
|
* Update setup.pyAnurag Kumar2021-09-021-0/+1
|
* Version 1.1.6 placeholderMike Bayer2021-08-202-1/+5
|
* - 1.1.5rel_1_1_5Mike Bayer2021-08-203-10/+11
|
* dont intefere with mako.templates in the test suiteMike Bayer2021-08-194-7/+18
| | | | | | | | Fixed some issues with running the test suite which would be revealed by running tests in random order. Fixes: #338 Change-Id: I90c2a86f9279a265f64b75be3a7af314ab8772ba
* Version 1.1.5 placeholderMike Bayer2021-01-142-1/+5
|
* - 1.1.4rel_1_1_4Mike Bayer2021-01-143-9/+10
|
* Avoid warnings under Python 3.10Petr Viktorin2021-01-146-11/+41
| | | | | | | | | | | | | | | | | | | | 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. Pull request courtesy Petr Viktorin. This modernizes the code to avoid `DeprecationWarning` and `ResourceWarning` encountered in the test suite under Python 3.10a4: - [load_module](https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.load_module) is deprecated - Some files weren't being closed This changes the semantics of the `compat.load_module` function: on Python 3.5+, the module is no longer inserted in `sys.modules`. All non-test calls did `del sys.modules[self.module_id]` right after the call, anyway. On older Python, the module is inserted and then deleted. (Some additional `DeprecationWarning` come from Setuptools: https://github.com/pypa/setuptools/pull/2517) Closes: #328 Pull-request: https://github.com/sqlalchemy/mako/pull/328 Pull-request-sha: 87c1d09e5f39de7b19e749568c437928580f7553 Change-Id: I9cb3772f6812ef14297792344caf2f9aa5337adf
* Include supported Python versions classifiers in setupÁlvaro Mondéjar2020-09-031-0/+3
|
* Fix deprecation warnings due to invalid escape sequences.Karthikeyan Singaravelan2020-08-071-1/+1
|
* add posargs to pep8Mike Bayer2020-05-291-1/+1
| | | | | | we want to be able to specify --output-file Change-Id: Ifcf158bc928ea2513a247f38622f303bee749889
* Version 1.1.4 placeholderMike Bayer2020-05-292-1/+5
|
* - 1.1.3rel_1_1_3Mike Bayer2020-05-293-10/+11
|