pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/py-mypy py-mypy: updated to 0.930



details:   https://anonhg.NetBSD.org/pkgsrc/rev/496de5f17424
branches:  trunk
changeset: 771979:496de5f17424
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Dec 30 21:19:26 2021 +0000

description:
py-mypy: updated to 0.930

Mypy 0.930
New Feature: Explicit Type Aliases (PEP 613)
New Feature: NotRequired in TypedDicts
New Feature: ParamSpec (Experimental)

Optimizations

This release includes some optimizations that make mypy a bit faster (in addition to mypyc performance improvements discussed below):

Enable --fast-exit by default to speed up mypy
Only read the stdlib versions dictionary once per run
Optimize commonly used function
Minor optimization/cleanup
Reduce the number of executed local imports

Mypyc Fixes and Improvements

Add missing type coercions
Support --allow-redefinition
Constant fold integer operations and string concatenation
Use optimized implementation for builtins.sum
Move mypyc to console_scripts to fix running on Windows 10
Make min(x, y) faster
Make max(x, y) faster
Speed up reference counting operations by inlining them in commonly executed blocks
Add support for attrs classes
Port mypyc to Python 3.11
Reduce the amount of debug information included in compiled extension modules

diffstat:

 lang/py-mypy/Makefile |   8 ++++----
 lang/py-mypy/PLIST    |  24 ++++++++++++++++++++----
 lang/py-mypy/distinfo |   8 ++++----
 3 files changed, 28 insertions(+), 12 deletions(-)

diffs (129 lines):

diff -r b72f096e2131 -r 496de5f17424 lang/py-mypy/Makefile
--- a/lang/py-mypy/Makefile     Thu Dec 30 20:42:12 2021 +0000
+++ b/lang/py-mypy/Makefile     Thu Dec 30 21:19:26 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.23 2021/12/16 07:43:44 adam Exp $
+# $NetBSD: Makefile,v 1.24 2021/12/30 21:19:26 adam Exp $
 
-DISTNAME=      mypy-0.920
+DISTNAME=      mypy-0.930
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    lang python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=m/mypy/}
@@ -11,8 +11,8 @@
 LICENSE=       mit
 
 DEPENDS+=      ${PYPKGPREFIX}-mypy_extensions>=0.4.3:../../lang/py-mypy_extensions
-DEPENDS+=      ${PYPKGPREFIX}-toml-[0-9]*:../../textproc/py-toml
-DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>=3.7.4:../../devel/py-typing-extensions
+DEPENDS+=      ${PYPKGPREFIX}-tomli>=1.1.0:../../textproc/py-tomli
+DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>=3.10:../../devel/py-typing-extensions
 
 USE_LANGUAGES= # none
 
diff -r b72f096e2131 -r 496de5f17424 lang/py-mypy/PLIST
--- a/lang/py-mypy/PLIST        Thu Dec 30 20:42:12 2021 +0000
+++ b/lang/py-mypy/PLIST        Thu Dec 30 21:19:26 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.18 2021/12/16 07:43:44 adam Exp $
+@comment $NetBSD: PLIST,v 1.19 2021/12/30 21:19:26 adam Exp $
 bin/dmypy-${PYVERSSUFFIX}
 bin/mypy-${PYVERSSUFFIX}
 bin/mypyc-${PYVERSSUFFIX}
@@ -341,9 +341,6 @@
 ${PYSITELIB}/mypy/test/__init__.py
 ${PYSITELIB}/mypy/test/__init__.pyc
 ${PYSITELIB}/mypy/test/__init__.pyo
-${PYSITELIB}/mypy/test/collect.py
-${PYSITELIB}/mypy/test/collect.pyc
-${PYSITELIB}/mypy/test/collect.pyo
 ${PYSITELIB}/mypy/test/config.py
 ${PYSITELIB}/mypy/test/config.pyc
 ${PYSITELIB}/mypy/test/config.pyo
@@ -1399,12 +1396,21 @@
 ${PYSITELIB}/mypyc/__init__.py
 ${PYSITELIB}/mypyc/__init__.pyc
 ${PYSITELIB}/mypyc/__init__.pyo
+${PYSITELIB}/mypyc/__main__.py
+${PYSITELIB}/mypyc/__main__.pyc
+${PYSITELIB}/mypyc/__main__.pyo
 ${PYSITELIB}/mypyc/analysis/__init__.py
 ${PYSITELIB}/mypyc/analysis/__init__.pyc
 ${PYSITELIB}/mypyc/analysis/__init__.pyo
+${PYSITELIB}/mypyc/analysis/blockfreq.py
+${PYSITELIB}/mypyc/analysis/blockfreq.pyc
+${PYSITELIB}/mypyc/analysis/blockfreq.pyo
 ${PYSITELIB}/mypyc/analysis/dataflow.py
 ${PYSITELIB}/mypyc/analysis/dataflow.pyc
 ${PYSITELIB}/mypyc/analysis/dataflow.pyo
+${PYSITELIB}/mypyc/analysis/ircheck.py
+${PYSITELIB}/mypyc/analysis/ircheck.pyc
+${PYSITELIB}/mypyc/analysis/ircheck.pyo
 ${PYSITELIB}/mypyc/build.py
 ${PYSITELIB}/mypyc/build.pyc
 ${PYSITELIB}/mypyc/build.pyo
