Mon May 1 09:47:32 2023 UTC ()
py-typeguard: update to 3.0.2.

**3.0.2** (2023-03-22)

- Improved warnings by ensuring that they target user code and not Typeguard internal
  code
- Fixed ``warn_on_error()`` not showing where the type violation actually occurred
- Fixed local assignment to ``*args`` or ``**kwargs`` being type checked incorrectly
- Fixed ``TypeError`` on ``check_type(..., None)``
- Fixed unpacking assignment not working with a starred variable (``x, *y = ...``) in
  the target tuple
- Fixed variable multi-assignment (``a = b = c = ...``) being type checked incorrectly

**3.0.1** (2023-03-16)

- Improved the documentation
- Fixed assignment unpacking (``a, b = ...``) being checked incorrectly
- Fixed ``@typechecked`` attempting to instrument wrapper decorators such as
  ``@contextmanager`` when applied to a class
- Fixed ``py.typed`` missing from the wheel when not building from a git checkout

**3.0.0** (2023-03-15)

- **BACKWARD INCOMPATIBLE** Dropped the ``argname``, ``memo``, ``globals`` and
  ``locals`` arguments from ``check_type()``
- **BACKWARD INCOMPATIBLE** Removed the ``check_argument_types()`` and
  ``check_return_type()`` functions (use ``@typechecked`` instead)
- **BACKWARD INCOMPATIBLE** Moved ``install_import_hook`` to be directly importable
  from the ``typeguard`` module
- **BACKWARD INCOMPATIBLE** Changed the checking of collections (list, set, dict,
  sequence, mapping) to only check the first item by default. To get the old behavior,
  set ``typeguard.config.collection_check_strategy`` to
  ``CollectionCheckStrategy.ALL_ITEMS``
- **BACKWARD INCOMPATIBLE** Type checking failures now raise
  ``typeguard.TypeCheckError`` instead of ``TypeError``
- Dropped Python 3.5 and 3.6 support
- Dropped the deprecated profiler hook (``TypeChecker``)
- Added a configuration system
- Added support for custom type checking functions
- Added support for PEP 604 union types (``X | Y``) on all Python versions
- Added support for generic built-in collection types (``list[int]`` et al) on all
  Python versions
- Added support for checking arbitrary ``Mapping`` types
- Added support for the ``Self`` type
- Added support for ``typing.Never`` (and ``typing_extensions.Never``)
- Added support for ``Never`` and ``NoReturn`` in argument annotations
- Added support for ``LiteralString``
- Added support for ``TypeGuard``
- Added support for the subclassable ``Any`` on Python 3.11 and ``typing_extensions``
- Added the possibility to have the import hook instrument all packages
- Added the ``suppress_type_checks()`` context manager function for temporarily
  disabling type checks
- Much improved error messages showing where the type check failed
- Made it possible to apply ``@typechecked`` on top of ``@classmethod`` /
  ``@staticmethod`` (PR by jacobpbrugh)
- Changed ``check_type()`` to return the passed value, so it can be used (to an extent)
  in place of ``typing.cast()``, but with run-time type checking
- Replaced custom implementation of ``is_typeddict()`` with the implementation from
  ``typing_extensions`` v4.1.0
- Emit ``InstrumentationWarning`` instead of raising ``RuntimeError`` from the pytest
  plugin if modules in the target package have already been imported
- Fixed ``TypeError`` when checking against ``TypedDict`` when the value has mixed types
  among the extra keys (PR by biolds)
- Fixed incompatibility with ``typing_extensions`` v4.1+ on Python 3.10 (PR by David C.)
- Fixed checking of ``Tuple[()]`` on Python 3.11 and ``tuple[()]`` on Python 3.9+
- Fixed integers 0 and 1 passing for ``Literal[False]`` and ``Literal[True]``,
  respectively
- Fixed type checking of annotated variable positional and keyword arguments (``*args``
  and ``**kwargs``)
