Skip to content

Commit 906abca

Browse files
committed
Preparing release 1.0.0
1 parent 56eb23c commit 906abca

11 files changed

+74
-46
lines changed

CHANGELOG.rst

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,80 @@ Changelog
44

55
.. towncrier release notes start
66
7+
pluggy 1.0.0 (2021-08-25)
8+
Deprecations and Removals
9+
-------------------------
10+
11+
- `#116 <https://github.com/pytest-dev/pluggy/issues/116>`_: Remove deprecated ``implprefix`` support.
12+
Decorate hook implementations using an instance of HookimplMarker instead.
13+
The deprecation was announced in release ``0.7.0``.
14+
15+
16+
- `#120 <https://github.com/pytest-dev/pluggy/issues/120>`_: Remove the deprecated ``proc`` argument to ``call_historic``.
17+
Use ``result_callback`` instead, which has the same behavior.
18+
The deprecation was announced in release ``0.7.0``.
19+
20+
21+
- `#265 <https://github.com/pytest-dev/pluggy/issues/265>`_: Remove the ``_Result.result`` property. Use ``_Result.get_result()`` instead.
22+
Note that unlike ``result``, ``get_result()`` raises the exception if the hook raised.
23+
The deprecation was announced in release ``0.6.0``.
24+
25+
26+
- `#267 <https://github.com/pytest-dev/pluggy/issues/267>`_: Remove official support for Python 3.4.
27+
28+
29+
- `#272 <https://github.com/pytest-dev/pluggy/issues/272>`_: Dropped support for Python 2.
30+
Continue to use pluggy 0.13.x for Python 2 support.
31+
32+
33+
- `#308 <https://github.com/pytest-dev/pluggy/issues/308>`_: Remove official support for Python 3.5.
34+
35+
36+
- `#313 <https://github.com/pytest-dev/pluggy/issues/313>`_: The internal ``pluggy.callers``, ``pluggy.manager`` and ``pluggy.hooks`` are now explicitly marked private by a ``_`` prefix (e.g. ``pluggy._callers``).
37+
Only API exported by the top-level ``pluggy`` module is considered public.
38+
39+
40+
- `#59 <https://github.com/pytest-dev/pluggy/issues/59>`_: Remove legacy ``__multicall__`` recursive hook calling system.
41+
The deprecation was announced in release ``0.5.0``.
42+
43+
44+
45+
Features
46+
--------
47+
48+
- `#282 <https://github.com/pytest-dev/pluggy/issues/282>`_: When registering a hookimpl which is declared as ``hookwrapper=True`` but whose
49+
function is not a generator function, a ``PluggyValidationError`` exception is
50+
now raised.
51+
52+
Previously this problem would cause an error only later, when calling the hook.
53+
54+
In the unlikely case that you have a hookwrapper that *returns* a generator
55+
instead of yielding directly, for example:
56+
57+
.. code-block:: python
58+
59+
def my_hook_real_implementation(arg):
60+
print("before")
61+
yield
62+
print("after")
63+
64+
65+
@hookimpl(hookwrapper=True)
66+
def my_hook(arg):
67+
return my_hook_implementation(arg)
68+
69+
change it to use ``yield from`` instead:
70+
71+
.. code-block:: python
72+
73+
@hookimpl(hookwrapper=True)
74+
def my_hook(arg):
75+
yield from my_hook_implementation(arg)
76+
77+
78+
- `#309 <https://github.com/pytest-dev/pluggy/issues/309>`_: Add official support for Python 3.9.
79+
80+
781
pluggy 0.13.1 (2019-11-21)
882
==========================
983

changelog/116.removal.rst

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

changelog/120.removal.rst

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

changelog/265.removal.rst

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

changelog/267.removal.rst

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

changelog/272.removal.rst

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

changelog/282.feature.rst

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

changelog/308.removal.rst

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

changelog/309.feature.rst

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

changelog/313.removal.rst

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

0 commit comments

Comments
 (0)