@@ -1540,6 +1546,9 @@
 ${PYSITELIB}/mypyc/irbuild/classdef.py
 ${PYSITELIB}/mypyc/irbuild/classdef.pyc
 ${PYSITELIB}/mypyc/irbuild/classdef.pyo
+${PYSITELIB}/mypyc/irbuild/constant_fold.py
+${PYSITELIB}/mypyc/irbuild/constant_fold.pyc
+${PYSITELIB}/mypyc/irbuild/constant_fold.pyo
 ${PYSITELIB}/mypyc/irbuild/context.py
 ${PYSITELIB}/mypyc/irbuild/context.pyc
 ${PYSITELIB}/mypyc/irbuild/context.pyo
@@ -1610,6 +1619,7 @@
 ${PYSITELIB}/mypyc/lib-rt/misc_ops.c
 ${PYSITELIB}/mypyc/lib-rt/module_shim.tmpl
 ${PYSITELIB}/mypyc/lib-rt/mypyc_util.h
+${PYSITELIB}/mypyc/lib-rt/pythoncapi_compat.h
 ${PYSITELIB}/mypyc/lib-rt/pythonsupport.h
 ${PYSITELIB}/mypyc/lib-rt/set_ops.c
 ${PYSITELIB}/mypyc/lib-rt/setup.py
@@ -1677,6 +1687,7 @@
 ${PYSITELIB}/mypyc/test-data/driver/driver.py
 ${PYSITELIB}/mypyc/test-data/driver/driver.pyc
 ${PYSITELIB}/mypyc/test-data/driver/driver.pyo
+${PYSITELIB}/mypyc/test-data/exceptions-freq.test
 ${PYSITELIB}/mypyc/test-data/exceptions.test
 ${PYSITELIB}/mypyc/test-data/fixtures/ir.py
 ${PYSITELIB}/mypyc/test-data/fixtures/ir.pyc
@@ -1689,6 +1700,7 @@
 ${PYSITELIB}/mypyc/test-data/irbuild-basic.test
 ${PYSITELIB}/mypyc/test-data/irbuild-bytes.test
 ${PYSITELIB}/mypyc/test-data/irbuild-classes.test
+${PYSITELIB}/mypyc/test-data/irbuild-constant-fold.test
 ${PYSITELIB}/mypyc/test-data/irbuild-dict.test
 ${PYSITELIB}/mypyc/test-data/irbuild-dunders.test
 ${PYSITELIB}/mypyc/test-data/irbuild-generics.test
@@ -1707,6 +1719,7 @@
 ${PYSITELIB}/mypyc/test-data/irbuild-unreachable.test
 ${PYSITELIB}/mypyc/test-data/irbuild-vectorcall.test
 ${PYSITELIB}/mypyc/test-data/refcount.test
+${PYSITELIB}/mypyc/test-data/run-attrs.test
 ${PYSITELIB}/mypyc/test-data/run-bench.test
 ${PYSITELIB}/mypyc/test-data/run-bools.test
 ${PYSITELIB}/mypyc/test-data/run-bytes.test
@@ -1768,6 +1781,9 @@
 ${PYSITELIB}/mypyc/test/test_irbuild.py
 ${PYSITELIB}/mypyc/test/test_irbuild.pyc
 ${PYSITELIB}/mypyc/test/test_irbuild.pyo
+${PYSITELIB}/mypyc/test/test_ircheck.py
+${PYSITELIB}/mypyc/test/test_ircheck.pyc
+${PYSITELIB}/mypyc/test/test_ircheck.pyo
 ${PYSITELIB}/mypyc/test/test_literals.py
 ${PYSITELIB}/mypyc/test/test_literals.pyc
 ${PYSITELIB}/mypyc/test/test_literals.pyo
diff -r b72f096e2131 -r 496de5f17424 lang/py-mypy/distinfo
--- a/lang/py-mypy/distinfo     Thu Dec 30 20:42:12 2021 +0000
+++ b/lang/py-mypy/distinfo     Thu Dec 30 21:19:26 2021 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.23 2021/12/16 07:43:44 adam Exp $
+$NetBSD: distinfo,v 1.24 2021/12/30 21:19:26 adam Exp $
 
-BLAKE2s (mypy-0.920.tar.gz) = 96f60b256f42ba14f99d0241b58ff1902cd27bd8d5654d91b582a32306ecbe11
-SHA512 (mypy-0.920.tar.gz) = d0d162b1874dce411449fedbbc366082b4cdefe2289dcc05c445749cfa201100f7626b2b5d22a40fb02c627f3f93669919048000c9302333cfb9dc427dada4b9
-Size (mypy-0.920.tar.gz) = 2680866 bytes
+BLAKE2s (mypy-0.930.tar.gz) = 44e734b8b8a3934b3a983d605f990b22df40e5a946ebc881fdadc6ebbed88cd9
+SHA512 (mypy-0.930.tar.gz) = 64e9aeea260a657867b88f32a5d0e8ebd8c90e0f402b07e96f4620f7945e6982a55d7b7fccdc0d1d610eb032d61e25f2ac9cd7a2660a7ccadb86bc8c24a0b466
+Size (mypy-0.930.tar.gz) = 2727175 bytes



Home | Main Index | Thread Index | Old Index