| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
- remove python 2 support
- add github workflows
- remove disable unicode
- cleanup compat file
- modernize setup
- use pep517
Change-Id: Ic38dbf478046cec5d0815b468f0c235b4ea5e20c
|
|
|
|
| |
Change-Id: Id0d5707be4e1547bdff168700848081bc5483b87
|
|
|
|
| |
Change-Id: I523c4c280cdfd862784fc5191263f50bd405012f
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Fixed some issues with running the test suite which would be revealed by
running tests in random order.
Fixes: #338
Change-Id: I90c2a86f9279a265f64b75be3a7af314ab8772ba
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
| |
we want to be able to specify --output-file
Change-Id: Ifcf158bc928ea2513a247f38622f303bee749889
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| | |
docs: correct Pygments website url
|
|/ |
|
|
|
|
|
|
| |
See https://github.com/sqlalchemy/dogpile.cache/pull/176
Change-Id: Id9a75546d4d0eae93ad837a77c6ffa9249efff5c
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
also fix one flake8 error
Change-Id: Ia828267fce34d5b194898e3e301b6d463470f068
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
| |
- reformats conf.py with black
Change-Id: If011cb43578ae8deab645e654d0785576206f90f
|
|
|
|
| |
Change-Id: I831f8dff8bf7bd3c4f919f368e521624b591feb8
|
|
|
|
| |
Change-Id: I06f074cc05091a7e814a258fafa47e6236b86051
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: If56e42fc0d3378aae5a1a3416e948f40e55d2347
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
| |
We want to bump Python versions so add a major release bump.
Change-Id: I4b21d3782c701e4b21c5ef53c0a19eee8d2d7a40
|
| |
|
| |
|
|
|
|
| |
Change-Id: Ia6a97cc1c20d3768af6a658cf3b3b5f081d4569c
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|