- Fixed checks against ``unittest.Mock`` and derivatives being done in the wrong place


(wiz)
diff -r1.2 -r1.3 pkgsrc/devel/py-typeguard/Makefile
diff -r1.1 -r1.2 pkgsrc/devel/py-typeguard/PLIST
diff -r1.1 -r1.2 pkgsrc/devel/py-typeguard/distinfo

cvs diff -r1.2 -r1.3 pkgsrc/devel/py-typeguard/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/py-typeguard/Makefile 2022/01/27 08:17:13 1.2
+++ pkgsrc/devel/py-typeguard/Makefile 2023/05/01 09:47:32 1.3
@@ -1,26 +1,37 @@ @@ -1,26 +1,37 @@
1# $NetBSD: Makefile,v 1.2 2022/01/27 08:17:13 wiz Exp $ 1# $NetBSD: Makefile,v 1.3 2023/05/01 09:47:32 wiz Exp $
2 2
3DISTNAME= typeguard-2.13.3 3DISTNAME= typeguard-3.0.2
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= devel python 5CATEGORIES= devel python
6MASTER_SITES= ${MASTER_SITE_PYPI:=t/typeguard/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=t/typeguard/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://github.com/agronholm/typeguard 9HOMEPAGE= https://github.com/agronholm/typeguard
10COMMENT= Python run-time type checking library 10COMMENT= Python run-time type checking library
11LICENSE= mit 11LICENSE= mit
12 12
13BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm 13TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
 14TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
 15TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
14TEST_DEPENDS+= ${PYPKGPREFIX}-mypy>0:../../lang/py-mypy 16TEST_DEPENDS+= ${PYPKGPREFIX}-mypy>0:../../lang/py-mypy
15TEST_DEPENDS+= ${PYPKGPREFIX}-test>0:../../devel/py-test 17TEST_DEPENDS+= ${PYPKGPREFIX}-test>0:../../devel/py-test
16TEST_DEPENDS+= ${PYPKGPREFIX}-typing-extensions>0:../../devel/py-typing-extensions 
17 18
18USE_LANGUAGES= # none 19USE_LANGUAGES= # none
19 20
20PYTHON_VERSIONS_INCOMPATIBLE= 27 21PYTHON_VERSIONS_INCOMPATIBLE= 27
21 22
 23TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib
22do-test: 24do-test:
23 cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests 25 cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
24 26
25.include "../../lang/python/egg.mk" 27.include "../../lang/python/pyversion.mk"
 28
 29.if ${PYTHON_VERSION} < 310
 30TEST_DEPENDS+= ${PYPKGPREFIX}-importlib-metadata>=3.6:../../devel/py-importlib-metadata
 31.endif
 32.if ${PYTHON_VERSION} < 311
 33TEST_DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=4.4.0:../../devel/py-typing-extensions
 34.endif
 35
 36.include "../../lang/python/wheel.mk"
26.include "../../mk/bsd.pkg.mk" 37.include "../../mk/bsd.pkg.mk"

cvs diff -r1.1 -r1.2 pkgsrc/devel/py-typeguard/PLIST (expand / switch to unified diff)

--- pkgsrc/devel/py-typeguard/PLIST 2022/01/23 19:45:31 1.1
+++ pkgsrc/devel/py-typeguard/PLIST 2023/05/01 09:47:32 1.2
@@ -1,18 +1,35 @@ @@ -1,18 +1,35 @@
1@comment $NetBSD: PLIST,v 1.1 2022/01/23 19:45:31 adam Exp $ 1@comment $NetBSD: PLIST,v 1.2 2023/05/01 09:47:32 wiz Exp $
2${PYSITELIB}/${EGG_INFODIR}/PKG-INFO 2${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
3${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt 3${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
4${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt 4${PYSITELIB}/${WHEEL_INFODIR}/METADATA
5${PYSITELIB}/${EGG_INFODIR}/entry_points.txt 5${PYSITELIB}/${WHEEL_INFODIR}/RECORD
6${PYSITELIB}/${EGG_INFODIR}/not-zip-safe 6${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
7${PYSITELIB}/${EGG_INFODIR}/requires.txt 7${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
8${PYSITELIB}/${EGG_INFODIR}/top_level.txt 8${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
 9${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
 10${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
9${PYSITELIB}/typeguard/__init__.py 11${PYSITELIB}/typeguard/__init__.py
10${PYSITELIB}/typeguard/__init__.pyc 12${PYSITELIB}/typeguard/__init__.pyc
11${PYSITELIB}/typeguard/__init__.pyo 13${PYSITELIB}/typeguard/_checkers.py
12${PYSITELIB}/typeguard/importhook.py 14${PYSITELIB}/typeguard/_checkers.pyc
13${PYSITELIB}/typeguard/importhook.pyc 15${PYSITELIB}/typeguard/_config.py
14${PYSITELIB}/typeguard/importhook.pyo 16${PYSITELIB}/typeguard/_config.pyc
 17${PYSITELIB}/typeguard/_decorators.py
 18${PYSITELIB}/typeguard/_decorators.pyc
 19${PYSITELIB}/typeguard/_exceptions.py
 20${PYSITELIB}/typeguard/_exceptions.pyc
 21${PYSITELIB}/typeguard/_functions.py
 22${PYSITELIB}/typeguard/_functions.pyc
 23${PYSITELIB}/typeguard/_importhook.py
 24${PYSITELIB}/typeguard/_importhook.pyc
 25${PYSITELIB}/typeguard/_memo.py
 26${PYSITELIB}/typeguard/_memo.pyc
 27${PYSITELIB}/typeguard/_pytest_plugin.py
 28${PYSITELIB}/typeguard/_pytest_plugin.pyc
 29${PYSITELIB}/typeguard/_transformer.py
 30${PYSITELIB}/typeguard/_transformer.pyc
 31${PYSITELIB}/typeguard/_union_transformer.py
 32${PYSITELIB}/typeguard/_union_transformer.pyc
 33${PYSITELIB}/typeguard/_utils.py
 34${PYSITELIB}/typeguard/_utils.pyc
15${PYSITELIB}/typeguard/py.typed 35${PYSITELIB}/typeguard/py.typed
16${PYSITELIB}/typeguard/pytest_plugin.py 
17${PYSITELIB}/typeguard/pytest_plugin.pyc 
18${PYSITELIB}/typeguard/pytest_plugin.pyo 

cvs diff -r1.1 -r1.2 pkgsrc/devel/py-typeguard/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/py-typeguard/distinfo 2022/01/23 19:45:31 1.1
+++ pkgsrc/devel/py-typeguard/distinfo 2023/05/01 09:47:32 1.2
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.1 2022/01/23 19:45:31 adam Exp $ 1$NetBSD: distinfo,v 1.2 2023/05/01 09:47:32 wiz Exp $
2 2
3BLAKE2s (typeguard-2.13.3.tar.gz) = c9f5519a55133aba5a963b9d5d005ad8d55ac3be4d210fb1ce1700888ca3f6ab 3BLAKE2s (typeguard-3.0.2.tar.gz) = f4db5f7f203a675995d81bccc1f7be58d4963cc88ba95f905008b75df140cea4
4SHA512 (typeguard-2.13.3.tar.gz) = d0facef3bfa8b1489c4a011e4ee9b019410fc82bf7d9630d3384013960d06f018f905b1930a1c483876d1e093748dc44e6891420cc618b34a452e8637c9aee56 4SHA512 (typeguard-3.0.2.tar.gz) = a8f87494d4962cfa451ab266fb2958867acb677ec07acad0e8ccead16b9f3d59facffbe133de4e7808147caefb2b41c184b19bc82a812d041e90c3c1c1c0667a
5Size (typeguard-2.13.3.tar.gz) = 40604 bytes 5Size (typeguard-3.0.2.tar.gz) = 58171 bytes