We had to revert the recursive feature for attr.evolve() because it broke some use-cases -- sorry!
[#806](https://github.com/python-attrs/attrs/issues/806) <https://github.com/python-attrs/attrs/issues/806>_
Python 3.4 is now blocked using packaging metadata because attrs can't be imported on it anymore.
To ensure that 3.4 users can keep installing attrs easily, we will yank <https://pypi.org/help/#yanked>_ 21.1.0 from PyPI.
This has no consequences if you pin attrs to 21.1.0.
[#807](https://github.com/python-attrs/attrs/issues/807) <https://github.com/python-attrs/attrs/issues/807>_
21.1.0 (2021-05-06)
Deprecations
^^^^^^^^^^^^
The long-awaited, much-talked-about, little-delivered import attrs is finally upon us!
Since the NG APIs have now been proclaimed stable, the next release of attrs will allow you to actually import attrs.
We're taking this opportunity to replace some defaults in our APIs that made sense in 2015, but don't in 2021.
So please, if you have any pet peeves about defaults in attrs's APIs, now is the time to air your grievances in #487!
We're not gonna get such a chance for a second time, without breaking our backward-compatibility guarantees, or long deprecation cycles.
Therefore, speak now or forever hold you peace!
[#487](https://github.com/python-attrs/attrs/issues/487) <https://github.com/python-attrs/attrs/issues/487>_
The cmp argument to attr.s() and attr.ib() has been undeprecated
It will continue to be supported as syntactic sugar to set eq and order in one go.
I'm terribly sorry for the hassle around this argument!
The reason we're bringing it back is it's usefulness regarding customization of equality/ordering.
The cmp attribute and argument on attr.Attribute remains deprecated and will be removed later this year.
[#773](https://github.com/python-attrs/attrs/issues/773) <https://github.com/python-attrs/attrs/issues/773>_
Changes
^^^^^^^
It's now possible to customize the behavior of eq and order by passing in a callable.
[#435](https://github.com/python-attrs/attrs/issues/435) <https://github.com/python-attrs/attrs/issues/435>,
[#627](https://github.com/python-attrs/attrs/issues/627) <https://github.com/python-attrs/attrs/issues/627>
The instant favorite next-generation APIs <https://www.attrs.org/en/stable/api.html#next-gen>_ are not provisional anymore!
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 ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on attrs to permit the latest version.
Release notes
Sourced from attrs's releases.
Changelog
Sourced from attrs's changelog.
... (truncated)
Commits
83d3cd7
Prepare 21.2.0f83dabb
That comma is not necessary744a790
Clarify yanking of 21.18076287
Create 807.breaking.rst966c220
Declare Python 3.4 as incompatible (#807)f10d050
Revert recursive evolve (#806)24a2c1e
Start new cycleb22195e
Prepare 21.1.0c5ae43f
Pin towncrier503164f
Fix changelog template for towncrier 21.3.0Dependabot 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 ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)