Skip to content

Commit 776e8f7

Browse files
authored
Merge pull request #328 from nicoddemus/release-1.0.0
2 parents e04816f + 4259fdd commit 776e8f7

13 files changed

+81
-51
lines changed

CHANGELOG.rst

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

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

HOWTORELEASE.rst renamed to RELEASING.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Release Procedure
77

88
This will create the branch ready to be pushed.
99

10-
#. Open a PR targeting ``master``.
10+
#. Open a PR targeting ``main``.
1111

1212
#. All tests must pass and the PR must be approved by at least another maintainer.
1313

@@ -20,4 +20,4 @@ Release Procedure
2020

2121
#. Make sure it is `available on PyPI <https://pypi.org/project/pluggy>`_.
2222

23-
#. Merge the PR into ``master``, either manually or using GitHub's web interface.
23+
#. Merge the PR into ``main``, either manually or using GitHub's web interface.

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.

0 commit comments

Comments
 (0)