Skip to content

Commit

Permalink
Prepare 20.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Nov 5, 2020
1 parent 3d66e57 commit f3762ba
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 24 deletions.
42 changes: 36 additions & 6 deletions CHANGELOG.rst
Expand Up @@ -4,16 +4,46 @@ Changelog
Versions follow `CalVer <https://calver.org>`_ with a strict backwards compatibility policy.
The third digit is only for regressions.

Changes for the upcoming release can be found in the `"changelog.d" directory <https://github.com/python-attrs/attrs/tree/master/changelog.d>`_ in our repository.
.. towncrier release notes start
..
Do *NOT* add changelog entries here!
20.3.0 (2020-11-05)
-------------------

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

See https://www.attrs.org/en/latest/contributing.html#changelog for details.
- ``attr.define()``, ``attr.frozen()``, ``attr.mutable()``, and ``attr.field()`` remain **provisional**.

This release does **not** change change anything about them and they are already used widely in production though.

If you wish to use them together with mypy, you can simply drop `this plugin <https://gist.github.com/hynek/1e3844d0c99e479e716169034b5fa963#file-attrs_ng_plugin-py>`_ into your project.

Feel free to provide feedback to them in the linked issue #668.

We will release the ``attrs`` namespace once we have the feeling that the APIs have properly settled.
`#668 <https://github.com/python-attrs/attrs/issues/668>`_


Changes
^^^^^^^

- ``attr.s()`` now has a *field_transformer* hook that is called for all ``Attribute``\ s and returns a (modified or updated) list of ``Attribute`` instances.
``attr.asdict()`` has a *value_serializer* hook that can change the way values are converted.
Both hooks are meant to help with data (de-)serialization workflows.
`#653 <https://github.com/python-attrs/attrs/issues/653>`_
- ``kw_only=True`` now works on Python 2.
`#700 <https://github.com/python-attrs/attrs/issues/700>`_
- ``raise from`` now works on frozen classes on PyPy.
`#703 <https://github.com/python-attrs/attrs/issues/703>`_,
`#712 <https://github.com/python-attrs/attrs/issues/712>`_
- ``attr.asdict()`` and ``attr.astuple()`` now treat ``frozenset``\ s like ``set``\ s with regards to the *retain_collection_types* argument.
`#704 <https://github.com/python-attrs/attrs/issues/704>`_
- The type stubs for ``attr.s()`` and ``attr.make_class()`` are not missing the *collect_by_mro* argument anymore.
`#711 <https://github.com/python-attrs/attrs/issues/711>`_


----

.. towncrier release notes start

20.2.0 (2020-09-05)
-------------------
Expand Down
3 changes: 0 additions & 3 deletions changelog.d/653.change.rst

This file was deleted.

9 changes: 0 additions & 9 deletions changelog.d/668.breaking.rst

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

2 changes: 1 addition & 1 deletion src/attr/__init__.py
Expand Up @@ -21,7 +21,7 @@
from ._version_info import VersionInfo


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

__title__ = "attrs"
Expand Down

0 comments on commit f3762ba

Please sign in to comment.