| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \ \ \
| |_|_|/ /
|/| | | | |
Fix typo
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Add testing and document support for Python 3.7 & pypy3
|
| | | | | |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Fix broken nl2br filter example
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
This example attempts to handle both Windows-style and Unix-style line endings, but does it wrong; as noted at https://stackoverflow.com/q/12521127/1709587, the regex here will match a single \r\n as if it were a double line-break, which results in all single Windows-style line-breaks getting converted into <p> breaks instead of <br> breaks as intended.
This patch fixes that by applying Alan Moore's proposed fix from https://stackoverflow.com/a/12521544/1709587 of using a negative lookahead so that a \r cannot be counted as a line break if it is followed by a \n (while still allowing the \r\n combination to count as a line break).
|
|\ \ \ \
| | | | |
| | | | | |
Remove reference to deprecated easy_install; use pip instead
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
easy_install is deprecated and its use is discouraged by PyPA:
https://setuptools.readthedocs.io/en/latest/easy_install.html
> Warning: Easy Install is deprecated. Do not use it. Instead use pip.
Follow upstream advice and only recommended supported tools. Replace
with pip.
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Clarify in docs that last filter doesn't work with generators
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
parser: Fix typo `self.lineno` -> `token.lineno`
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
[Docs] Fix ambiguity in include section
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Pass python_requires argument to setuptools
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Helps pip decide what version of the library to install.
https://packaging.python.org/tutorials/distributing-packages/#python-requires
> If your project only runs on certain Python versions, setting the
> python_requires argument to the appropriate PEP 440 version specifier
> string will prevent pip from installing the project on other Python
> versions.
https://setuptools.readthedocs.io/en/latest/setuptools.html#new-and-changed-setup-keywords
> python_requires
>
> A string corresponding to a version specifier (as defined in PEP 440)
> for the Python version, used to specify the Requires-Python defined in
> PEP 345.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Trim trailing white space throughout the project
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Many editors clean up trailing white space on save. By removing it all
in one go, it helps keep future diffs cleaner by avoiding spurious white
space changes on unrelated lines.
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Add trove classifier for PyPy support
|
|/ / / /
| | | |
| | | |
| | | | |
Tested during CI since 761da6ff612966214fe9e34ac6bc86499e34da26.
|
|\ \ \ \
| | | | |
| | | | | |
Quick lookup table for builtin filters and tests-- references #584
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Update integration docs for Vim syntax highlighting
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Import abstract base classes from collections.abc
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
In Python 3.7, importing ABCs directly from the `collections` module shows a
warning (and in Python 3.8 it will stop working) - see
https://github.com/python/cpython/commit/c66f9f8d3909f588c251957d499599a1680e2320
This fixes various DeprecationWarnings such as those:
```
.../jinja2/utils.py:485: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import MutableMapping
.../jinja2/runtime.py:318: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import Mapping
```
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
temporarily pin pytest to avoid test bug
|
|/ / / / / / |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Drop Python 2.6 and 3.3 support
|
| | | | | | |
|
| | | | | | |
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | | |
It's currently broken on Travis (as it was dropped in 'wheel'), so continuing to
support it is probably not worth the pain.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fixes 'awaitable' typo in api.rst
|
| |/ / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
remove html+jinja highlight
|
| |/ / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
More closely match python splatting for calls
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
In Python, it's legal to use splats in function calls like this:
call_function('123', *b, c=5, **d)
Prior to this change, jinja2 did not allow that. It mandated that all
splatting had to take place at the end of the call:
call_function('123', c=5, *b, **d)
This commit allows both orders.
Additionally, this commit adds tests for more things that are illegal:
namely giving a function a positional argument after using a splat to
unpack positional arguments or giving a function a named argument after
using a double splat to unpack keyword arguments.
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
{% raw %} tests and note for documentation
|
|/ / / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Update all pypi.python.org URLs to pypi.org
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
For details on the new PyPI, see the blog post:
https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix small typo in docs/api.rst
|
|/ / / / / |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is unmaintained anyways and we do not want to ship non BSD code.
Fixes #833
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix escaped characters in indent filter
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This ensures that we only concatenate Markup instances to other Markup
instances.
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|