pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-pluggy



Module Name:    pkgsrc
Committed By:   wiz
Date:           Wed Jun 28 08:55:29 UTC 2023

Modified Files:
        pkgsrc/devel/py-pluggy: Makefile distinfo

Log Message:
py-pluggy: update to 1.2.0.

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

Features
--------

- `#405 <https://github.com/pytest-dev/pluggy/issues/405>`_: The new-style hook wrappers, added in the yanked 1.1.0 release, now require an explicit ``wrapper=True`` designation in the 
``@hookimpl()`` decorator.

pluggy 1.1.0 (YANKED)
=====================

.. note::

  This release was yanked because unfortunately the implicit new-style hook wrappers broke some downstream projects.
  See `#403 <https://github.com/pytest-dev/pluggy/issues/403>`__ for more information.
  This was rectified in the 1.2.0 release.

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

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

Features
--------

- `#260 <https://github.com/pytest-dev/pluggy/issues/260>`_: Added "new-style" hook wrappers, a simpler but equally powerful alternative to the existing ``hookwrapper=True`` wrappers.

  New-style wrappers are generator functions, similarly to ``hookwrapper``, but do away with the :class:`result <pluggy._callers._Result>` object.
  Instead, the return value is sent directly to the ``yield`` statement, or, if inner calls raised an exception, it is raised from the ``yield``.
  The wrapper is expected to return a value or raise an exception, which will become the result of the hook call.

  New-style wrappers are fully interoperable with old-style wrappers.
  We encourage users to use the new style, however we do not intend to deprecate the old style any time soon.

  See :ref:`hookwrappers` for the full documentation.

- `#364 <https://github.com/pytest-dev/pluggy/issues/364>`_: Python 3.11 and 3.12 are now officially supported.

- `#394 <https://github.com/pytest-dev/pluggy/issues/394>`_: Added the :meth:`~pluggy._callers._Result.force_exception` method to ``_Result``.

  ``force_exception`` allows (old-style) hookwrappers to force an exception or override/adjust an existing exception of a hook invocation,
  in a properly behaving manner. Using ``force_exception`` is preferred over raising an exception from the hookwrapper,
  because raising an exception causes other hookwrappers to be skipped.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 pkgsrc/devel/py-pluggy/Makefile
cvs rdiff -u -r1.16 -r1.17 pkgsrc/devel/py-pluggy/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-pluggy/Makefile
diff -u pkgsrc/devel/py-pluggy/Makefile:1.22 pkgsrc/devel/py-pluggy/Makefile:1.23
--- pkgsrc/devel/py-pluggy/Makefile:1.22        Tue Jun  6 12:41:14 2023
+++ pkgsrc/devel/py-pluggy/Makefile     Wed Jun 28 08:55:29 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.22 2023/06/06 12:41:14 riastradh Exp $
+# $NetBSD: Makefile,v 1.23 2023/06/28 08:55:29 wiz Exp $
 
-DISTNAME=      pluggy-1.0.0
+DISTNAME=      pluggy-1.2.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pluggy/}

Index: pkgsrc/devel/py-pluggy/distinfo
diff -u pkgsrc/devel/py-pluggy/distinfo:1.16 pkgsrc/devel/py-pluggy/distinfo:1.17
--- pkgsrc/devel/py-pluggy/distinfo:1.16        Tue Oct 11 13:14:15 2022
+++ pkgsrc/devel/py-pluggy/distinfo     Wed Jun 28 08:55:29 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.16 2022/10/11 13:14:15 adam Exp $
+$NetBSD: distinfo,v 1.17 2023/06/28 08:55:29 wiz Exp $
 
-BLAKE2s (pluggy-1.0.0.tar.gz) = 9f378760f1f7c951fc6bfde5bbf709dd1895641268b4f007c660487a7d1e607e
-SHA512 (pluggy-1.0.0.tar.gz) = cf0bcbb4330c24ce473614befa19548f33fb39fa0ad094e1eae786202d7adadc28e16499f80ab96b630091765404ca5c5b6f9a55bc605e03514d8ab50cf9ae00
-Size (pluggy-1.0.0.tar.gz) = 51510 bytes
+BLAKE2s (pluggy-1.2.0.tar.gz) = c368b747fc330bb48761a78ad5e84e7f5ceca73e91f52743992642db5210c2f1
+SHA512 (pluggy-1.2.0.tar.gz) = b2b6a80737c06e1507eb12513ed7f5ce508fd4a139c559a3a15d9f173f4455ef3847783efb91c32eca6e26cbe37b0336467d50c5db0563d8dbd17bd825cd7407
+Size (pluggy-1.2.0.tar.gz) = 61613 bytes



Home | Main Index | Thread Index | Old Index