Skip to content
Myr

add python 3.8 classifier, clean up changelog

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent d312609 · Browse files · 2 files+8 added−11 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+8 added−11 removed

  • other:+8 added−11 removed

2 files+8 added−11 removed

modified:CHANGES.rst+7 added-11 removed
349 unmodified lines
350 of load names.351- Fixed loop length calculation for some iterators.352- Changed how Jinja enforces strings to be native strings in Python 2353 to work when people break their default encoding.354- Added :func:`make_logging_undefined` which returns an undefined354- Added ``make_logging_undefined`` which returns an undefined355 object that logs failures into a logger.356- If unmarshalling of cached data fails the template will be reloaded357 now.358- Implemented a block ``set`` tag.
7 unmodified lines
366 (resulting in the default value being applied to ``y``).367- Add ability to use custom subclasses of368 ``jinja2.compiler.CodeGenerator`` and ``jinja2.runtime.Context`` by369 adding two new attributes to the environment370 (``code_generator_class`` and ``context_class``) (pull request371 ``:issue:`404```).370 (``code_generator_class`` and ``context_class``). :pr:`404`371- Added support for context/environment/evalctx decorator functions on372 the finalize callback of the environment.373- Escape query strings for urlencode properly. Previously slashes were374 not escaped in that place.
182 unmodified lines
557 time) by adding support for case insensitive searches.558- Fixed a bug for getattribute constant folding.559- Support for newstyle gettext translations which result in a nicer560 in-template user interface and more consistent catalogs.562 (:ref:`newstyle-gettext`)561- It's now possible to register extensions after an environment was562 created.563564
13 unmodified lines
578- The environment template loading functions now transparently pass579 through a template object if it was passed to it. This makes it580 possible to import or extend from a template object that was passed581 to the template.584- Added a :class:`ModuleLoader` that can load templates from582- Added a ``ModuleLoader`` that can load templates from583 precompiled sources. The environment now features a method to584 compile the templates from a configured loader into a zip file or585 folder.586- The _speedups C extension now supports Python 3.587- Added support for autoescaping toggling sections and support for590 evaluation contexts (:ref:`eval-context`).588 evaluation contexts.589- Extensions have a priority now.590591592Version 2.3.1
93 unmodified lines
686 part of a visible area.687- Added ``sort`` filter that works like ``dictsort`` but for arbitrary688 sequences.689- Fixed a bug with empty statements in macros.692- Implemented a bytecode cache system. (:ref:`bytecode-cache`)690- Implemented a bytecode cache system.691- The template context is now weakref-able692- Inclusions and imports "with context" forward all variables now, not693 only the initial context.694- Added a cycle helper called ``cycler``.
11 unmodified lines
706- The subscribing of objects (looking up attributes and items) changed707 from slightly. It's now possible to give attributes or items a708 higher priority by either using dot-notation lookup or the bracket709 syntax. This also changed the AST slightly. ``Subscript`` is gone712 and was replaced with :class:`~jinja2.nodes.Getitem` and713 :class:`~jinja2.nodes.Getattr`. For more information see :ref:`the714 implementation details <notes-on-subscriptions>`.710 and was replaced with ``Getitem`` and ``Getattr``.711- Added support for preprocessing and token stream filtering for712 extensions. This would allow extensions to allow simplified gettext713 calls in template data and something similar.718- Added :meth:`jinja2.environment.TemplateStream.dump`.714- Added ``TemplateStream.dump``.715- Added missing support for implicit string literal concatenation.716 ``{{ "foo" "bar" }}`` is equivalent to ``{{ "foobar" }}``717- ``else`` is optional for conditional expressions. If not given it718 evaluates to ``false``.
13 unmodified lines
modified:setup.py+1 added
37 unmodified lines
38 "Programming Language :: Python :: 3",39 "Programming Language :: Python :: 3.5",40 "Programming Language :: Python :: 3.6",41 "Programming Language :: Python :: 3.7",42 "Programming Language :: Python :: 3.8",43 "Programming Language :: Python :: Implementation :: CPython",44 "Programming Language :: Python :: Implementation :: PyPy",45 "Topic :: Internet :: WWW/HTTP :: Dynamic Content",46 "Topic :: Software Development :: Libraries :: Python Modules",
10 unmodified lines