Skip to content

Commit e13a58c

Browse files
committed
Preparing release 1.3.0
1 parent c53af98 commit e13a58c

File tree

3 files changed

+33
-19
lines changed

3 files changed

+33
-19
lines changed

CHANGELOG.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,39 @@ Versions follow `Semantic Versioning <https://semver.org/>`_ (``<major>.<minor>.
2121

2222
.. towncrier release notes start
2323
24+
pluggy 1.3.0 (2023-08-26)
25+
=========================
26+
27+
Deprecations and Removals
28+
-------------------------
29+
30+
- `#426 <https://github.com/pytest-dev/pluggy/issues/426>`_: Python 3.7 is no longer supported.
31+
32+
33+
34+
Features
35+
--------
36+
37+
- `#428 <https://github.com/pytest-dev/pluggy/issues/428>`_: Pluggy now exposes its typings to static type checkers.
38+
39+
As part of this, the following changes are made:
40+
41+
- Renamed ``_Result`` to ``Result``, and exported as :class:`pluggy.Result`.
42+
- Renamed ``_HookRelay`` to ``HookRelay``, and exported as :class:`pluggy.HookRelay`.
43+
- Renamed ``_HookCaller`` to ``HookCaller``, and exported as :class:`pluggy.HookCaller`.
44+
- Exported ``HookImpl`` as :class:`pluggy.HookImpl`.
45+
- Renamed ``_HookImplOpts`` to ``HookimplOpts``, and exported as :class:`pluggy.HookimplOpts`.
46+
- Renamed ``_HookSpecOpts`` to ``HookspecOpts``, and exported as :class:`pluggy.HookspecOpts`.
47+
- Some fields and classes are marked ``Final`` and ``@final``.
48+
- The :ref:`api-reference` is updated to clearly delineate pluggy's public API.
49+
50+
Compatibility aliases are put in place for the renamed types.
51+
We do not plan to remove the aliases, but we strongly recommend to only import from ``pluggy.*`` to ensure future compatibility.
52+
53+
Please note that pluggy is currently unable to provide strong typing for hook calls, e.g. ``pm.hook.my_hook(...)``,
54+
nor to statically check that a hook implementation matches the hook specification's type.
55+
56+
2457
pluggy 1.2.0 (2023-06-21)
2558
=========================
2659

changelog/426.removal.rst

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

changelog/428.feature.rst

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

0 commit comments

Comments
 (0)