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] [usecase] Added method _orm.Session.get_one() that behaves like
_orm.Session.get() but raises an exception instead of returning
None if no instance was found with the provided primary key.
Pull request courtesy of Carlos Sousa.
[orm] [usecase] Added an option to permanently close sessions.
Set to False the new parameter _orm.Session.close_resets_only
will prevent a _orm.Session from performing any other
operation after _orm.Session.close() has been called.
Added new method _orm.Session.reset() that will reset a _orm.Session
to its initial state. This is an alias of _orm.Session.close(),
unless _orm.Session.close_resets_only is set to False.
[orm] [bug] Fixed a wide range of _orm.mapped_column() parameters that were not
being transferred when using the _orm.mapped_column() object inside
of a pep-593 Annotated object, including
_orm.mapped_column.sort_order,
_orm.mapped_column.deferred,
_orm.mapped_column.autoincrement,
_orm.mapped_column.system, _orm.mapped_column.info
etc.
Additionally, it remains not supported to have dataclass arguments, such as
_orm.mapped_column.kw_only,
_orm.mapped_column.default_factory etc. indicated within the
_orm.mapped_column() received by Annotated, as this is not
supported with pep-681 Dataclass Transforms. A warning is now emitted when
these parameters are used within Annotated in this way (and they
continue to be ignored).
[orm] [bug] Fixed issue where calling _engine.Result.unique() with a new-style
select() query in the ORM, where one or more columns yields values
that are of "unknown hashability", typically when using JSON functions like
func.json_build_object() without providing a type, would fail
internally when the returned values were not actually hashable. The
behavior is repaired to test the objects as they are received for
This major release includes a brand new search implementation that is faster
and allows for rich previews, advanced tokenization and better highlighting.
It was available as part of Insiders for over a year, and now that the funding
goal was hit, makes its way into the community edition.
Changes to mkdocs.yml
content.code.copy
The copy-to-clipboard buttons are now opt-in and can be enabled or disabled
per block. If you wish to enable them for all code blocks, add the following
lines to mkdocs.yml:
theme:
features:
- content.code.copy
content.action.*
A "view source" button can be shown next to the "edit this page" button, both
of which must now be explicitly enabled. Add the following lines to
mkdocs.yml:
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 build group with 7 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.22
0.8.0
0.8.1
8.5.11
9.4.6
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.22Release notes
Sourced from sqlalchemy's releases.
... (truncated)
Commits
Updates
markdown-include
from 0.8.0 to 0.8.1Release notes
Sourced from markdown-include's releases.
Commits
8da79f0
Merge pull request #43 from cmacmackin/fix-inherit-heading-depth5135d01
Use more explicitstr.splitlines()
7ae38cb
FixinheritHeadingDepth
adding extra newlines4e08bb8
Remove sha-bang0ffd510
Expand gitignoreaa4a380
Simplify test resource directory pathUpdates
mkdocs-material
from 8.5.11 to 9.4.6Release notes
Sourced from mkdocs-material's releases.
... (truncated)
Changelog
Sourced from mkdocs-material's changelog.
... (truncated)
Upgrade guide
Sourced from mkdocs-material's upgrade guide.
... (truncated)
Commits
2742a70
Updated Insiders changelog1990b21
Prepare 9.4.6 release7fa5ea0
Updated Danish translations2800e7e
Fixed blog post metadata layout on small screensc516ddf
Updated dependenciese20cf0b
Updated Norwegian (Nynorsk) translations39e1251
Install extras from local package for development environment setup (#6189)c3683b2
Escaped snippet syntax in code block example (#6183)81a9437
Updated READMEfe69add
Prepare 9.4.5 releaseDependabot 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