diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 13a388c4..c888fd10 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -79,6 +79,10 @@ Features - `#309 `_: Add official support for Python 3.9. +- `#251 `_: Add ``specname`` option to ``@hookimpl``. If ``specname`` is provided, it will be used + instead of the function name when matching this hook implementation to a hook specification during registration (allowing a plugin to register + a hook implementation that was not named the same thing as the corresponding ``@hookspec``). + pluggy 0.13.1 (2019-11-21) ========================== diff --git a/docs/index.rst b/docs/index.rst index 4dbcf3ed..4de7caa8 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -283,7 +283,7 @@ example above). Note: there is *no* strict requirement that each *hookimpl* has a corresponding *hookspec* (see :ref:`enforcing spec validation `). -*new in version 0.13.2:* +*new in version 1.0.0:* To override the default behavior, a *hookimpl* may also be matched to a *hookspec* in the *host* program with a non-matching function name by using