pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-typeguard
Module Name: pkgsrc
Committed By: adam
Date: Tue May 16 10:37:27 UTC 2023
Modified Files:
pkgsrc/devel/py-typeguard: Makefile PLIST distinfo
Log Message:
py-typeguard: updated to 4.0.0
**4.0.0** (2023-05-12)
- No changes
**4.0.0rc6** (2023-05-07)
- Fixed ``@typechecked`` optimization causing compilation of instrumented code to fail
when an ``if`` block was left empty by the AST transformer
- Fixed the AST transformer trying to parse the second argument of ``typing.Annotated``
as a forward reference
**4.0.0rc5** (2023-05-01)
- Added ``InstrumentationWarning`` to the public API
- Changed ``@typechecked`` to skip instrumentation in optimized mode, as in typeguard
2.x
- Avoid type checks where the types in question are shadowed by local variables
- Fixed instrumentation using ``typing.Optional`` without a subscript when the subscript
value was erased due to being an ignored import
- Fixed ``TypeError: isinstance() arg 2 must be a type or tuple of types`` when
instrumented code tries to check a value against a naked (``str``, not ``ForwardRef``)
forward reference
- Fixed instrumentation using the wrong "self" type in the ``__new__()`` method
**4.0.0rc4** (2023-04-15)
- Fixed imports guarded by ``if TYPE_CHECKING:`` when used with subscripts
(``SomeType[...]``) being replaced with ``Any[...]`` instead of just ``Any``
- Fixed instrumentation inadvertently mutating a function's annotations on Python 3.7
and 3.8
- Fixed ``Concatenate[...]`` in ``Callable`` parameters causing ``TypeError`` to be
raised
- Fixed type checks for ``*args`` or ``**kwargs`` not being suppressed when their types
are unusable (guarded by ``if TYPE_CHECKING:`` or otherwise)
- Fixed ``TypeError`` when checking against a generic ``NewType``
- Don't try to check types shadowed by argument names (e.g.
``def foo(x: type, type: str): ...``)
- Don't check against unions where one of the elements is ``Any``
**4.0.0rc3** (2023-04-10)
- Fixed ``typing.Literal`` subscript contents being evaluated as forward references
- Fixed resolution of forward references in type aliases
**4.0.0rc2** (2023-04-08)
- The ``.pyc`` files now use a version-based optimization suffix in the file names so as
not to cause the interpreter to load potentially faulty/incompatible cached bytecode
generated by older versions
- Fixed typed variable positional and keyword arguments causing compilation errors on
Python 3.7 and 3.8
- Fixed compilation error when a type annotation contains a type guarded by
``if TYPE_CHECKING:``
**4.0.0rc1** (2023-04-02)
- **BACKWARD INCOMPATIBLE** ``check_type()`` no longer uses the global configuration.
It now uses the default configuration values, unless overridden with an explicit
``config`` argument.
- **BACKWARD INCOMPATIBLE** Removed ``CallMemo`` from the API
- **BACKWARD INCOMPATIBLE** Required checkers to use the configuration from
``memo.config``, rather than the global configuration
- Added keyword arguments to ``@typechecked``, allowing users to override settings on a
per-function basis
- Added support for using ``suppress_type_checks()`` as a decorator
- Added support for type checking against nonlocal classes defined within the same
parent function as the instrumented function
- Changed instrumentation to statically copy the function annotations to avoid having to
look up the function object at run time
- Improved support for avoiding type checks against imports declared in
``if TYPE_CHECKING:`` blocks
- Fixed ``check_type`` not returning the passed value when checking against ``Any``, or
when type checking is being suppressed
- Fixed ``suppress_type_checks()`` not ending the suppression if the context block
raises an exception
- Fixed checking non-dictionary objects against a ``TypedDict`` annotation
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/py-typeguard/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/py-typeguard/PLIST \
pkgsrc/devel/py-typeguard/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-typeguard/Makefile
diff -u pkgsrc/devel/py-typeguard/Makefile:1.3 pkgsrc/devel/py-typeguard/Makefile:1.4
--- pkgsrc/devel/py-typeguard/Makefile:1.3 Mon May 1 09:47:32 2023
+++ pkgsrc/devel/py-typeguard/Makefile Tue May 16 10:37:27 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2023/05/01 09:47:32 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2023/05/16 10:37:27 adam Exp $
-DISTNAME= typeguard-3.0.2
+DISTNAME= typeguard-4.0.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=t/typeguard/}
@@ -10,11 +10,11 @@ HOMEPAGE= https://github.com/agronholm/t
COMMENT= Python run-time type checking library
LICENSE= mit
-TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
-TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=64:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm>=6.4:../../devel/py-setuptools_scm
TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
-TEST_DEPENDS+= ${PYPKGPREFIX}-mypy>0:../../lang/py-mypy
-TEST_DEPENDS+= ${PYPKGPREFIX}-test>0:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-mypy>=1.2.0:../../lang/py-mypy
+TEST_DEPENDS+= ${PYPKGPREFIX}-test>=7:../../devel/py-test
USE_LANGUAGES= # none
Index: pkgsrc/devel/py-typeguard/PLIST
diff -u pkgsrc/devel/py-typeguard/PLIST:1.2 pkgsrc/devel/py-typeguard/PLIST:1.3
--- pkgsrc/devel/py-typeguard/PLIST:1.2 Mon May 1 09:47:32 2023
+++ pkgsrc/devel/py-typeguard/PLIST Tue May 16 10:37:27 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2023/05/01 09:47:32 wiz Exp $
+@comment $NetBSD: PLIST,v 1.3 2023/05/16 10:37:27 adam Exp $
${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
@@ -26,6 +26,8 @@ ${PYSITELIB}/typeguard/_memo.py
${PYSITELIB}/typeguard/_memo.pyc
${PYSITELIB}/typeguard/_pytest_plugin.py
${PYSITELIB}/typeguard/_pytest_plugin.pyc
+${PYSITELIB}/typeguard/_suppression.py
+${PYSITELIB}/typeguard/_suppression.pyc
${PYSITELIB}/typeguard/_transformer.py
${PYSITELIB}/typeguard/_transformer.pyc
${PYSITELIB}/typeguard/_union_transformer.py
Index: pkgsrc/devel/py-typeguard/distinfo
diff -u pkgsrc/devel/py-typeguard/distinfo:1.2 pkgsrc/devel/py-typeguard/distinfo:1.3
--- pkgsrc/devel/py-typeguard/distinfo:1.2 Mon May 1 09:47:32 2023
+++ pkgsrc/devel/py-typeguard/distinfo Tue May 16 10:37:27 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.2 2023/05/01 09:47:32 wiz Exp $
+$NetBSD: distinfo,v 1.3 2023/05/16 10:37:27 adam Exp $
-BLAKE2s (typeguard-3.0.2.tar.gz) = f4db5f7f203a675995d81bccc1f7be58d4963cc88ba95f905008b75df140cea4
-SHA512 (typeguard-3.0.2.tar.gz) = a8f87494d4962cfa451ab266fb2958867acb677ec07acad0e8ccead16b9f3d59facffbe133de4e7808147caefb2b41c184b19bc82a812d041e90c3c1c1c0667a
-Size (typeguard-3.0.2.tar.gz) = 58171 bytes
+BLAKE2s (typeguard-4.0.0.tar.gz) = f2868a58e95ec1416b8acb80a2d2584d1fa81403476671d2351bf405ef87c642
+SHA512 (typeguard-4.0.0.tar.gz) = 2acf8b9aabaa8d4cce75e1ff23aeae4d1445bdfc28044c74b8e96127b1e740287e5da89bd49bea92229ba5c02c7cec3b0e25126fa35eb5163b798b2087b1df6a
+Size (typeguard-4.0.0.tar.gz) = 66064 bytes
Home |
Main Index |
Thread Index |
Old Index