Skip to content

Commit

Permalink
Prepare 22.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Jul 28, 2022
1 parent c89abcd commit b3dfebe
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 23 deletions.
45 changes: 39 additions & 6 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,49 @@ Whenever there is a need to break compatibility, it is announced here in the cha

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

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.
.. towncrier release notes start
..
Do *NOT* add changelog entries here!
22.1.0 (2022-07-28)
-------------------

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

See https://github.com/python-attrs/attrs/blob/main/.github/CONTRIBUTING.md#changelog for details.
- 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>`_
- The deprecated ``cmp`` attribute of ``attrs.Attribute`` has been removed.
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.
`#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>`_
- If an ``eq`` key is defined, it is also used before hashing the attribute.
`#909 <https://github.com/python-attrs/attrs/issues/909>`_
- Added ``attrs.validators.min_len()``.
`#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 an ``attrs.validators.and_()``.
`#925 <https://github.com/python-attrs/attrs/issues/925>`_
- Added missing type stub re-imports for ``attrs.converters`` and ``attrs.filters``.
`#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>`_
- ``attrs.validators._in()``'s ``ValueError`` is not missing the attribute, expected options, and the value it got anymore.
`#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>`_


----

.. towncrier release notes start

21.4.0 (2021-12-29)
-------------------
Expand Down
1 change: 0 additions & 1 deletion changelog.d/898.change.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/909.change.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/916.change.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/925.change.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/931.change.rst

This file was deleted.

6 changes: 0 additions & 6 deletions changelog.d/936.breaking.rst

This file was deleted.

2 changes: 0 additions & 2 deletions changelog.d/939.breaking.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/949.change.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/951.change.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/969.change.rst

This file was deleted.

2 changes: 1 addition & 1 deletion src/attr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from ._version_info import VersionInfo


__version__ = "22.1.0.dev0"
__version__ = "22.1.0"
__version_info__ = VersionInfo._from_version_string(__version__)

__title__ = "attrs"
Expand Down

0 comments on commit b3dfebe

Please sign in to comment.