aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix deprecation warnings due to invalid escape sequences.HEADmasterKarthikeyan 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
|
* Correctly track line numbers for multi-line code blocksMartin von Gagern2019-07-014-6/+66
| | | | | | | | | | | | | | | | Improved the line-number tracking for source lines inside of Python ``<% ... %>`` blocks, such that text- and HTML-formatted exception traces such as that of :func:`.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. Pull request courtesy Martin von Gagern. Closes: #297 Pull-request: https://github.com/sqlalchemy/mako/pull/297 Pull-request-sha: 60ad749604f8de0a9b8133430995045a93d0939c Change-Id: I2086e4370e8e2db7099de01743840286f0160efc
* Version 1.0.13 placeholderMike Bayer2019-06-052-1/+5
|
* - 1.0.12rel_1_0_12Mike Bayer2019-06-053-9/+10
|
* Remove all non-essential functions from _ast_util.pyMike Bayer2019-06-033-188/+22
| | | | | | | | | | | | | As this is an old module that keeps changing with new Python releases, combined with the fact that we no longer use "import *", remove all unused functions from this module so that the list of imports we are maintaining is much shorter. Python 3.8 is also added to tox.ini with more adjustments to test_exceptions to accommodate for quoting differences. Fixes: #296 Change-Id: I0cea7d21ecb2be9335e0845ae7fbd06d468a137b
* Version 1.0.12 placeholderMike Bayer2019-05-312-1/+5
|
* - 1.0.11rel_1_0_11Mike Bayer2019-05-312-6/+7
|
* - modernize tox, travis versionsMike Bayer2019-05-314-15/+6
| | | | | | | - fix MANIFEST to remove old names, add tox.ini - reformat .gitignore Change-Id: I450672f92ebfb43a023df502de795f24ad809884
* - update copyrightMike Bayer2019-05-3126-22/+46
| | | | Change-Id: I258e9ff77e5a9ac687cd20d33b6d75de7c79b4dc
* - add change note for code formatting / metadataMike Bayer2019-05-311-0/+5
| | | | Change-Id: Ibb0af4ae3e89ede0d50ea5e16f66ad9ce15ffec5
* - add links for documentation / githubMike Bayer2019-05-311-0/+4
| | | | Change-Id: I3650915ea2e45c48f0823b08084eecb46ee17a14
* Use tox / zimportsMike Bayer2019-05-3156-3987/+6203
| | | | Change-Id: Ia047c7052a6d242c2cf1c7a83981f1e38ea4d928
* - update LICENSE to be exact MIT textMike Bayer2019-05-281-17/+16
| | | | Change-Id: I531f9eb3d2277c5a201c2284aa87cae5c4e1b11a