Bump attrs from 21.4.0 to 22.1.0
Bumps attrs from 21.4.0 to 22.1.0.
Release notes
Sourced from attrs's releases.
22.1.0
Highlights
The main features of this release are:
- The departure of Python 2.7 (enjoy your retirement!),
- and the arrival of Python 3.11.
We had loftier goals feature-wise, but didn't want to block others embracing Python 3.11.
❤️ Huge thanks to my GitHub sponsors, Tidelift subscribers, and Ko-fi buyers! ❤️
None of my projects would exist in their current form without you!
Full Changelog
Backwards-incompatible Changes
Python 2.7 is not supported anymore.
Dealing with Python 2.7 tooling has become too difficult for a volunteer-run project.
We have supported Python 2 more than 2 years after it was officially discontinued and feel that we have paid our dues. All version up to 21.4.0 from December 2021 remain fully functional, of course. #936
The deprecated
cmpattribute ofattrs.Attributehas been removed. This does not affect the cmp argument toattr.sthat can be used as a shortcut to set eq and order at the same time. #939Changes
- Instantiation of frozen slotted classes is now faster. #898
- If an
eqkey is defined, it is also used before hashing the attribute. #909- Added
attrs.validators.min_len(). #916attrs.validators.deep_iterable()'s member_validator argument now also accepts a list of validators and wraps them in anattrs.validators.and_(). #925- Added missing type stub re-imports for
attrs.convertersandattrs.filters. #931- Added missing stub for
attr(s).cmp_using(). #949attrs.validators._in()'sValueErroris not missing the attribute, expected options, and the value it got anymore. #951- Python 3.11 is now officially supported. #969
Changelog
Sourced from attrs's changelog.
22.1.0 (2022-07-28)
Backwards-incompatible Changes ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Python 2.7 is not supported anymore.
Dealing with Python 2.7 tooling has become too difficult for a volunteer-run project.
We have supported Python 2 more than 2 years after it was officially discontinued and feel that we have paid our dues. All version up to 21.4.0 from December 2021 remain fully functional, of course.
[#936](https://github.com/python-attrs/attrs/issues/936) <https://github.com/python-attrs/attrs/issues/936>_The deprecated
cmpattribute ofattrs.Attributehas been removed. This does not affect the cmp argument toattr.sthat can be used as a shortcut to set eq and order at the same time.[#939](https://github.com/python-attrs/attrs/issues/939) <https://github.com/python-attrs/attrs/issues/939>_Changes ^^^^^^^
- Instantiation of frozen slotted classes is now faster.
[#898](https://github.com/python-attrs/attrs/issues/898) <https://github.com/python-attrs/attrs/issues/898>_- If an
eqkey is defined, it is also used before hashing the attribute.[#909](https://github.com/python-attrs/attrs/issues/909) <https://github.com/python-attrs/attrs/issues/909>_- Added
attrs.validators.min_len().[#916](https://github.com/python-attrs/attrs/issues/916) <https://github.com/python-attrs/attrs/issues/916>_attrs.validators.deep_iterable()'s member_validator argument now also accepts a list of validators and wraps them in anattrs.validators.and_().[#925](https://github.com/python-attrs/attrs/issues/925) <https://github.com/python-attrs/attrs/issues/925>_- Added missing type stub re-imports for
attrs.convertersandattrs.filters.[#931](https://github.com/python-attrs/attrs/issues/931) <https://github.com/python-attrs/attrs/issues/931>_- Added missing stub for
attr(s).cmp_using().[#949](https://github.com/python-attrs/attrs/issues/949) <https://github.com/python-attrs/attrs/issues/949>_attrs.validators._in()'sValueErroris not missing the attribute, expected options, and the value it got anymore.[#951](https://github.com/python-attrs/attrs/issues/951) <https://github.com/python-attrs/attrs/issues/951>_- Python 3.11 is now officially supported.
[#969](https://github.com/python-attrs/attrs/issues/969) <https://github.com/python-attrs/attrs/issues/969>_
Commits
b3dfebePrepare 22.1.0c89abcdIt totally is correct9f118b7Tune first stepsa3d7f20Polish contributing guide899497fClarify (c) ownership696fd78Hyphenate compound adjectives65c0683Use NG APIs in glossary5d84d9aMove mypy config to pyproject.toml1590917Update readme.rst (#986)a67c84fAdd more prominent callout about slots to API docs- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Codecov Report
Merging #2387 (66b7537) into master (902890c) will increase coverage by
0.03%. The diff coverage isn/a.
@@ Coverage Diff @@
## master #2387 +/- ##
==========================================
+ Coverage 98.98% 99.02% +0.03%
==========================================
Files 119 119
Lines 16165 16165
Branches 3101 3101
==========================================
+ Hits 16001 16007 +6
+ Misses 114 111 -3
+ Partials 50 47 -3
| Impacted Files | Coverage Δ | |
|---|---|---|
| trio/tests/test_ssl.py | 99.86% <0.00%> (+0.55%) |
:arrow_up: |
| trio/_highlevel_ssl_helpers.py | 100.00% <0.00%> (+11.76%) |
:arrow_up: |
@dependabot please rebase