Skip to content

Commit b3dfebe

Browse files
committed
Prepare 22.1.0
1 parent c89abcd commit b3dfebe

12 files changed

+40
-23
lines changed

CHANGELOG.rst

+39-6
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,49 @@ Whenever there is a need to break compatibility, it is announced here in the cha
1717

1818
However if you intend to build extensions on top of ``attrs`` you have to anticipate that.
1919

20-
Changes for the upcoming release can be found in the `"changelog.d" directory <https://github.com/python-attrs/attrs/tree/main/changelog.d>`_ in our repository.
20+
.. towncrier release notes start
2121
22-
..
23-
Do *NOT* add changelog entries here!
22+
22.1.0 (2022-07-28)
23+
-------------------
2424

25-
This changelog is managed by towncrier and is compiled at release time.
25+
Backwards-incompatible Changes
26+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2627

27-
See https://github.com/python-attrs/attrs/blob/main/.github/CONTRIBUTING.md#changelog for details.
28+
- Python 2.7 is not supported anymore.
29+
30+
Dealing with Python 2.7 tooling has become too difficult for a volunteer-run project.
31+
32+
We have supported Python 2 more than 2 years after it was officially discontinued and feel that we have paid our dues.
33+
All version up to 21.4.0 from December 2021 remain fully functional, of course.
34+
`#936 <https://github.com/python-attrs/attrs/issues/936>`_
35+
- The deprecated ``cmp`` attribute of ``attrs.Attribute`` has been removed.
36+
This does not affect the *cmp* argument to ``attr.s`` that can be used as a shortcut to set *eq* and *order* at the same time.
37+
`#939 <https://github.com/python-attrs/attrs/issues/939>`_
38+
39+
40+
Changes
41+
^^^^^^^
42+
43+
- Instantiation of frozen slotted classes is now faster.
44+
`#898 <https://github.com/python-attrs/attrs/issues/898>`_
45+
- If an ``eq`` key is defined, it is also used before hashing the attribute.
46+
`#909 <https://github.com/python-attrs/attrs/issues/909>`_
47+
- Added ``attrs.validators.min_len()``.
48+
`#916 <https://github.com/python-attrs/attrs/issues/916>`_
49+
- ``attrs.validators.deep_iterable()``'s *member_validator* argument now also accepts a list of validators and wraps them in an ``attrs.validators.and_()``.
50+
`#925 <https://github.com/python-attrs/attrs/issues/925>`_
51+
- Added missing type stub re-imports for ``attrs.converters`` and ``attrs.filters``.
52+
`#931 <https://github.com/python-attrs/attrs/issues/931>`_
53+
- Added missing stub for ``attr(s).cmp_using()``.
54+
`#949 <https://github.com/python-attrs/attrs/issues/949>`_
55+
- ``attrs.validators._in()``'s ``ValueError`` is not missing the attribute, expected options, and the value it got anymore.
56+
`#951 <https://github.com/python-attrs/attrs/issues/951>`_
57+
- Python 3.11 is now officially supported.
58+
`#969 <https://github.com/python-attrs/attrs/issues/969>`_
59+
60+
61+
----
2862

29-
.. towncrier release notes start
3063

3164
21.4.0 (2021-12-29)
3265
-------------------

changelog.d/898.change.rst

-1
This file was deleted.

changelog.d/909.change.rst

-1
This file was deleted.

changelog.d/916.change.rst

-1
This file was deleted.

changelog.d/925.change.rst

-1
This file was deleted.

changelog.d/931.change.rst

-1
This file was deleted.

changelog.d/936.breaking.rst

-6
This file was deleted.

changelog.d/939.breaking.rst

-2
This file was deleted.

changelog.d/949.change.rst

-1
This file was deleted.

changelog.d/951.change.rst

-1
This file was deleted.

changelog.d/969.change.rst

-1
This file was deleted.

src/attr/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from ._version_info import VersionInfo
2424

2525

26-
__version__ = "22.1.0.dev0"
26+
__version__ = "22.1.0"
2727
__version_info__ = VersionInfo._from_version_string(__version__)
2828

2929
__title__ = "attrs"

0 commit comments

Comments
 (0)