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 placediff -r1.2 -r1.3 pkgsrc/devel/py-typeguard/Makefile
(wiz)
@@ -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 | |||
3 | DISTNAME= typeguard-2.13.3 | 3 | DISTNAME= typeguard-3.0.2 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | CATEGORIES= devel python | 5 | CATEGORIES= devel python | |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=t/typeguard/} | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=t/typeguard/} | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://github.com/agronholm/typeguard | 9 | HOMEPAGE= https://github.com/agronholm/typeguard | |
10 | COMMENT= Python run-time type checking library | 10 | COMMENT= Python run-time type checking library | |
11 | LICENSE= mit | 11 | LICENSE= mit | |
12 | 12 | |||
13 | BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm | 13 | TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools | |
14 | TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm | |||
15 | TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel | |||
14 | TEST_DEPENDS+= ${PYPKGPREFIX}-mypy>0:../../lang/py-mypy | 16 | TEST_DEPENDS+= ${PYPKGPREFIX}-mypy>0:../../lang/py-mypy | |
15 | TEST_DEPENDS+= ${PYPKGPREFIX}-test>0:../../devel/py-test | 17 | TEST_DEPENDS+= ${PYPKGPREFIX}-test>0:../../devel/py-test | |
16 | TEST_DEPENDS+= ${PYPKGPREFIX}-typing-extensions>0:../../devel/py-typing-extensions | |||
17 | 18 | |||
18 | USE_LANGUAGES= # none | 19 | USE_LANGUAGES= # none | |
19 | 20 | |||
20 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | 21 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | |
21 | 22 | |||
23 | TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib | |||
22 | do-test: | 24 | do-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 | |||
30 | TEST_DEPENDS+= ${PYPKGPREFIX}-importlib-metadata>=3.6:../../devel/py-importlib-metadata | |||
31 | .endif | |||
32 | .if ${PYTHON_VERSION} < 311 | |||
33 | TEST_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" |
@@ -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 |
@@ -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 | |||
3 | BLAKE2s (typeguard-2.13.3.tar.gz) = c9f5519a55133aba5a963b9d5d005ad8d55ac3be4d210fb1ce1700888ca3f6ab | 3 | BLAKE2s (typeguard-3.0.2.tar.gz) = f4db5f7f203a675995d81bccc1f7be58d4963cc88ba95f905008b75df140cea4 | |
4 | SHA512 (typeguard-2.13.3.tar.gz) = d0facef3bfa8b1489c4a011e4ee9b019410fc82bf7d9630d3384013960d06f018f905b1930a1c483876d1e093748dc44e6891420cc618b34a452e8637c9aee56 | 4 | SHA512 (typeguard-3.0.2.tar.gz) = a8f87494d4962cfa451ab266fb2958867acb677ec07acad0e8ccead16b9f3d59facffbe133de4e7808147caefb2b41c184b19bc82a812d041e90c3c1c1c0667a | |
5 | Size (typeguard-2.13.3.tar.gz) = 40604 bytes | 5 | Size (typeguard-3.0.2.tar.gz) = 58171 bytes |