pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-pytype



Module Name:    pkgsrc
Committed By:   adam
Date:           Sun Dec 29 16:58:49 UTC 2024

Modified Files:
        pkgsrc/devel/py-pytype: Makefile PLIST distinfo

Log Message:
py-pytype: updated to 2024.10.11

Version 2024.10.11:

Updates:
* Drop support for Python 3.8 and 3.9.

* Make merge_pyi not to overwrite existing type annotations.

* When printing types (e.g. in error messages or  `reveal_type`), print generic
  builtin names in lowercase.

  Old: `from typing import List; List[Foo]`
  New: `list[Foo]`

Bug fixes:
* Unpin dependency on networkx, which means pytype now supports >=3.3.
* Emit all unused/duplicate files with --unused_imports_info_files option,
  rather than only one per unique module name.
* Change return types of AsyncGenerator's methods to coroutines. This brings
  pytype's definition in line with the definition on typeshed and reflects the
  fact that asynchronous generators defined using the `async def`/`yield` syntax
  have methods returning coroutines rather than just arbitrary awaitables.
* Fix type guards propagating invisibile bindings. Fixes some incorrect "used
  after deleted" errors with Python 3.12.
* Fix resolution of ParamSpec in files with circular imports.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pkgsrc/devel/py-pytype/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/py-pytype/PLIST \
    pkgsrc/devel/py-pytype/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-pytype/Makefile
diff -u pkgsrc/devel/py-pytype/Makefile:1.9 pkgsrc/devel/py-pytype/Makefile:1.10
--- pkgsrc/devel/py-pytype/Makefile:1.9 Fri Dec 27 22:47:14 2024
+++ pkgsrc/devel/py-pytype/Makefile     Sun Dec 29 16:58:48 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2024/12/27 22:47:14 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2024/12/29 16:58:48 adam Exp $
 
-DISTNAME=      pytype-2024.9.13
+DISTNAME=      pytype-2024.10.11
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytype/}
@@ -10,7 +10,7 @@ HOMEPAGE=     https://google.github.io/pytyp
 COMMENT=       Static type analyzer for Python code
 LICENSE=       mit AND apache-2.0
 
-TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=40.8.0:../../devel/py-setuptools
 DEPENDS+=      ${PYPKGPREFIX}-attrs>=21.4.0:../../devel/py-attrs
 DEPENDS+=      ${PYPKGPREFIX}-dot>=1.4.2:../../graphics/py-dot
 DEPENDS+=      ${PYPKGPREFIX}-immutabledict>=4.1.0:../../devel/py-immutabledict
@@ -18,16 +18,17 @@ DEPENDS+=   ${PYPKGPREFIX}-importlab>=0.8:
 DEPENDS+=      ${PYPKGPREFIX}-jinja2>=3.1.2:../../textproc/py-jinja2
 DEPENDS+=      ${PYPKGPREFIX}-libcst>=1.0.1:../../lang/py-libcst
 DEPENDS+=      ${PYPKGPREFIX}-msgspec>=0.18.6:../../devel/py-msgspec
-DEPENDS+=      ${PYPKGPREFIX}-networkx-[0-9]*:../../math/py-networkx
+DEPENDS+=      ${PYPKGPREFIX}-networkx>=2.8:../../math/py-networkx
 DEPENDS+=      ${PYPKGPREFIX}-ninja>=1.10.1:../../devel/py-ninja
 DEPENDS+=      ${PYPKGPREFIX}-pycnite>=2024.7.31:../../devel/py-pycnite
 DEPENDS+=      ${PYPKGPREFIX}-tabulate>=0.8.10:../../textproc/py-tabulate
 DEPENDS+=      ${PYPKGPREFIX}-toml>=0.10.2:../../textproc/py-toml
 DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>=4.3.0:../../devel/py-typing-extensions
 
-USE_LANGUAGES= c c++
+USE_CXX_FEATURES=      c++20
+USE_LANGUAGES=         c c++
 
-USE_CXX_FEATURES+=     c++20
+PYTHON_VERSIONS_INCOMPATIBLE=  39
 
 post-install:
 .for file in annotate-ast merge-pyi pytd pytype pytype-single pyxref

Index: pkgsrc/devel/py-pytype/PLIST
diff -u pkgsrc/devel/py-pytype/PLIST:1.2 pkgsrc/devel/py-pytype/PLIST:1.3
--- pkgsrc/devel/py-pytype/PLIST:1.2    Mon Sep 16 10:56:43 2024
+++ pkgsrc/devel/py-pytype/PLIST        Sun Dec 29 16:58:49 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2024/09/16 10:56:43 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2024/12/29 16:58:49 adam Exp $
 bin/annotate-ast-${PYVERSSUFFIX}
 bin/merge-pyi-${PYVERSSUFFIX}
 bin/pytd-${PYVERSSUFFIX}
@@ -179,9 +179,6 @@ ${PYSITELIB}/pytype/directors/directors_
 ${PYSITELIB}/pytype/directors/parser.py
 ${PYSITELIB}/pytype/directors/parser.pyc
 ${PYSITELIB}/pytype/directors/parser.pyo
