Skip to content

Commit

Permalink
Preparing release 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetech committed Aug 26, 2023
1 parent c53af98 commit e13a58c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 19 deletions.
33 changes: 33 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,39 @@ Versions follow `Semantic Versioning <https://semver.org/>`_ (``<major>.<minor>.

.. towncrier release notes start
pluggy 1.3.0 (2023-08-26)
=========================

Deprecations and Removals
-------------------------

- `#426 <https://github.com/pytest-dev/pluggy/issues/426>`_: Python 3.7 is no longer supported.



Features
--------

- `#428 <https://github.com/pytest-dev/pluggy/issues/428>`_: Pluggy now exposes its typings to static type checkers.

As part of this, the following changes are made:

- Renamed ``_Result`` to ``Result``, and exported as :class:`pluggy.Result`.
- Renamed ``_HookRelay`` to ``HookRelay``, and exported as :class:`pluggy.HookRelay`.
- Renamed ``_HookCaller`` to ``HookCaller``, and exported as :class:`pluggy.HookCaller`.
- Exported ``HookImpl`` as :class:`pluggy.HookImpl`.
- Renamed ``_HookImplOpts`` to ``HookimplOpts``, and exported as :class:`pluggy.HookimplOpts`.
- Renamed ``_HookSpecOpts`` to ``HookspecOpts``, and exported as :class:`pluggy.HookspecOpts`.
- Some fields and classes are marked ``Final`` and ``@final``.
- The :ref:`api-reference` is updated to clearly delineate pluggy's public API.

Compatibility aliases are put in place for the renamed types.
We do not plan to remove the aliases, but we strongly recommend to only import from ``pluggy.*`` to ensure future compatibility.

Please note that pluggy is currently unable to provide strong typing for hook calls, e.g. ``pm.hook.my_hook(...)``,
nor to statically check that a hook implementation matches the hook specification's type.


pluggy 1.2.0 (2023-06-21)
=========================

Expand Down
1 change: 0 additions & 1 deletion changelog/426.removal.rst

This file was deleted.

18 changes: 0 additions & 18 deletions changelog/428.feature.rst

This file was deleted.

0 comments on commit e13a58c

Please sign in to comment.