* Features
+ Add support for deprecating specific hook parameters, or more
generally, for issuing a warning whenever a hook implementation
requests certain parameters.
+ A warning ~pluggy.PluggyTeardownRaisedWarning is now issued when an
old-style hookwrapper raises an exception during teardown.
+ Add PluginManager.unblock <pluggy.PluginManager.unblock> method to
unblock a plugin by plugin name.
* Bug Fixes
+ PluginManager.get_plugins() no longer returns None for blocked plugins.
+ Fix ~pluggy.HookCaller.call_extra() extra methods getting ordered
before everything else in some circumstances. Regressed in pluggy 1.1.0.
+ Fix plugins registering other plugins in a hook when the other plugins
implement the same hook itself. Regressed in pluggy 1.1.0.
- Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pluggy?expand=0&rev=30
* A warning :class:`~pluggy.PluggyTeardownRaisedWarning`
is now issued when an old-style hookwrapper raises an
exception during teardown. See the warning documentation for
more details.
* Add :func:`PluginManager.unblock
<pluggy.PluginManager.unblock>` method to unblock a plugin by
plugin name.
* Fix :func:`~pluggy.HookCaller.call_extra()` extra
methods getting ordered before everything else in some
circumstances. Regressed in pluggy 1.1.0.
* Fix plugins registering other plugins in a hook when
the other plugins implement the same hook itself. Regressed
in pluggy 1.1.0.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pluggy?expand=0&rev=28
* Python 3.7 is no longer supported.
* Pluggy now exposes its typings to static type checkers.
* 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.
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.
* The new-style hook wrappers, added in the yanked 1.1.0
release, now require an explicit ``wrapper=True`` designation
in the ``@hookimpl()`` decorator.
Deprecations and Removals
The deprecation was announced in release 0.7.0.
deprecation was announced in release 0.7.0.
deprecation was announced in release 0.6.0.
* fix issue #4: specific HookCallError exception for when a hook call
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pluggy?expand=0&rev=25
- Update to version 1.0.0
Deprecations and Removals
* #116: Remove deprecated implprefix support. Decorate hook
implementations using an instance of HookimplMarker instead.
The deprecation was announced in release 0.7.0.
* #120: Remove the deprecated proc argument to call_historic. Use
result_callback instead, which has the same behavior. The
deprecation was announced in release 0.7.0.
* #265: Remove the _Result.result property. Use
_Result.get_result() instead. Note that unlike result,
get_result() raises the exception if the hook raised. The
deprecation was announced in release 0.6.0.
* #267: Remove official support for Python 3.4.
* #272: Dropped support for Python 2. Continue to use pluggy
0.13.x for Python 2 support.
* #308: Remove official support for Python 3.5.
* #313: The internal pluggy.callers, pluggy.manager and
pluggy.hooks are now explicitly marked private by a _ prefix
(e.g. pluggy._callers). Only API exported by the top-level
pluggy module is considered public.
* #59: Remove legacy __multicall__ recursive hook calling system.
The deprecation was announced in release 0.5.0.
Features
* #282: When registering a hookimpl which is declared as
hookwrapper=True but whose function is not a generator
function, a PluggyValidationError exception is now raised.
* #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).
OBS-URL: https://build.opensuse.org/request/show/925834
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pluggy?expand=0&rev=22
* #189: PluginManager.load_setuptools_entrypoints now accepts a name parameter that when given will load only entry points with that name.
* PluginManager.load_setuptools_entrypoints also now returns the number of plugins loaded by the call, as opposed to the number of all plugins loaded by all calls to this method.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pluggy?expand=0&rev=10