A lot of features and smaller bug fixes! But also with a heavy heart, we're leaving the last dataclass-less Python version (3.6) behind, but don't worry: the old versions aren't going anywhere and thanks to the magic of package metadata, pip install attrs should still work on Python 3.6 as if nothing happened.
Special Thanks
This release would not be possible without my generous sponsors! Thank you to all of you making sustainable maintenance possible! If you would like to join them, go to https://github.com/sponsors/hynek and check out the sweet perks!
Removed rsyncdir support. This makes pytest-cov compatible with xdist 3.0.
Contributed by Sorin Sbarnea in [#558](https://github.com/pytest-dev/pytest-cov/issues/558) <https://github.com/pytest-dev/pytest-cov/pull/558>_.
Optimized summary generation to not be performed if no reporting is active (for example,
when --cov-report='' is used without --cov-fail-under).
Contributed by Jonathan Stewmon in [#589](https://github.com/pytest-dev/pytest-cov/issues/589) <https://github.com/pytest-dev/pytest-cov/pull/589>_.
Added support for JSON reporting.
Contributed by Matthew Gamble in [#582](https://github.com/pytest-dev/pytest-cov/issues/582) <https://github.com/pytest-dev/pytest-cov/pull/582>_.
Refactored code to use f-strings.
Contributed by Mark Mayo in [#572](https://github.com/pytest-dev/pytest-cov/issues/572) <https://github.com/pytest-dev/pytest-cov/pull/572>_.
Fixed a skip in the test suite for some old xdist.
Contributed by a bunch of people in [#565](https://github.com/pytest-dev/pytest-cov/issues/565) <https://github.com/pytest-dev/pytest-cov/pull/565>_.
Output a proper error message when an invalid asyncio_mode is selected.
Extend warning message about unclosed event loops with additional possible cause.
#531
Previously, some tests reported "skipped" or "xfailed" as a result. Now all tests report a "success" result.
pytest-asyncio 0.21.0
0.21.0 (23-03-19)
Drop compatibility with pytest 6.1. Pytest-asyncio now depends on pytest 7.0 or newer.
pytest-asyncio cleans up any stale event loops when setting up and tearing down the
event_loop fixture. This behavior has been deprecated and pytest-asyncio emits a
DeprecationWarning when tearing down the event_loop fixture and current event loop
has not been closed.
[orm] [bug] Adjusted the ORM's interpretation of the "target" entity used within
Update and Delete to not interfere with the target
"from" object passed to the statement, such as when passing an ORM-mapped
_orm.aliased construct that should be maintained within a phrase
like "UPDATE FROM". Cases like ORM session synchonize using "SELECT"
statements such as with MySQL/ MariaDB will still have issues with
UPDATE/DELETE of this form so it's best to disable synchonize_session when
using DML statements of this type.
[orm] [bug] Added new capability to the _orm.selectin_polymorphic() loader option
which allows other loader options to be bundled as siblings, referring to
one of its subclasses, within the sub-options of parent loader option.
Previously, this pattern was only supported if the
_orm.selectin_polymorphic() were at the top level of the options for
the query. See new documentation section for example.
As part of this change, improved the behavior of the
_orm.Load.selectin_polymorphic() method / loader strategy so that the
subclass load does not load most already-loaded columns from the parent
table, when the option is used against a class that is already being
relationship-loaded. Previously, the logic to load only the subclass
columns worked only for a top level class load.
[engine] [bug] Fixed a series of reflection issues affecting the PostgreSQL,
MySQL/MariaDB, and SQLite dialects when reflecting foreign key constraints
where the target column contained parenthesis in one or both of the table
name or column name.
[sql] [usecase] Adjusted the _types.Enum datatype to accept an argument of
None for the _types.Enum.length parameter, resulting in a
VARCHAR or other textual type with no length in the resulting DDL. This
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 tests group in /tests with 5 updates:
22.1.0
23.1.0
1.10.2
2.4.2
4.0.0
4.1.0
0.20.3
0.21.1
1.4.45
2.0.21
Updates
attrs
from 22.1.0 to 23.1.0Release notes
Sourced from attrs's releases.
... (truncated)
Changelog
Sourced from attrs's changelog.
... (truncated)
Commits
1e2f6f9
Prepare 23.1.03786d5a
Fix next versiona7e1a56
Fix missing backtickdadc020
Fix links broken by pyright removing their transform specbef2f52
Added example for version docstrings to PR template (#1127)c4c6fdd
Add literal string support to include and exclude filters (#1068)e4c9f27
CONTRIBUTING: Small improvements (#1123)683d056
Cull trove classifiersc8b342d
Deprecate zope-interface support (#1120)d1aaeee
Remove special-casing of pretend version for pytest (#1124)Updates
pydantic
from 1.10.2 to 2.4.2Release notes
Sourced from pydantic's releases.
... (truncated)
Changelog
Sourced from pydantic's changelog.
... (truncated)
Commits
d1634da
Prepare relese 2.4.2 (#7671)0e33bd0
Update Pydantic V1 to 1.10.13 (#7675)154e679
docs: Mixing of V1/V2 models is not supported in generics (#7663)7193693
Added small note to use ValidationInfo over FieldValidationInfo. (#7670)1377c04
Fix xfailed test for generic model signatures (#7658)ea9aa13
Fix models_json_schema for generic models (#7654)97c0199
Fix json schema generation for recursive models (#7653)861cfe3
Revert "Fix typo in docs for new private dunder pydantic method names (#7657)...24e9222
Fix typo in docs for new private dunder pydantic method names (#7657)c04e8e2
Correct allowed formats fordatetime.timedelta
parsing in docs (#7652)Updates
pytest-cov
from 4.0.0 to 4.1.0Changelog
Sourced from pytest-cov's changelog.
Commits
2c9f217
Bump version: 4.0.0 → 4.1.04d245df
Update changelog and authors.7b095c8
Skip starting from xdist 3.0.2 (where boxed was removed).605d690
disabling boxed test if version xdist newer than 2.5.076fb2a6
introduced f-strings0d63ede
Update test config. Reapply some of the changes from PR567 to the right file ...f3d8d83
Add support for JSON reporterdec02ab
Update test deps.88a7d34
chore: update AUTHORS and CHANGELOG74eb4cc
perf: only call summary when the report will be usedUpdates
pytest-asyncio
from 0.20.3 to 0.21.1Release notes
Sourced from pytest-asyncio's releases.
Commits
a10cbde
[docs] Fixed typo.82b010d
[docs] Add release date of v0.21.1 to changelog.af08b1c
[test] Removed obsolete test "test_async_close_loop".79b2d1a
[test] Added a test case which verifies compatibility with pytest.skip in aut...39a9754
[test] The test that asserts compatibility with pytest.mark.skip reports succ...a26b6dd
[test] Added a test case which verifies compatibility with pytest.mark.xfail ...7fa36f2
[test] The test that asserts compatibility with pytest.mark.xfail reports suc...df88119
[docs] Improved readbility of headings on the fixtures reference in the docs.75a1a6c
[feat] Extend warning message about unclosed event loops with additional poss...1821542
[docs] Explain that scopes of event_loop fixtures should not overlap.Updates
sqlalchemy
from 1.4.45 to 2.0.21Release notes
Sourced from sqlalchemy's releases.
... (truncated)
Commits
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