pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/py-mypy
Module Name: pkgsrc
Committed By: wiz
Date: Mon Oct 5 07:37:32 UTC 2026
Modified Files:
pkgsrc/lang/py-mypy: Makefile PLIST distinfo
Added Files:
pkgsrc/lang/py-mypy/patches: patch-mypy_util.py
Log Message:
py-mypy: update to 2.4.0.
This release includes new features, performance improvements and bug fixes.
Details at
https://mypy-lang.blogspot.com/2026/10/mypy-24-released.html
To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 pkgsrc/lang/py-mypy/Makefile
cvs rdiff -u -r1.47 -r1.48 pkgsrc/lang/py-mypy/PLIST
cvs rdiff -u -r1.69 -r1.70 pkgsrc/lang/py-mypy/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/py-mypy/patches/patch-mypy_util.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/py-mypy/Makefile
diff -u pkgsrc/lang/py-mypy/Makefile:1.75 pkgsrc/lang/py-mypy/Makefile:1.76
--- pkgsrc/lang/py-mypy/Makefile:1.75 Sun Aug 16 12:41:03 2026
+++ pkgsrc/lang/py-mypy/Makefile Mon Oct 5 07:37:32 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.75 2026/08/16 12:41:03 wiz Exp $
+# $NetBSD: Makefile,v 1.76 2026/10/05 07:37:32 wiz Exp $
-DISTNAME= mypy-2.3.1
+DISTNAME= mypy-2.4.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= lang python
MASTER_SITES= ${MASTER_SITE_PYPI:=m/mypy/}
@@ -11,11 +11,11 @@ COMMENT= Optional static typing for Pyth
LICENSE= mit
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
-DEPENDS+= ${PYPKGPREFIX}-ast-serialize>=0.3.0:../../lang/py-ast-serialize
+DEPENDS+= ${PYPKGPREFIX}-ast-serialize>=0.11.2:../../lang/py-ast-serialize
DEPENDS+= ${PYPKGPREFIX}-mypy_extensions>=1.0.0:../../lang/py-mypy_extensions
-DEPENDS+= ${PYPKGPREFIX}-librt>=0.11.0:../../lang/py-librt
+DEPENDS+= ${PYPKGPREFIX}-librt>=0.16.0:../../lang/py-librt
DEPENDS+= ${PYPKGPREFIX}-pathspec>=1.0.0:../../devel/py-pathspec
-DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=4.14.0:../../devel/py-typing-extensions
+DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=4.6.0:../../devel/py-typing-extensions
TEST_DEPENDS+= ${PYPKGPREFIX}-attrs>=18.0:../../devel/py-attrs
TEST_DEPENDS+= ${PYPKGPREFIX}-filelock>=3.3.0:../../devel/py-filelock
TEST_DEPENDS+= ${PYPKGPREFIX}-psutil>=4.0:../../sysutils/py-psutil
@@ -24,8 +24,8 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-test-xdist
USE_LANGUAGES= c # for tests
-# as of 2.3.1
-# 14 failed, 14150 passed, 403 skipped, 12 xfailed
+# as of 2.4.0
+# 6 failed, 14416 passed, 408 skipped, 12 xfailed
.if make(test)
ALLOW_NETWORK_ACCESS= yes
.endif
Index: pkgsrc/lang/py-mypy/PLIST
diff -u pkgsrc/lang/py-mypy/PLIST:1.47 pkgsrc/lang/py-mypy/PLIST:1.48
--- pkgsrc/lang/py-mypy/PLIST:1.47 Wed Jul 15 06:12:19 2026
+++ pkgsrc/lang/py-mypy/PLIST Mon Oct 5 07:37:32 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.47 2026/07/15 06:12:19 adam Exp $
+@comment $NetBSD: PLIST,v 1.48 2026/10/05 07:37:32 wiz Exp $
bin/dmypy-${PYVERSSUFFIX}
bin/mypy-${PYVERSSUFFIX}
bin/mypyc-${PYVERSSUFFIX}
@@ -1621,6 +1621,7 @@ ${PYSITELIB}/mypyc/lib-rt/internal/librt
${PYSITELIB}/mypyc/lib-rt/internal/librt_internal_api.c
${PYSITELIB}/mypyc/lib-rt/internal/librt_internal_api.h
${PYSITELIB}/mypyc/lib-rt/list_ops.c
+${PYSITELIB}/mypyc/lib-rt/locks.c
${PYSITELIB}/mypyc/lib-rt/misc_ops.c
${PYSITELIB}/mypyc/lib-rt/module_shim.tmpl
${PYSITELIB}/mypyc/lib-rt/module_shim_no_gil_multiphase.tmpl
@@ -1785,6 +1786,9 @@ ${PYSITELIB}/mypyc/test/test_analysis.py
${PYSITELIB}/mypyc/test/test_annotate.py
${PYSITELIB}/mypyc/test/test_annotate.pyc
${PYSITELIB}/mypyc/test/test_annotate.pyo
+${PYSITELIB}/mypyc/test/test_borrow_generator_attrs.py
+${PYSITELIB}/mypyc/test/test_borrow_generator_attrs.pyc
+${PYSITELIB}/mypyc/test/test_borrow_generator_attrs.pyo
${PYSITELIB}/mypyc/test/test_capsule_deps.py
${PYSITELIB}/mypyc/test/test_capsule_deps.pyc
${PYSITELIB}/mypyc/test/test_capsule_deps.pyo
@@ -1818,6 +1822,9 @@ ${PYSITELIB}/mypyc/test/test_expand_rtyp
${PYSITELIB}/mypyc/test/test_external.py
${PYSITELIB}/mypyc/test/test_external.pyc
${PYSITELIB}/mypyc/test/test_external.pyo
+${PYSITELIB}/mypyc/test/test_generator_spills.py
+${PYSITELIB}/mypyc/test/test_generator_spills.pyc
+${PYSITELIB}/mypyc/test/test_generator_spills.pyo
${PYSITELIB}/mypyc/test/test_irbuild.py
${PYSITELIB}/mypyc/test/test_irbuild.pyc
${PYSITELIB}/mypyc/test/test_irbuild.pyo
@@ -1854,6 +1861,9 @@ ${PYSITELIB}/mypyc/test/test_run.pyo
${PYSITELIB}/mypyc/test/test_serialization.py
${PYSITELIB}/mypyc/test/test_serialization.pyc
${PYSITELIB}/mypyc/test/test_serialization.pyo
+${PYSITELIB}/mypyc/test/test_spill.py
+${PYSITELIB}/mypyc/test/test_spill.pyc
+${PYSITELIB}/mypyc/test/test_spill.pyo
${PYSITELIB}/mypyc/test/test_statement.py
${PYSITELIB}/mypyc/test/test_statement.pyc
${PYSITELIB}/mypyc/test/test_statement.pyo
@@ -1872,6 +1882,9 @@ ${PYSITELIB}/mypyc/test/testutil.pyo
${PYSITELIB}/mypyc/transform/__init__.py
${PYSITELIB}/mypyc/transform/__init__.pyc
${PYSITELIB}/mypyc/transform/__init__.pyo
+${PYSITELIB}/mypyc/transform/borrow_generator_attrs.py
+${PYSITELIB}/mypyc/transform/borrow_generator_attrs.pyc
+${PYSITELIB}/mypyc/transform/borrow_generator_attrs.pyo
${PYSITELIB}/mypyc/transform/copy_propagation.py
${PYSITELIB}/mypyc/transform/copy_propagation.pyc
${PYSITELIB}/mypyc/transform/copy_propagation.pyo
@@ -1881,6 +1894,9 @@ ${PYSITELIB}/mypyc/transform/exceptions.
${PYSITELIB}/mypyc/transform/flag_elimination.py
${PYSITELIB}/mypyc/transform/flag_elimination.pyc
${PYSITELIB}/mypyc/transform/flag_elimination.pyo
+${PYSITELIB}/mypyc/transform/generator_spills.py
+${PYSITELIB}/mypyc/transform/generator_spills.pyc
+${PYSITELIB}/mypyc/transform/generator_spills.pyo
${PYSITELIB}/mypyc/transform/ir_transform.py
${PYSITELIB}/mypyc/transform/ir_transform.pyc
${PYSITELIB}/mypyc/transform/ir_transform.pyo
Index: pkgsrc/lang/py-mypy/distinfo
diff -u pkgsrc/lang/py-mypy/distinfo:1.69 pkgsrc/lang/py-mypy/distinfo:1.70
--- pkgsrc/lang/py-mypy/distinfo:1.69 Sun Aug 16 12:41:03 2026
+++ pkgsrc/lang/py-mypy/distinfo Mon Oct 5 07:37:32 2026
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.69 2026/08/16 12:41:03 wiz Exp $
+$NetBSD: distinfo,v 1.70 2026/10/05 07:37:32 wiz Exp $
-BLAKE2s (mypy-2.3.1.tar.gz) = 0dfa9109873ee0c72033e071c38161247999f5d4c9059ac6cb77466125d160c2
-SHA512 (mypy-2.3.1.tar.gz) = e534ed563b641cf0812d69673fab749528b285d4ead3eff2606c7076bf18cdc96438c98e342e75f586aa5228dfb19c33387741eccbff891f92db9f09d31def29
-Size (mypy-2.3.1.tar.gz) = 3992554 bytes
+BLAKE2s (mypy-2.4.0.tar.gz) = 2bbfaf8e05f7e6f5c31be51d1a86518a1bcabfcda80adac0eec392b2544f59e5
+SHA512 (mypy-2.4.0.tar.gz) = 9ca9c8f1618d4384978fdce7705bef061a8ba196db537261bb59a30f8d0ff208fca4fe62b2a06848e043d8b032d606fb28f7be9938169e85a6f52c81742674b9
+Size (mypy-2.4.0.tar.gz) = 4064425 bytes
+SHA1 (patch-mypy_util.py) = 9bf5722ee5061b92f6d8886d899b7d1f9e682fc2
Added files:
Index: pkgsrc/lang/py-mypy/patches/patch-mypy_util.py
diff -u /dev/null pkgsrc/lang/py-mypy/patches/patch-mypy_util.py:1.1
--- /dev/null Mon Oct 5 07:37:32 2026
+++ pkgsrc/lang/py-mypy/patches/patch-mypy_util.py Mon Oct 5 07:37:32 2026
@@ -0,0 +1,16 @@
+$NetBSD: patch-mypy_util.py,v 1.1 2026/10/05 07:37:32 wiz Exp $
+
+Avoid using non-existent psutil functionality.
+https://github.com/python/mypy/issues/22103
+
+--- mypy/util.py.orig 2026-10-05 07:29:49.089700218 +0000
++++ mypy/util.py
+@@ -1009,7 +1009,7 @@ def get_available_threads() -> int:
+ # Not available on old Python versions on some platforms.
+ if sys.platform == "linux":
+ affinity = os.sched_getaffinity(0)
+- if PSUTIL_AVAILABLE and sys.platform != "darwin":
++ if PSUTIL_AVAILABLE and (psutil.LINUX or psutil.WINDOWS or psutil.FREEBSD):
+ # Currently not supported on macOS.
+ affinity = psutil.Process().cpu_affinity()
+
Home |
Main Index |
Thread Index |
Old Index