Skip to content

Commit f3762ba

Browse files
committed
Prepare 20.3.0
1 parent 3d66e57 commit f3762ba

File tree

9 files changed

+37
-24
lines changed

9 files changed

+37
-24
lines changed

CHANGELOG.rst

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,46 @@ Changelog
44
Versions follow `CalVer <https://calver.org>`_ with a strict backwards compatibility policy.
55
The third digit is only for regressions.
66

7-
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.
7+
.. towncrier release notes start
88
9-
..
10-
Do *NOT* add changelog entries here!
9+
20.3.0 (2020-11-05)
10+
-------------------
1111

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

14-
See https://www.attrs.org/en/latest/contributing.html#changelog for details.
15+
- ``attr.define()``, ``attr.frozen()``, ``attr.mutable()``, and ``attr.field()`` remain **provisional**.
16+
17+
This release does **not** change change anything about them and they are already used widely in production though.
18+
19+
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.
20+
21+
Feel free to provide feedback to them in the linked issue #668.
22+
23+
We will release the ``attrs`` namespace once we have the feeling that the APIs have properly settled.
24+
`#668 <https://github.com/python-attrs/attrs/issues/668>`_
25+
26+
27+
Changes
28+
^^^^^^^
29+
30+
- ``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.
31+
``attr.asdict()`` has a *value_serializer* hook that can change the way values are converted.
32+
Both hooks are meant to help with data (de-)serialization workflows.
33+
`#653 <https://github.com/python-attrs/attrs/issues/653>`_
34+
- ``kw_only=True`` now works on Python 2.
35+
`#700 <https://github.com/python-attrs/attrs/issues/700>`_
36+
- ``raise from`` now works on frozen classes on PyPy.
37+
`#703 <https://github.com/python-attrs/attrs/issues/703>`_,
38+
`#712 <https://github.com/python-attrs/attrs/issues/712>`_
39+
- ``attr.asdict()`` and ``attr.astuple()`` now treat ``frozenset``\ s like ``set``\ s with regards to the *retain_collection_types* argument.
40+
`#704 <https://github.com/python-attrs/attrs/issues/704>`_
41+
- The type stubs for ``attr.s()`` and ``attr.make_class()`` are not missing the *collect_by_mro* argument anymore.
42+
`#711 <https://github.com/python-attrs/attrs/issues/711>`_
43+
44+
45+
----
1546

16-
.. towncrier release notes start
1747

1848
20.2.0 (2020-09-05)
1949
-------------------

changelog.d/653.change.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.

changelog.d/668.breaking.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.

changelog.d/700.change.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/703.change.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/704.change.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/711.change.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/712.change.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/attr/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from ._version_info import VersionInfo
2222

2323

24-
__version__ = "20.3.0.dev0"
24+
__version__ = "20.3.0"
2525
__version_info__ = VersionInfo._from_version_string(__version__)
2626

2727
__title__ = "attrs"

0 commit comments

Comments
 (0)