Sourced from black's releases.
21.4b2
Black
Fix crash if the user configuration directory is inaccessible. (#2158)
Clarify circumstances in which Black may change the AST (#2159)
Packaging
- Install
primer.json
(used byblack-primer
by default) with black. (#2154)21.4b1
Black
Fix crash on docstrings ending with "\ ". (#2142)
Fix crash when atypical whitespace is cleaned out of dostrings (#2120)
Reflect the
--skip-magic-trailing-comma
and--experimental-string-processing
flags in the name of the cache file. Without this fix, changes in these flags would not take effect if the cache had already been populated. (#2131)Don't remove necessary parentheses from assignment expression containing assert / return statements. (#2143)
Packaging
- Bump pathspec to >= 0.8.1 to solve invalid .gitignore exclusion handling
21.4b0
Black
Fixed a rare but annoying formatting instability created by the combination of optional trailing commas inserted by
Black
and optional parentheses looking at pre-existing "magic" trailing commas. This fixes issue #1629 and all of its many many duplicates. (#2126)
Black
now processes one-line docstrings by stripping leading and trailing spaces, and adding a padding space when needed to break up """". (#1740)
Black
now cleans up leading non-breaking spaces in comments (#2092)
Black
now respects--skip-string-normalization
when normalizing multiline docstring quotes (#1637)
Black
no longer removes all empty lines between non-function code and decorators when formatting typing stubs. NowBlack
enforces a single empty line. (#1646)
... (truncated)
Sourced from black's changelog.
21.4b2
Black
Fix crash if the user configuration directory is inaccessible. (#2158)
Clarify circumstances in which Black may change the AST (#2159)
Packaging
- Install
primer.json
(used byblack-primer
by default) with black. (#2154)21.4b1
Black
Fix crash on docstrings ending with "\ ". (#2142)
Fix crash when atypical whitespace is cleaned out of dostrings (#2120)
Reflect the
--skip-magic-trailing-comma
and--experimental-string-processing
flags in the name of the cache file. Without this fix, changes in these flags would not take effect if the cache had already been populated. (#2131)Don't remove necessary parentheses from assignment expression containing assert / return statements. (#2143)
Packaging
- Bump pathspec to >= 0.8.1 to solve invalid .gitignore exclusion handling
21.4b0
Black
Fixed a rare but annoying formatting instability created by the combination of optional trailing commas inserted by
Black
and optional parentheses looking at pre-existing "magic" trailing commas. This fixes issue #1629 and all of its many many duplicates. (#2126)
Black
now processes one-line docstrings by stripping leading and trailing spaces, and adding a padding space when needed to break up """". (#1740)
Black
now cleans up leading non-breaking spaces in comments (#2092)
Black
now respects--skip-string-normalization
when normalizing multiline docstring quotes (#1637)
... (truncated)
Sourced from black's releases.
21.4b1
Black
Fix crash on docstrings ending with "\ ". (#2142)
Fix crash when atypical whitespace is cleaned out of dostrings (#2120)
Reflect the
--skip-magic-trailing-comma
and--experimental-string-processing
flags in the name of the cache file. Without this fix, changes in these flags would not take effect if the cache had already been populated. (#2131)Don't remove necessary parentheses from assignment expression containing assert / return statements. (#2143)
Packaging
- Bump pathspec to >= 0.8.1 to solve invalid .gitignore exclusion handling
21.4b0
Black
Fixed a rare but annoying formatting instability created by the combination of optional trailing commas inserted by
Black
and optional parentheses looking at pre-existing "magic" trailing commas. This fixes issue #1629 and all of its many many duplicates. (#2126)
Black
now processes one-line docstrings by stripping leading and trailing spaces, and adding a padding space when needed to break up """". (#1740)
Black
now cleans up leading non-breaking spaces in comments (#2092)
Black
now respects--skip-string-normalization
when normalizing multiline docstring quotes (#1637)
Black
no longer removes all empty lines between non-function code and decorators when formatting typing stubs. NowBlack
enforces a single empty line. (#1646)
Black
no longer adds an incorrect space after a parenthesized assignment expression in if/while statements (#1655)Added
--skip-magic-trailing-comma
/-C
to avoid using trailing commas as a reason to split lines (#1824)fixed a crash when PWD=/ on POSIX (#1631)
fixed "I/O operation on closed file" when using --diff (#1664)
Prevent coloured diff output being interleaved with multiple files (#1673)
Added support for PEP 614 relaxed decorator syntax on python 3.9 (#1711)
... (truncated)
Sourced from black's changelog.
21.4b1
Black
Fix crash on docstrings ending with "\ ". (#2142)
Fix crash when atypical whitespace is cleaned out of dostrings (#2120)
Reflect the
--skip-magic-trailing-comma
and--experimental-string-processing
flags in the name of the cache file. Without this fix, changes in these flags would not take effect if the cache had already been populated. (#2131)Don't remove necessary parentheses from assignment expression containing assert / return statements. (#2143)
Packaging
- Bump pathspec to >= 0.8.1 to solve invalid .gitignore exclusion handling
21.4b0
Black
Fixed a rare but annoying formatting instability created by the combination of optional trailing commas inserted by
Black
and optional parentheses looking at pre-existing "magic" trailing commas. This fixes issue #1629 and all of its many many duplicates. (#2126)
Black
now processes one-line docstrings by stripping leading and trailing spaces, and adding a padding space when needed to break up """". (#1740)
Black
now cleans up leading non-breaking spaces in comments (#2092)
Black
now respects--skip-string-normalization
when normalizing multiline docstring quotes (#1637)
Black
no longer removes all empty lines between non-function code and decorators when formatting typing stubs. NowBlack
enforces a single empty line. (#1646)
Black
no longer adds an incorrect space after a parenthesized assignment expression in if/while statements (#1655)Added
--skip-magic-trailing-comma
/-C
to avoid using trailing commas as a reason to split lines (#1824)fixed a crash when PWD=/ on POSIX (#1631)
fixed "I/O operation on closed file" when using --diff (#1664)
Prevent coloured diff output being interleaved with multiple files (#1673)
... (truncated)
Sourced from black's releases.
21.4b0
Black
Fixed a rare but annoying formatting instability created by the combination of optional trailing commas inserted by
Black
and optional parentheses looking at pre-existing "magic" trailing commas. This fixes issue #1629 and all of its many many duplicates. (#2126)
Black
now processes one-line docstrings by stripping leading and trailing spaces, and adding a padding space when needed to break up """". (#1740)
Black
now cleans up leading non-breaking spaces in comments (#2092)
Black
now respects--skip-string-normalization
when normalizing multiline docstring quotes (#1637)
Black
no longer removes all empty lines between non-function code and decorators when formatting typing stubs. NowBlack
enforces a single empty line. (#1646)
Black
no longer adds an incorrect space after a parenthesized assignment expression in if/while statements (#1655)Added
--skip-magic-trailing-comma
/-C
to avoid using trailing commas as a reason to split lines (#1824)fixed a crash when PWD=/ on POSIX (#1631)
fixed "I/O operation on closed file" when using --diff (#1664)
Prevent coloured diff output being interleaved with multiple files (#1673)
Added support for PEP 614 relaxed decorator syntax on python 3.9 (#1711)
Added parsing support for unparenthesized tuples and yield expressions in annotated assignments (#1835)
use lowercase hex strings (#1692)
added
--extend-exclude
argument (PR #2005)speed up caching by avoiding pathlib (#1950)
--diff
correctly indicates when a file doesn't end in a newline (#1662)Added
--stdin-filename
argument to allow stdin to respect--force-exclude
rules (#1780)Lines ending with
fmt: skip
will now be not formatted (#1800)PR #2053: Black no longer relies on typed-ast for Python 3.8 and higher
... (truncated)
Sourced from black's changelog.
21.4b0
Black
Fixed a rare but annoying formatting instability created by the combination of optional trailing commas inserted by
Black
and optional parentheses looking at pre-existing "magic" trailing commas. This fixes issue #1629 and all of its many many duplicates. (#2126)
Black
now processes one-line docstrings by stripping leading and trailing spaces, and adding a padding space when needed to break up """". (#1740)
Black
now cleans up leading non-breaking spaces in comments (#2092)
Black
now respects--skip-string-normalization
when normalizing multiline docstring quotes (#1637)
Black
no longer removes all empty lines between non-function code and decorators when formatting typing stubs. NowBlack
enforces a single empty line. (#1646)
Black
no longer adds an incorrect space after a parenthesized assignment expression in if/while statements (#1655)Added
--skip-magic-trailing-comma
/-C
to avoid using trailing commas as a reason to split lines (#1824)fixed a crash when PWD=/ on POSIX (#1631)
fixed "I/O operation on closed file" when using --diff (#1664)
Prevent coloured diff output being interleaved with multiple files (#1673)
Added support for PEP 614 relaxed decorator syntax on python 3.9 (#1711)
Added parsing support for unparenthesized tuples and yield expressions in annotated assignments (#1835)
added
--extend-exclude
argument (PR #2005)speed up caching by avoiding pathlib (#1950)
--diff
correctly indicates when a file doesn't end in a newline (#1662)Added
--stdin-filename
argument to allow stdin to respect--force-exclude
rules (#1780)Lines ending with
fmt: skip
will now be not formatted (#1800)PR #2053: Black no longer relies on typed-ast for Python 3.8 and higher
... (truncated)
7aa574a
0.15.0dadff91
Remove poetryd4b79ea
Lint22d91b2
Black linting5c47b78
Covecov22e338a
Fix CI70cbdef
Travis -> GitHub Actions740af18
Close event loops when replacing thema516134
plugin: Set unused_tcp_port_factory scope to 'session'1bb7f30
refactor: Removed the "_35" and "_36" suffixes from test modules.Sourced from pytest's releases.
6.2.0
pytest 6.2.0 (2020-12-12)
Breaking Changes
- #7808: pytest now supports python3.6+ only.
Deprecations
#7469: Directly constructing/calling the following classes/functions is now deprecated:
_pytest.cacheprovider.Cache
_pytest.cacheprovider.Cache.for_config()
_pytest.cacheprovider.Cache.clear_cache()
_pytest.cacheprovider.Cache.cache_dir_from_config()
_pytest.capture.CaptureFixture
_pytest.fixtures.FixtureRequest
_pytest.fixtures.SubRequest
_pytest.logging.LogCaptureFixture
_pytest.pytester.Pytester
_pytest.pytester.Testdir
_pytest.recwarn.WarningsRecorder
_pytest.recwarn.WarningsChecker
_pytest.tmpdir.TempPathFactory
_pytest.tmpdir.TempdirFactory
These have always been considered private, but now issue a deprecation warning, which may become a hard error in pytest 7.0.0.
#7530: The
--strict
command-line option has been deprecated, use--strict-markers
instead.We have plans to maybe in the future to reintroduce
--strict
and make it an encompassing flag for all strictness related options (--strict-markers
and--strict-config
at the moment, more might be introduced in the future).#7988: The
@pytest.yield_fixture
decorator/function is now deprecated. Use pytest.fixture instead.
yield_fixture
has been an alias forfixture
for a very long time, so can be search/replaced safely.Features
#5299: pytest now warns about unraisable exceptions and unhandled thread exceptions that occur in tests on Python>=3.8. See unraisable for more information.
#7425: New pytester fixture, which is identical to testdir but its methods return pathlib.Path when appropriate instead of
py.path.local
.This is part of the movement to use pathlib.Path objects internally, in order to remove the dependency to
py
in the future.Internally, the old Testdir <_pytest.pytester.Testdir> is now a thin wrapper around Pytester <_pytest.pytester.Pytester>, preserving the old interface.
Sourced from pytest's changelog.
e7073af
Prepare release version 6.2.0683f29f
Merge pull request #8129 from bluetech/docs-pygments-workaround0feeddf
doc: temporary workaround for pytest-pygments lexing errorb478275
Merge pull request #8128 from bluetech/skip-reason-empty3302ff9
terminal: when the skip/xfail is empty, don't show it as "()"59bd0f6
Merge pull request #8126 from bluetech/tox-regen-pretend-scm26298ff1
tox: use pip legacy resolver for regen jobd51ecbd
Merge pull request #8125 from bluetech/tox-rm-pip-reqf237b07
tox: remove requires: pip>=20.3.195e0e19
Merge pull request #8124 from bluetech/s0undt3ch-feature/skip-context-hookb4482ae
0.6.0eaccd3e
Update Changelog2de90cf
Test on 3.962b4c27
Update .travis.yml4083c73
Removed pypy3 for ppc64le26e795b
Update .travis.ymlbd154cf
Update .travis.yml7ae0e2a
Update .travis.yml84eeb6c
Update .travis.ymlc48f5b0
Proxy name and mode propertiesSourced from janus's changelog.
Changes
0.5.0 (2020-04-23)
- Remove explicit loop arguments and forbid creating queues outside event loops #246
0.4.0 (2018-07-28)
- Add
py.typed
macro #89- Drop python 3.4 support and fix minimal version python3.5.3 #88
- Add property with that indicates if queue is closed #86
0.3.2 (2018-07-06)
- Fixed python 3.7 support #97
0.3.1 (2018-01-30)
- Fixed bug with join() in case tasks are added by sync_q.put() #75
0.3.0 (2017-02-21)
- Expose unfinished_tasks property #34
0.2.4 (2016-12-05)
- Restore tarball deploying
0.2.3 (2016-07-12)
- Fix exception type
0.2.2 (2016-07-11)
- Update asyncio.async() to use asyncio.ensure_future() #6
0.2.1 (2016-03-24)
- Fix python setup.py test command #4
d186724
Fix yamldbb2d7b
Fix deploy script18df625
Bump to 0.6.0a50b7ec
Test on ubuntu only, the library has no platform specific dependenciesb599d94
Fix workflow9897fca
Setup github workflowscde6918
Drop Python 3.5, test on Python 3.9, format with black/isort5f04d79
Support Python 3.9 officiallyac23eb7
janus: remove unused type ignores (#287)0da8f95
Make all tests non-skipped againSourced from asgiref's changelog.
3.3.0 (2020-10-09)
- sync_to_async now defaults to thread-sensitive mode being on
- async_to_sync now works inside of forked processes
- WsgiToAsgi now correctly clamps its response body when Content-Length is set
3.2.10 (2020-08-18)
- Fixed bugs due to bad WeakRef handling introduced in 3.2.8
3.2.9 (2020-06-16)
- Fixed regression with exception handling in 3.2.8 related to the contextvars fix.
3.2.8 (2020-06-15)
- Fixed small memory leak in local.Local
- contextvars are now persisted through AsyncToSync
3.2.7 (2020-03-24)
- Bug fixed in local.Local where deleted Locals would occasionally inherit their storage into new Locals due to memory reuse.
3.2.6 (2020-03-23)
- local.Local now works in all threading situations, no longer requires periodic garbage collection, and works with libraries that monkeypatch threading (like gevent)
3.2.5 (2020-03-11)
- self is now preserved on methods by async_to_sync
3.2.4 (2020-03-10)
7dba5ff
Releasing 3.3.0e1e0dd9
Added ZeroCopy extension3834d13
Added rpc.py to Implementations (#198)03b0dbb
Clamped WsgiToAsgi response body using Content-Length valuecfd82e4
Fix linting with unused import removalcc1877e
Fix import sorting in previous commit.7becc9d
Making thread_sensitive=True the default66a6e68
Fixed #194: Made async_to_sync work inside a fork4ab9d8e
Fixed #193: Bumped docs version to 3.01c9d063
Clarified "Optional" meaning (#190)Sourced from pytest's releases.
6.1.0
pytest 6.1.0 (2020-09-26)
Breaking Changes
#5585: As per our policy, the following features which have been deprecated in the 5.X series are now removed:
- The
funcargnames
read-only property ofFixtureRequest
,Metafunc
, andFunction
classes. Usefixturenames
attribute.@pytest.fixture
no longer supports positional arguments, pass all arguments by keyword instead.- Direct construction of
Node
subclasses now raise an error, usefrom_parent
instead.- The default value for
junit_family
has changed toxunit2
. If you require the old format, addjunit_family=xunit1
to your configuration file.- The
TerminalReporter
no longer has awriter
attribute. Plugin authors may use the public functions of theTerminalReporter
instead of accessing theTerminalWriter
object directly.- The
--result-log
option has been removed. Users are recommended to use the pytest-reportlog plugin instead.For more information consult Deprecations and Removals in the docs.
Deprecations
#6981: The
pytest.collect
module is deprecated: all its names can be imported frompytest
directly.#7097: The
pytest._fillfuncargs
function is deprecated. This function was kept for backward compatibility with an older plugin.It's functionality is not meant to be used directly, but if you must replace it, use function._request._fillfixtures() instead, though note this is not a public API and may break in the future.
#7210: The special
-k '-expr'
syntax to-k
is deprecated. Use-k 'not expr'
instead.The special
-k 'expr:'
syntax to-k
is deprecated. Please open an issue if you use this and want a replacement.#7255: The pytest_warning_captured <_pytest.hookspec.pytest_warning_captured> hook is deprecated in favor of pytest_warning_recorded <_pytest.hookspec.pytest_warning_recorded>, and will be removed in a future version.
#7648: The
gethookproxy()
andisinitpath()
methods ofFSCollector
andPackage
are deprecated; useself.session.gethookproxy()
andself.session.isinitpath()
instead. This should work on all pytest versions.Features
- #7667: New
--durations-min
command-line flag controls the minimal duration for inclusion in the slowest list of tests shown by--durations
. Previously this was hard-coded to0.005s
.Improvements
Sourced from pytest's changelog.
868bc00
Prepare release version 6.1.00b327cc
Merge pull request #7796 from bluetech/changelog-cleanupsd3c746e
changelog: some consistency cleanupsd3f47bf
Improved 'Declaring new hooks' section in docs. (#7782)3db2489
Merge pull request #7784 from nicoddemus/use-new-pip-solver-77838215625
Use new pip resolver in plugins tox env5cfd7c0
Merge pull request #7780 from bluetech/finala99ca87
Mark some public and to-be-public classes as @final
050c2df
Use multiple issue template types and mention Discussions (#7739)cdfdb3a
Add docs about reusing fixtures from other projects (#7772)Sourced from black's changelog.
20.8b1
Packaging
- explicitly depend on Click 7.1.2 or newer as
Black
no longer works with versions older than 7.020.8b0
Black
re-implemented support for explicit trailing commas: now it works consistently within any bracket pair, including nested structures (#1288 and duplicates)
Black
now reindents docstrings when reindenting code around it (#1053)
Black
now shows colored diffs (#1266)
Black
is now packaged using 'py3' tagged wheels (#1388)
Black
now supports Python 3.8 code, e.g. star expressions in return statements (#1121)
Black
no longer normalizes capital R-string prefixes as those have a community-accepted meaning (#1244)
Black
now uses exit code 2 when specified configuration file doesn't exit (#1361)
Black
now works on AWS Lambda (#1141)added
--force-exclude
argument (#1032)removed deprecated
--py36
option (#1236)fixed
--diff
output when EOF is encountered (#526)fixed
# fmt: off
handling around decorators (#560)fixed unstable formatting with some
# type: ignore
comments (#1113)fixed invalid removal on organizing brackets followed by indexing (#1575)
introduced
black-primer
, a CI tool that allows us to run regression tests against existing open source users of Black (#1402)introduced property-based fuzzing to our test suite based on Hypothesis and Hypothersmith (#1566)
implemented experimental and disabled by default long string rewrapping (#1132), hidden under a
--experimental-string-processing
flag while it's being worked on;
Sourced from pytest's releases.
6.0.0
pytest 6.0.0 (2020-07-28)
(Please see the full set of changes for this release also in the 6.0.0rc1 notes below)
Breaking Changes
#5584: PytestDeprecationWarning are now errors by default.
Following our plan to remove deprecated features with as little disruption as possible, all warnings of type
PytestDeprecationWarning
now generate errors instead of warning messages.The affected features will be effectively removed in pytest 6.1, so please consult the Deprecations and Removals section in the docs for directions on how to update existing code.
In the pytest
6.0.X
series, it is possible to change the errors back into warnings as a stopgap measure by adding this to yourpytest.ini
file:[pytest] filterwarnings = ignore::pytest.PytestDeprecationWarning
But this will stop working when pytest
6.1
is released.If you have concerns about the removal of a specific feature, please add a comment to #5584.
#7472: The
exec_()
andis_true()
methods of_pytest._code.Frame
have been removed.Features
- #7464: Added support for NO_COLOR and FORCE_COLOR environment variables to control colored output.
Improvements
- #7467:
--log-file
CLI option andlog_file
ini marker now create subdirectories if needed.- #7489: The pytest.raises function has a clearer error message when
match
equals the obtained string but is not a regex match. In this case it is suggested to escape the regex.Bug Fixes
- #7392: Fix the reported location of tests skipped with
@pytest.mark.skip
when--runxfail
is used.
Sourced from pytest's changelog.
41a4539
Add link to 6.0.0rc1 changelog45ced1d
Update doc/en/announce/release-6.0.0.rst1e4b8d4
Prepare release version 6.0.03802982
Support generating major releases using issue comments (#7548)c2c0b7a
Merge pull request #7545 from asottile/pylib_in_docs9818899
remove usage of pylib in docs3a060b7
Revert change to traceback repr (#7535)7ec6401
Change pytest deprecation warnings into errors for 6.0 release (#7362)a9799f0
Merge pull request #7531 from bluetech/changelog-mypy-version102360b
Merge pull request #7519 from hroncok/pytest_warning_captured_deprecated53f3da7
Prepare for releasee99569d
A line is added to the changelog.4099b63
One import is not needed68513b3
Clarify names and comments, according to yanlend comments 26 May907e8f2
FIX new test_cases on python 3.5 & 3.651d986c
To solve test cases that fail:f97e900
1) Test case (test_async_fixtures_with_finalizer) refactoring to pass on pyth...c1131f8
1) A new test case that fails with 0.12.0, and pass with this commit.7a255bc
0.13.0 open for businessb8e2a45
0.12.09a2141e
0.5.0479b7ee
Update README6c247a2
Modernize testseec75d3
Switch to async def wherever possible786c3e9
Prepare for 3.81451075
Update README.rst5db1e38
Add several async os functionsa60f19b
Add async remove function9cf2ac8
Merge pull request #53 from graingert/patch-1b88912c
all should be a List[str]b8e2a45
0.12.006580c6
Update changelogb45de23
Fixed failing test case, 'test_asyncio_marker_without_loop'.238cced
Put event_loop first among the fixtures of asyncio tests, fixes #154.e5e3dc7
Added unittests for issue #154.a7e5795
0.12.0 open for business!1026c39
0.11.0ab2b140
Test on Python 3.8, drop 3.3 and 3.46397a22
plugin: Use pytest 5.4.0 new Function API21a0f94
Replace yield_fixture() by fixture()Sourced from pytest's releases.
5.4.1
pytest 5.4.1 (2020-03-13)
Bug Fixes
#6909: Revert the change introduced by #6330, which required all arguments to
@pytest.mark.parametrize
to be explicitly defined in the function signature.The intention of the original change was to remove what was expected to be an unintended/surprising behavior, but it turns out many people relied on it, so the restriction has been reverted.
#6910: Fix crash when plugins return an unknown stats while using the
--reportlog
option.
Sourced from pytest's changelog.
3d0f3ba
Preparing release version 5.4.1b9e2cd0
Merge pull request #6914 from nicoddemus/revert-6330a84fcbf
Revert "[parametrize] enforce explicit argnames declaration (#6330)"59c1bfa
Merge pull request #6913 from nicoddemus/backport-69103267f64
Merge pull request #6910 from nicoddemus/resultlog-logreportc9fd1bd
Preparing release version 5.4.093aa988
Merge pull request #6901 from RonnyPfannschmidt/regendoc-fix-simple7996724
Merge pull request #6902 from RoyalTS/filterwarnings-docfix90ee8a7
docfix378a75d
run and fix tox -e regen to prepare 5.4Sourced from jinja2's releases.
2.11.1
This fixes an issue in async environment when indexing the result of an attribute lookup, like
{{ data.items[1:] }}
.
Sourced from jinja2's changelog.
Version 2.11.1
Released 2020-01-30
- Fix a bug that prevented looking up a key after an attribute (
{{ data.items[1:] }}
) in an async template. 1141Version 2.11.0
Released 2020-01-27
... (truncated)
- Drop support for Python 2.6, 3.3, and 3.4. This will be the last version to support Python 2.7 and 3.5.
- Added a new
ChainableUndefined
class to support getitem and getattr on an undefined object. 977- Allow
{%+
syntax (with NOP behavior) whenlstrip_blocks
is disabled. 748- Added a
default
parameter for themap
filter. 557- Exclude environment globals from meta.find_undeclared_variables. 931
- Float literals can be written with scientific notation, like 2.56e-3. 912, 922
- Int and float literals can be written with the '_' separator for legibility, like 12_345. 923
- Fix a bug causing deadlocks in
LRUCache.setdefault
. 1000- The
trim
filter takes an optional string of characters to trim. 828- A new
jinja2.ext.debug
extension adds a{% debug %}
tag to quickly dump the current context and available filters and tests. 174, 798, 983- Lexing templates with large amounts of whitespace is much faster. 857, 858
- Parentheses around comparisons are preserved, so
{{ 2 * (3 < 5) }}
outputs "2" instead of "False". 755, 938- Add new
boolean
,false
,true
,integer
andfloat
tests. 824- The environment's
finalize
function is only applied to the output of expressions (constant or not), not static template data. 63- When providing multiple paths to
FileSystemLoader
, a template can have the same name as a directory. 821- Always return Undefined when omitting the
else
clause in a{{ 'foo' if bar }}
expression, regardless of the environment'sundefined
class. Omitting theelse
clause is a valid shortcut and should not raise an error when using StrictUndefined. 710, 1079- Fix behavior of
loop
control variables such aslength
andrevindex0
when looping over a generator. 459, 751, 794, 993- Async support is only loaded the first time an environment enables it, in order to avoid a slow initial import. 765
- In async environments, the
|map
filter will await the filter call if needed. 913- In for loops that access
loop
attributes, the iterator is not advanced ahead of the current iteration unlesslength
,revindex
,nextitem
, orlast
are accessed. This makes it less likely to breakgroupby
results. 555, 1101- In async environments, the
loop
attributeslength
andrevindex
work for async iterators. 1101- In async environments, values from attribute/property access will be awaited if needed. 1101
- ~loader.PackageLoader doesn't depend on setuptools or pkg_resources. 970
PackageLoader
has limited support for 420 namespace packages. 1097- Support os.PathLike objects in ~loader.FileSystemLoader and ~loader.ModuleLoader. 870
- ~nativetypes.NativeTemplate correctly handles quotes between expressions.
"'{{ a }}', '{{ b }}'"
renders as the tuple('1', '2')
rather than the string'1, 2'
. 1020- Creating a ~nativetypes.NativeTemplate directly creates a ~nativetypes.NativeEnvironment instead of a default Environment. 1091
- After calling
LRUCache.copy()
, the copy's queue methods point to the correct queue. 843- Compiling templates always writes UTF-8 instead of defaulting to the system encoding. 889
|wordwrap
filter treats existing newlines as separate paragraphs to be wrapped individually, rather than creating short intermediate lines. 175- Add
break_on_hyphens
parameter to|wordwrap
filter. 550- Cython compiled functions decorated as context functions will be passed the context. 1108
- When chained comparisons of constants are evaluated at compile time, the result follows Python's behavior of returning
False
if any comparison returnsFalse
, rather than only the last one. 1102- Tracebacks for exceptions in templates show the correct line numbers and source for Python >= 3.7. 1104
- Tracebacks for template syntax errors in Python 3 no longer show internal compiler frames. 763
- Add a
DerivedContextReference
node that can be used by extensions to get the current context and local variables such asloop
. 860- Constant folding during compilation is applied to some node types that were previously overlooked. 733
TemplateSyntaxError.source
is not empty when raised from an included template. 457
b85283e
release version 2.11.13d5bfc6
Merge pull request #1143 from pallets/bugfix/attribute-accessd61c1ea
add changelog15d7e61
Added regression test for slicing of attributes05dee9b
Fix attribute access in async code. Fixes #1141bbdafe3
release version 2.11.09ff27f6
add python 3.8 classifier, clean up changelogd312609
isolate bytecode cache tests9849979
import Markup from markupsafe, fix flake8 import warningsc6d864c
increment bytecode cache versionSourced from janus's changelog.
0.5.0 (2020-04-23)
- Remove explicit loop arguments and forbid creating queues outside event loops #246
0.4.0 (2018-07-28)
- Add
py.typed
macro #89- Drop python 3.4 support and fix minimal version python3.5.3 #88
- Add property with that indicates if queue is closed #86
0.3.2 (2018-07-06)
- Fixed python 3.7 support #97
0.3.1 (2018-01-30)
- Fixed bug with join() in case tasks are added by sync_q.put() #75
0.3.0 (2017-02-21)
- Expose unfinished_tasks property #34
0.2.4 (2016-12-05)
- Restore tarball deploying
0.2.3 (2016-07-12)
- Fix exception type
0.2.2 (2016-07-11)
- Update asyncio.async() to use asyncio.ensure_future() #6
0.2.1 (2016-03-24)
- Fix python setup.py test command #4
0.2.0 (2015-09-20)
... (truncated)
8e89b45
Bump to 0.5.0ec8592b
Fix up Python 3.8 loop argument warnings (#246)2543af6
Bump coverage from 5.0.4 to 5.103d1b36
Bump tox from 3.14.5 to 3.14.68219c38
Bump coverage from 5.0.3 to 5.0.485ec71d
Bump pytest from 5.4.0 to 5.4.13b974c9
Bump pytest from 5.3.5 to 5.4.0282dc12
Bump mypy from 0.761 to 0.7701364fb3
Bump tox from 3.14.4 to 3.14.5dc519bb
Bump tox from 3.14.3 to 3.14.43d6e7b4
v1.3.0 - support additive merging of Counter
types56a258a
v1.2.1 - tidy docs and variable names61ab213
v1.2.0 - support both TYPESAFE_REPLACE and TYPESAFE_ADDITIVE merge strategies...b331bb5
cleanup Makefile6f577bf
officially label support for python3.884faf37
use pipenv for managing dev dependencies3a8761a
Update README.md1026c39
0.11.0ab2b140
Test on Python 3.8, drop 3.3 and 3.46397a22
plugin: Use pytest 5.4.0 new Function API21a0f94
Replace yield_fixture() by fixture()964b295
Added min hypothesis version so that bugfix for https://github.com/Hypothesis...4a11a20
Add max supported pytest version to < 5.4.0 to prevent fails until #141 is fi...b305594
Change event_loop to module scope in hypothesis tests, fixing #145.d5a0f47
Enable test_subprocess to be run on win, by changing to ProactorEventLoop in ...d07cd2d
Fix required pytest version86cd9a6
Handle BaseExceptions from loop.run_until_complete (#126)