pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-pluggy py-pluggy: updated to 1.0.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4255719f2c48
branches:  trunk
changeset: 386603:4255719f2c48
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Oct 11 13:14:15 2022 +0000

description:
py-pluggy: updated to 1.0.0

pluggy 1.0.0 (2021-08-25)
=========================

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

- Remove deprecated ``implprefix`` support.
  Decorate hook implementations using an instance of HookimplMarker instead.
  The deprecation was announced in release ``0.7.0``.

- 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``.

- 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``.

- Remove official support for Python 3.4.

- Dropped support for Python 2.
  Continue to use pluggy 0.13.x for Python 2 support.

- Remove official support for Python 3.5.

- 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.

- Remove legacy ``__multicall__`` recursive hook calling system.
  The deprecation was announced in release ``0.5.0``.


Features
--------

- When registering a hookimpl which is declared as ``hookwrapper=True`` but whose
  function is not a generator function, a ``PluggyValidationError`` exception is
  now raised.

  Previously this problem would cause an error only later, when calling the hook.

  In the unlikely case that you have a hookwrapper that *returns* a generator
  instead of yielding directly, for example:

  .. code-block:: python

      def my_hook_real_implementation(arg):
          print("before")
          yield
          print("after")


      @hookimpl(hookwrapper=True)
      def my_hook(arg):
          return my_hook_implementation(arg)

  change it to use ``yield from`` instead:

  .. code-block:: python

      @hookimpl(hookwrapper=True)
      def my_hook(arg):
          yield from my_hook_implementation(arg)

- Add official support for Python 3.9.

diffstat:

 devel/py-pluggy/Makefile |  24 +++++++++++++-----------
 devel/py-pluggy/PLIST    |  23 +++++++++++++----------
 devel/py-pluggy/distinfo |   8 ++++----
 3 files changed, 30 insertions(+), 25 deletions(-)

diffs (97 lines):

diff -r e2f7e94c0159 -r 4255719f2c48 devel/py-pluggy/Makefile
--- a/devel/py-pluggy/Makefile  Tue Oct 11 11:53:03 2022 +0000
+++ b/devel/py-pluggy/Makefile  Tue Oct 11 13:14:15 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2022/01/25 09:05:11 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2022/10/11 13:14:15 adam Exp $
 
-DISTNAME=      pluggy-0.13.1
+DISTNAME=      pluggy-1.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   2
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pluggy/}
 
@@ -11,18 +10,21 @@
 COMMENT=       Plugin and hook calling mechanisms for python
 LICENSE=       mit
 
-.include "../../lang/python/pyversion.mk"
-.if ${_PYTHON_VERSION} < 38
-PYTHON_VERSIONED_DEPENDENCIES+=        importlib-metadata
-.endif
-
-PYTHON_VERSIONED_DEPENDENCIES+=        test:test setuptools_scm:build
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-benchmark-[0-9]*:../../devel/py-test-benchmark
 
 USE_LANGUAGES= # none
 
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} < 38
+DEPENDS+=      ${PYPKGPREFIX}-importlib-metadata>=0.12:../../devel/py-importlib-metadata
+.endif
+
 do-test:
-       cd ${WRKSRC} && pytest-${PYVERSSUFFIX} testing
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} testing
 
 .include "../../lang/python/egg.mk"
-.include "../../lang/python/versioned_dependencies.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r e2f7e94c0159 -r 4255719f2c48 devel/py-pluggy/PLIST
--- a/devel/py-pluggy/PLIST     Tue Oct 11 11:53:03 2022 +0000
+++ b/devel/py-pluggy/PLIST     Tue Oct 11 13:14:15 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2018/10/23 09:00:34 adam Exp $
+@comment $NetBSD: PLIST,v 1.6 2022/10/11 13:14:15 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -7,18 +7,21 @@
 ${PYSITELIB}/pluggy/__init__.py
 ${PYSITELIB}/pluggy/__init__.pyc
 ${PYSITELIB}/pluggy/__init__.pyo
+${PYSITELIB}/pluggy/_callers.py
+${PYSITELIB}/pluggy/_callers.pyc
+${PYSITELIB}/pluggy/_callers.pyo
+${PYSITELIB}/pluggy/_hooks.py
+${PYSITELIB}/pluggy/_hooks.pyc
+${PYSITELIB}/pluggy/_hooks.pyo
+${PYSITELIB}/pluggy/_manager.py
+${PYSITELIB}/pluggy/_manager.pyc
+${PYSITELIB}/pluggy/_manager.pyo
+${PYSITELIB}/pluggy/_result.py
+${PYSITELIB}/pluggy/_result.pyc
+${PYSITELIB}/pluggy/_result.pyo
 ${PYSITELIB}/pluggy/_tracing.py
 ${PYSITELIB}/pluggy/_tracing.pyc
 ${PYSITELIB}/pluggy/_tracing.pyo
 ${PYSITELIB}/pluggy/_version.py
 ${PYSITELIB}/pluggy/_version.pyc
 ${PYSITELIB}/pluggy/_version.pyo
-${PYSITELIB}/pluggy/callers.py
-${PYSITELIB}/pluggy/callers.pyc
-${PYSITELIB}/pluggy/callers.pyo
-${PYSITELIB}/pluggy/hooks.py
-${PYSITELIB}/pluggy/hooks.pyc
-${PYSITELIB}/pluggy/hooks.pyo
-${PYSITELIB}/pluggy/manager.py
-${PYSITELIB}/pluggy/manager.pyc
-${PYSITELIB}/pluggy/manager.pyo
diff -r e2f7e94c0159 -r 4255719f2c48 devel/py-pluggy/distinfo
--- a/devel/py-pluggy/distinfo  Tue Oct 11 11:53:03 2022 +0000
+++ b/devel/py-pluggy/distinfo  Tue Oct 11 13:14:15 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.15 2021/10/26 10:18:45 nia Exp $
+$NetBSD: distinfo,v 1.16 2022/10/11 13:14:15 adam Exp $
 
-BLAKE2s (pluggy-0.13.1.tar.gz) = d78d2dd34ed097140a29e04b9e3de05bb8ed4884876aabf9d52aef75e4efa783
-SHA512 (pluggy-0.13.1.tar.gz) = eb747ff341cedacbd90eb20e22ad3d1ddf5588056f14d069f56331f4141a15b7eccaee23ea196d2f4906964ddb77a79b156bbf3ef8c8083e9952c55d13d55f3e
-Size (pluggy-0.13.1.tar.gz) = 57962 bytes
+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



Home | Main Index | Thread Index | Old Index