-${PYSITELIB}/pytype/directors/parser_libcst.py
-${PYSITELIB}/pytype/directors/parser_libcst.pyc
-${PYSITELIB}/pytype/directors/parser_libcst.pyo
 ${PYSITELIB}/pytype/errors/__init__.py
 ${PYSITELIB}/pytype/errors/__init__.pyc
 ${PYSITELIB}/pytype/errors/__init__.pyo
@@ -227,6 +224,9 @@ ${PYSITELIB}/pytype/imports/typeshed.pyo
 ${PYSITELIB}/pytype/imports/typeshed_test.py
 ${PYSITELIB}/pytype/imports/typeshed_test.pyc
 ${PYSITELIB}/pytype/imports/typeshed_test.pyo
+${PYSITELIB}/pytype/imports_map.py
+${PYSITELIB}/pytype/imports_map.pyc
+${PYSITELIB}/pytype/imports_map.pyo
 ${PYSITELIB}/pytype/imports_map_loader.py
 ${PYSITELIB}/pytype/imports_map_loader.pyc
 ${PYSITELIB}/pytype/imports_map_loader.pyo
@@ -918,6 +918,20 @@ ${PYSITELIB}/pytype/tools/merge_pyi/test
 ${PYSITELIB}/pytype/tools/merge_pyi/test_data/defaults.pyc
 ${PYSITELIB}/pytype/tools/merge_pyi/test_data/defaults.pyi
 ${PYSITELIB}/pytype/tools/merge_pyi/test_data/defaults.pyo
+${PYSITELIB}/pytype/tools/merge_pyi/test_data/enum_annot.pep484.py
+${PYSITELIB}/pytype/tools/merge_pyi/test_data/enum_annot.pep484.pyc
+${PYSITELIB}/pytype/tools/merge_pyi/test_data/enum_annot.pep484.pyo
+${PYSITELIB}/pytype/tools/merge_pyi/test_data/enum_annot.py
+${PYSITELIB}/pytype/tools/merge_pyi/test_data/enum_annot.pyc
+${PYSITELIB}/pytype/tools/merge_pyi/test_data/enum_annot.pyi
+${PYSITELIB}/pytype/tools/merge_pyi/test_data/enum_annot.pyo
+${PYSITELIB}/pytype/tools/merge_pyi/test_data/func_annot.pep484.py
+${PYSITELIB}/pytype/tools/merge_pyi/test_data/func_annot.pep484.pyc
+${PYSITELIB}/pytype/tools/merge_pyi/test_data/func_annot.pep484.pyo
+${PYSITELIB}/pytype/tools/merge_pyi/test_data/func_annot.py
+${PYSITELIB}/pytype/tools/merge_pyi/test_data/func_annot.pyc
+${PYSITELIB}/pytype/tools/merge_pyi/test_data/func_annot.pyi
+${PYSITELIB}/pytype/tools/merge_pyi/test_data/func_annot.pyo
 ${PYSITELIB}/pytype/tools/merge_pyi/test_data/heuristics.pep484.py
 ${PYSITELIB}/pytype/tools/merge_pyi/test_data/heuristics.pep484.pyc
 ${PYSITELIB}/pytype/tools/merge_pyi/test_data/heuristics.pep484.pyo
Index: pkgsrc/devel/py-pytype/distinfo
diff -u pkgsrc/devel/py-pytype/distinfo:1.2 pkgsrc/devel/py-pytype/distinfo:1.3
--- pkgsrc/devel/py-pytype/distinfo:1.2 Mon Sep 16 10:56:43 2024
+++ pkgsrc/devel/py-pytype/distinfo     Sun Dec 29 16:58:49 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.2 2024/09/16 10:56:43 adam Exp $
+$NetBSD: distinfo,v 1.3 2024/12/29 16:58:49 adam Exp $
 
-BLAKE2s (pytype-2024.9.13.tar.gz) = b561aeefacd5da67724a22a57ee4921a87718e3d4dcf975629a51c8fb23c83b6
-SHA512 (pytype-2024.9.13.tar.gz) = cbce88a802aa883230eaa6fe581ffca88d5ae3309fe5a9899dc243de99bba786251e562831dd05bcfee4c439b0880e2bf45e96862cbfe4c8bd81cea71314d14c
-Size (pytype-2024.9.13.tar.gz) = 2787479 bytes
+BLAKE2s (pytype-2024.10.11.tar.gz) = c4eaf6a2b7eae251583dca7b5d6117a7ed094b0d01ce80af06fd00b8746979ea
+SHA512 (pytype-2024.10.11.tar.gz) = abb63db6f0a27ea87ea974ab85a2ec3913d66de5363b79a9ce522c9cb14cab4a2a9bd02191bdb87a666881d3b870969329a86dfce179a3625eda8cc7def74162
+Size (pytype-2024.10.11.tar.gz) = 2789497 bytes



Home | Main Index | Thread Index | Old Index