#11237: Fix doctest collection of functools.cached_property objects.
#11306: Fixed bug using --importmode=importlib which would cause package __init__.py files to be imported more than once in some cases.
#11367: Fixed bug where user_properties where not being saved in the JUnit XML file if a fixture failed during teardown.
#11394: Fixed crash when parsing long command line arguments that might be interpreted as files.
Improved Documentation
#11391: Improved disclaimer on pytest plugin reference page to better indicate this is an automated, non-curated listing.
pytest 7.4.1 (2023-09-02)
Bug Fixes
#10337: Fixed bug where fake intermediate modules generated by --import-mode=importlib would not include the
child modules as attributes of the parent modules.
#10702: Fixed error assertion handling in pytest.approx when None is an expected or received value when comparing dictionaries.
#10811: Fixed issue when using --import-mode=importlib together with --doctest-modules that caused modules
to be imported more than once, causing problems with modules that have import side effects.
The library provides useful fixtures for creation test aiohttp server and client.
Installation
.. code-block:: console
$ pip install pytest-aiohttp
Add asyncio_mode = auto line to pytest configuration <https://docs.pytest.org/en/latest/customize.html>_ (see pytest-asyncio modes <https://github.com/pytest-dev/pytest-asyncio#modes>_ for details). The plugin works
with strict mode also.
Usage
Write tests in pytest-asyncio <https://github.com/pytest-dev/pytest-asyncio>_ style
using provided fixtures for aiohttp test server and client creation. The plugin provides
resources cleanup out-of-the-box.
Due to various issues, the previous release (23.9.0) did not include compiled mypyc
wheels, which make Black significantly faster. These issues have now been fixed, and
this release should come with compiled wheels once again.
There will be no wheels for Python 3.12 due to a bug in mypyc. We will provide 3.12
wheels in a future release as soon as the mypyc bug is fixed.
Store raw tuples instead of NamedTuples in Black's cache, improving performance and
decreasing the size of the cache (#3877)
23.9.0
Preview style
More concise formatting for dummy implementations (#3796)
In stub files, add a blank line between a statement with a body (e.g an
if sys.version_info > (3, x):) and a function definition on the same level (#3862)
Fix a bug whereby spaces were removed from walrus operators within subscript(#3823)
Configuration
Black now applies exclusion and ignore logic before resolving symlinks (#3846)
Performance
Avoid importing IPython if notebook cells do not contain magics (#3782)
Improve caching by comparing file hashes as fallback for mtime and size (#3821)
Blackd
Fix an issue in blackd with single character input (#3558)
Integrations
Black now has an
official pre-commit mirror. Swapping
https://github.com/psf/black to https://github.com/psf/black-pre-commit-mirror in
your .pre-commit-config.yaml will make Black about 2x faster (#3828)
The .black.env folder specified by ENV_PATH will now be removed on the completion
of the GitHub Action (#3759)
Due to various issues, the previous release (23.9.0) did not include compiled mypyc
wheels, which make Black significantly faster. These issues have now been fixed, and
this release should come with compiled wheels once again.
There will be no wheels for Python 3.12 due to a bug in mypyc. We will provide 3.12
wheels in a future release as soon as the mypyc bug is fixed.
Store raw tuples instead of NamedTuples in Black's cache, improving performance and
decreasing the size of the cache (#3877)
23.9.0
Preview style
More concise formatting for dummy implementations (#3796)
In stub files, add a blank line between a statement with a body (e.g an
if sys.version_info > (3, x):) and a function definition on the same level (#3862)
Fix a bug whereby spaces were removed from walrus operators within subscript(#3823)
Configuration
Black now applies exclusion and ignore logic before resolving symlinks (#3846)
Performance
Avoid importing IPython if notebook cells do not contain magics (#3782)
Improve caching by comparing file hashes as fallback for mtime and size (#3821)
Blackd
Fix an issue in blackd with single character input (#3558)
Integrations
Black now has an
official pre-commit mirror. Swapping
https://github.com/psf/black to https://github.com/psf/black-pre-commit-mirror in
your .pre-commit-config.yaml will make Black about 2x faster (#3828)
The .black.env folder specified by ENV_PATH will now be removed on the completion
of the GitHub Action (#3759)
Improve backwards compatibility with deprecated CLI practices. (#4048)
v68.2.1
Bugfixes
Avoid using caching attributes in Distribution.metadata for requirements.
This is done for backwards compatibility with customizations that attempt to
modify install_requires or extras_require at a late point (still not
recommended). (#4043)
Rework how setuptools internally handles dependencies/install_requires
and optional-dependencies/extras_require. (#3903)
Improve the generated PKG-INFO files, by adding Requires-Dist fields.
Previously, these fields would be omitted in favour of a non-standard
*.egg-info/requires.txt file (which is still generated for the time being). (#3904)
Improve atomicity when writing PKG-INFO files to avoid race
conditions with importlib.metadata. (#3904)
Bugfixes
Fix the name given to the *-nspkg.pth files in editable installs,
ensuring they are unique per distribution. (#4041)
Workaround some limitations on pkg_resources-style legacy namespaces in
the meta path finder for editable installations. (#4041)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the packages group with 6 updates:
7.4.0
7.4.2
1.0.4
1.0.5
1.1.320
1.1.329
23.7.0
23.9.1
68.0.0
68.2.2
0.41.1
0.41.2
Updates
pytest
from 7.4.0 to 7.4.2Release notes
Sourced from pytest's releases.
Commits
45f34df
Prepare release version 7.4.2e4f022f
Merge pull request #11406 from nicoddemus/backport-11404-to-7.4.x63b0c6f
Use _pytest.pathlib.safe_exists in get_dirs_from_args884b911
Fix crash when passing a very long cmdline argument (#11404)6e49a74
[7.4.x] Fix doctest collection offunctools.cached_property
objects. (#11403)79c2012
[7.4.x] doc: Remove done training (#11400)de69883
[7.4.x] improve plugin list disclaimer (#11398)1de00e9
[7.4.x] Fix import_path for packages (#11395)7f5d9b9
Fix user_properties not saved to XML if fixture errors during teardown (#11382)82eb86f
Merge pull request #11377 from pytest-dev/release-7.4.1Updates
pytest-aiohttp
from 1.0.4 to 1.0.5Release notes
Sourced from pytest-aiohttp's releases.
... (truncated)
Changelog
Sourced from pytest-aiohttp's changelog.
Commits
74b6faf
Release 1.0.521112c0
[pre-commit.ci] pre-commit autoupdate (#51)e8c8cfd
[pre-commit.ci] pre-commit autoupdate (#45)49d9b35
Add CodeQL workflow for GitHub code scanning (#46)a6a2533
Usepytest.hookimpl
inpytest_configure
(#49)9aea81e
Update check-jsonschema URL and version (#48)a2c68a8
[pre-commit.ci] pre-commit autoupdate (#44)74afa87
[pre-commit.ci] pre-commit autoupdate (#42)fca6a97
[pre-commit.ci] pre-commit autoupdate (#41)a4218fa
[pre-commit.ci] pre-commit autoupdate (#39)Updates
pyright
from 1.1.320 to 1.1.329Commits
316becd
[pyright updated to 1.1.329] Update Version (#215)6dfc32b
Pyright NPM Package update to 1.1.328 (#212)08504df
[pyright updated to 1.1.327] Update Version (#211)e9a3723
docs: fix typo, optionnaly -> optionally (#210)4556ca5
[pyright updated to 1.1.326] Update Version (#208)273d353
[pyright updated to 1.1.325] Update Version (#206)40ea98f
[pyright updated to 1.1.324] Update Version (#205)3b16e8d
[pyright updated to 1.1.323] Update Version (#204)6d6e573
Pyright NPM Package update to 1.1.322 (#202)b8fe053
[pyright updated to 1.1.321] Update Version (#201)Updates
black
from 23.7.0 to 23.9.1Release notes
Sourced from black's releases.
Changelog
Sourced from black's changelog.
Commits
e877371
Prepare release 23.9.1 (#3878)62dca32
mypyc builds on PRs, skip mypyc wheels for 3.12 (#3870)751583a
Pickle raw tuples in FileData cache (#3877)f791745
Re-export black.Mode (#3875)0b62b9c
Ignore aiohttp DeprecationWarning for 3.12 (#3876)c83ad6c
Upgrade to Furo 2023.9.10 to fix docs build (#3873)4eebfd1
Add mypyc test marks to new tests that patch (#3871)add161b
Bump RTD Python version from 3.8 to 3.11 (#3868)4e93f2a
Add classifier for 3.12 (#3866)716fa08
Upgrade mypy (#3864)Updates
setuptools
from 68.0.0 to 68.2.2Changelog
Sourced from setuptools's changelog.
... (truncated)
Commits
2255e63
Bump version: 68.2.1 → 68.2.274cc26c
Improve backwards compatibility with deprecated CLI practices (#4048)e3d5edd
Fix import statement on quickstart guide (#4049)5f29762
fix import statement on quickstart guidefacbb75
Add news fragment7b7971e
Set requirements attributes directly into dist when parsing pyproject.toml566f294
Test command line parsing of '--version' interoperates with pyproject.toml0120605
Bump version: 68.2.0 → 68.2.16e1bd6b
Fix bumpversion stated30aaa5
Update test deps (#4045)Updates
wheel
from 0.41.1 to 0.41.2Changelog
Sourced from wheel's changelog.
... (truncated)
Commits
e76040b
Created a new release1a0e0f2
Produce correct ABI tags for GraalPy (#557)3ec347d
[pre-commit.ci] pre-commit autoupdate (#562)3856f7c
Skip adding directories to RECORD withwheel tags
(#559)2c779d9
Remove use of OrderedDict, simplify a str concat (#561)2008f0b
Fixed 32-bit platform tag detection (#560)2bf5bb0
[pre-commit.ci] pre-commit autoupdate (#556)5460ca2
docs: use modern readthedocs build image selection (#554)588ea85
chore: use 2x faster black mirror (#555)943bfc1
[pre-commit.ci] pre-commit autoupdate (#553)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show