summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Switch template encoding to utf-8Mike Bayer2020-05-298-32/+25
| | | | | | | | | The default template encoding is now utf-8. Previously, the encoding was "ascii", which was standard throughout Python 2. This allows that "magic encoding comment" for utf-8 templates is no longer required. Fixes: #267 Change-Id: I411a75ebd6161e2517e06b5180a3571e5f5d923e
* Merge pull request #317 from ammarnajjar/pygments_urlFederico Caselli2020-04-141-1/+1
|\ | | | | docs: correct Pygments website url
| * docs: correct Pygments website urlAmmar Najjar2020-04-141-1/+1
|/
* Remove trailing slashes in pre-commit configMike Bayer2020-03-111-2/+2
| | | | | | See https://github.com/sqlalchemy/dogpile.cache/pull/176 Change-Id: Id9a75546d4d0eae93ad837a77c6ffa9249efff5c
* Use unittest.SkipTest (again?)Michał Górny2020-03-022-12/+7
| | | | | | | | | | | | | While I can believe that the standard exception might not have worked with some ancient version of pytest, it certainly works just fine now. This saves people from importing nose which kills pytest via DeprecationWarnings these days. Closes: #316 Pull-request: https://github.com/sqlalchemy/mako/pull/316 Pull-request-sha: 90dfcfc3d0351ab9bf8125e8c2adb45c57059a6d Change-Id: Ie816acd325c6783e08801bc83de37dbe6b4581e5
* Version 1.1.3 placeholderMike Bayer2020-03-012-1/+5
|
* - 1.1.2rel_1_1_2Mike Bayer2020-03-013-9/+10
|
* Add --output-file option to mako-renderBjörn Dahlgren2020-02-262-1/+22
| | | | | | | | | | Added --output-file argument to the Mako command line runner, which allows a specific output file to be selected. Pull request courtesy Björn Dahlgren. Fixes: #283 Change-Id: Iae7e2d42d5ae4bc6f09663c115bda9e3797ce68c Pull-request: https://bitbucket.org/zzzeek/mako/pull-requests/27
* Build universal wheelsNicola Soranzo2020-02-191-3/+3
| | | | | See https://packaging.python.org/guides/distributing-packages-using-setuptools/#universal-wheels Last piece left out of https://gerrit.sqlalchemy.org/c/sqlalchemy/mako/+/957
* Version 1.1.2 placeholderMike Bayer2020-01-202-1/+5
|
* - 1.1.1rel_1_1_1Mike Bayer2020-01-204-22/+24
|
* Replace usage of parser.suite with ast.parseMike Bayer2020-01-054-5/+15
| | | | | | | | | | | | | | 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 introduced many years ago in Python 2.5, as "parser.suite" is emitting deprecation warnings in Python 3.9. Additionally repair two error-detection unit tests that were using a "print" statement despite the tests running under Python 3; while the tests were passing they were no longer testing the right thing. Fixes: #310 Change-Id: Id436e2c6620438ef16b3f188b989233c82972b29
* happy new yearMike Bayer2020-01-0526-38/+36
| | | | | | also fix one flake8 error Change-Id: Ia828267fce34d5b194898e3e301b6d463470f068
* Specify extras for gettext message extractorssinoroc2019-08-262-2/+20
| | | | | | | | | | | | | | | Added "babel" and "lingua" dependency entries to the setuptools entrypoints for the babel and lingua extensions, so that pkg_resources can check that these extra dependencies are available, raising an informative exception if not. Pull request courtesy sinoroc. Fixes: #304 Closes: #305 Pull-request: https://github.com/sqlalchemy/mako/pull/305 Pull-request-sha: 9a1c9a2242a41b553af2524381ab69c2e404a778 Change-Id: I973081a17ed27bf2f954d73133b0d52855bcacff
* Version 1.1.1 placeholderMike Bayer2019-08-012-1/+5
|
* - 1.1.0rel_1_1_0Mike Bayer2019-08-016-48/+52
|
* - add changelog section headersMike Bayer2019-08-014-80/+99
| | | | | | - reformats conf.py with black Change-Id: If011cb43578ae8deab645e654d0785576206f90f
* - formatting fixes for very old changelog versionsMike Bayer2019-08-011-11/+12
| | | | Change-Id: I831f8dff8bf7bd3c4f919f368e521624b591feb8
* - fix casingMike Bayer2019-08-011-1/+1
| | | | Change-Id: I06f074cc05091a7e814a258fafa47e6236b86051
* remove python setup.py testMike Bayer2019-07-313-22/+29
| | | | | | | | | | | | | | | | | Removed the "python setup.py test" feature in favor of a straight run of "tox". Per Pypa / pytest developers, "setup.py" commands are in general headed towards deprecation in favor of tox. The tox.ini script has been updated such that running "tox" with no arguments will perform a single run of the test suite against the default installed Python interpreter. .. seealso:: https://github.com/pypa/setuptools/issues/1684 https://github.com/pytest-dev/pytest/issues/5534 Fixes: #303 Change-Id: I345fd46f8911a71c039adf2d51937175142db793
* - add 1.1 sectionMike Bayer2019-07-291-1/+4
| | | | Change-Id: If56e42fc0d3378aae5a1a3416e948f40e55d2347
* Bump Python versions, remove conditional importsMike Bayer2019-07-2711-127/+78
| | | | | | | | | | | | | | | | | | | | | | Mako 1.1 now supports Python versions: * 2.7 * 3.4 and higher This includes that setup.py no longer includes any conditionals, allowing for a pure Python wheel build, however this is not necessarily part of the Pypi release process as of yet. The test suite also raises for Python deprecation warnings. Fixes: #249 Replaced usage of ``inspect.getfullargspec()`` with the vendored version used by SQLAlchemy, Alembic to avoid future deprecation warnings. Also cleans up an additional version of the same function that's apparently been floating around for some time. Fixes: #295 Change-Id: I98274c16b6022289d1890f4daf532bab323ab112
* Merge "use timeit.default_timer instead of time.clock() / time.time()"mike bayer2019-07-274-8/+12
|\
| * use timeit.default_timer instead of time.clock() / time.time()Christoph Reiter2019-07-274-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced usage of time.clock() on windows as well as time.time() elsewhere for microsecond timestamps with timeit.default_timer(), as time.clock() is being removed in Python 3.8. Pull request courtesy Christoph Reiter. Fixes: #301 Closes: #302 Pull-request: https://github.com/sqlalchemy/mako/pull/302 Pull-request-sha: a706e952727337702692fd1d8369d259e1600d6e Change-Id: I24e2cd3d2c02323a6fa2b063e86cabe555df2036
* | bump to 1.1Mike Bayer2019-07-272-2/+2
|/ | | | | | We want to bump Python versions so add a major release bump. Change-Id: I4b21d3782c701e4b21c5ef53c0a19eee8d2d7a40
* Version 1.0.15 placeholderMike Bayer2019-07-202-1/+5
|
* - 1.0.14rel_1_0_14Mike Bayer2019-07-204-24/+26
|
* - note that n filter in page tag is new for 1.0.14Mike Bayer2019-07-201-0/+2
| | | | Change-Id: Ia6a97cc1c20d3768af6a658cf3b3b5f081d4569c
* Merge "Include URI in traceback if filename is unknown"mike bayer2019-07-084-12/+66
|\
| * Include URI in traceback if filename is unknownMartin von Gagern2019-07-084-12/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using URIs as entrered will make the stack trace arguably more readable than using the module name which is the URI with non-word characters replaced by underscores. This change also fixes a mistake where a mods cache hit would not update template_filename, causing a stale filename to be displayed if the stack trace alternates between different templates. There now is a test case for this. Closes: #298 Pull-request: https://github.com/sqlalchemy/mako/pull/298 Pull-request-sha: ea35208d504932561711cdb574ec1f7def1e7060 Change-Id: Ieb606f6b6b7f4602d4d56694dd0bccf6dc287d20
* | Support n filter in the page tagMartin von Gagern2019-07-084-1/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some situations, it is inconvenient to pass default_filters in the Template constructor depending on the template in question. It might be easier in such situations to express page filters in the template itself. However, dropping the existing default_filters (either explicitly set or the default of ["str"] resp. ["unicode"]) might break existing templates. The code change here comes to the rescue in such situations. Existing templates keep working as they are, but editors of templates get a tool to replace the default filters for specific templates. They do take on the responsibility of turning all encountered inputs into strings, lest they fail along the lines of https://github.com/sqlalchemy/mako/issues/272. This change should be sufficiently backwards compatible to not cause any concerns. Sure, technically a "n" filter at page tag level was treated as a no-op so far. So theoretically existing templates could break. But there was no incentive to have such an "n" filter at the page tag level, and the expressed semantics of the "n" filter is to suppress default filters, so semantically anyone relying on it being a no-op in that situation was using unsupported hacks anyway. Closes: #299 Pull-request: https://github.com/sqlalchemy/mako/pull/299 Pull-request-sha: f8d5a22db3230634d2b42c59909985f31875a9f5 Change-Id: Ide030975229c1df7c0cef534976f740a03c17ca6
* | Add top-level doc links for <%page> tagMike Bayer2019-07-042-2/+13
|/ | | | | | | | | I found it difficult to locate what the <%page> tag is capable of, iterate everything it is known to be useful for including links in the intro paragraph for <%page>. Change-Id: Ice4c92a10943829f33c423f015eb49baaacc5fdc References: #299
* Version 1.0.14 placeholderMike Bayer2019-07-012-1/+5
|
* - 1.0.13rel_1_0_13Mike Bayer2019-07-013-12/+13
|