| 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
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I3650915ea2e45c48f0823b08084eecb46ee17a14
|
|
|
|
| |
Change-Id: Ia047c7052a6d242c2cf1c7a83981f1e38ea4d928
|
|
|
|
| |
Change-Id: Ic7b1dadd186ec007e9e0116bb196f9c5ac85aaa4
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Includes PR https://github.com/zzzeek/mako/pull/26 so [Travis CI passes](https://travis-ci.org/hugovk/mako/builds/329346809). The last two commits are unique to this PR.
---
Since Mako 1.0.0, Python 2.6 has been the minimum supported version:
> [general] Compatibility changes; in order to modernize the codebase, Mako is now dropping support for Python 2.4 and Python 2.5 altogether. The source base is now targeted at Python 2.6 and forwards.
http://docs.makotemplates.org/en/latest/changelog.html#change-b602a175c0ec26eaa4f42962d23cca96
This removes redundant code only relevant to Python 2.5 or earlier.
It also adds `python_requires` to setup.py, so pip won't install this version on Python 2.5 or earlier. For people with older versions, pip will install the next Mako version down.
Are all Python 3.x versions supported? If not, I'll add those to `python_requires` as well.
Change-Id: I624e1d56e79555c579278c7a5b4de9498179ffe9
Pull-request: https://github.com/zzzeek/mako/pull/27
|
|
|
|
|
| |
- upgrade tox file to use py35, coverage, etc.
- add flake8 rules
|
|
|
|
| |
beaker, lingua, babel
|
|
|
|
| |
This gives a saner way to call into lingua's Python extractor.
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
of the source file which includes parseable information about the
templates' source file, encoding etc. as well as a mapping of module
source lines to template lines, thus replacing the "# SOURCE LINE"
markers throughout the source code. The structure also indicates those
lines that are explicitly not part of the template's source; the goal
here is to allow integration with coverage tools.
|
| |
| |
| |
| |
| | |
- drop python 2.4, 2.5 support
- various pep8ing
|
| |
| |
| |
| |
| |
| |
| | |
- write a test suite for cmdline
- start using context manager helpers in tests. intrinsic here is that
we're going to go 1.0 and drop at least 2.4 and probably 2.5
- update .gitignore
|
|/ |
|
|
|
|
|
|
| |
if Python version is < 2.6 or is between 3.0 and
less than 3.3, as Markupsafe now only supports 2.6->2.X,
3.3->3.X. [ticket:216]
|
|
|
|
|
| |
- dont need 2to3
- clean up some list() calls we dont need
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
setup.py instead of "install_requires".
This to produce a lighter weight install
for those who don't use the caching
as well as to conform to Pyramid
deployment practices. [ticket:154]
|
|
|
|
|
|
| |
setup.py which prevented setup.py
from running 2to3 on install.
[ticket:148]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
i.e. in place of cgi.escape(). Faster
C-based implementation and also escapes
single quotes for additional security.
Supports the __html__ attribute for
the given expression as well.
When using "disable_unicode" mode,
a pure Python HTML escaper function
is used which also quotes single quotes.
Note that Pylons by default doesn't
use Mako's filter - check your
environment.py file.
|
| |
|
| |
|
|
|
|
| |
[ticket:129]
|
| |
|
| |
|
|
|
|
|
|
| |
- Python 3 support is added ! See README.py3k
for installation and testing notes.
[ticket:119]
|
|
|
|
|
|
|
|
|
|
|
| |
- Source code escaping has been simplified.
In particular, module source files are now
generated with the Python "magic encoding
comment", and source code is passed through
mostly unescaped, except for that code which
is regenerated from parsed Python source.
This fixes usage of unicode in
<%namespace:defname> tags. [ticket:99]
|
| |
|
|
|
|
| |
the base module. [ticket:110]
|
|
|
|
|
| |
returns the time.time() when the module
was created. [ticket:97]
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
- added "cache_enabled=True" flag to Template,
TemplateLookup. Setting this to False causes cache
operations to "pass through" and execute every time;
this flag should be integrated in Pylons with its own
cache_enabled configuration setting.
|
| |
|
|
|
|
|
|
| |
use Beaker 1.0.4, just checked in. This version of Beaker stores
no persistent state in memory for each key, allowing dynamically
generated keys to work without using up available memory.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
version of Beaker.
- removed unnecessary attributes from DefTemplate.
- added ModuleTemplate class, which allows the construction
of a Template given a Python module generated by a previous
Template. This allows Python modules alone to be used
as templates with no compilation step. Source code
and template source are optional but allow error reporting
to work correctly.
|