From 8d5dbd847cbc704a6a06405856e94b461011afe3 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 27 Mar 2021 06:06:27 +0000 Subject: gentoo resync : 27.03.2021 --- dev-python/mypy/Manifest | 11 +- dev-python/mypy/files/mypy-0.790-py39-fixes.patch | 161 ---------------------- dev-python/mypy/metadata.xml | 1 + dev-python/mypy/mypy-0.790.ebuild | 76 ---------- dev-python/mypy/mypy-0.800.ebuild | 64 --------- dev-python/mypy/mypy-0.812-r1.ebuild | 61 ++++++++ dev-python/mypy/mypy-0.812.ebuild | 60 -------- 7 files changed, 64 insertions(+), 370 deletions(-) delete mode 100644 dev-python/mypy/files/mypy-0.790-py39-fixes.patch delete mode 100644 dev-python/mypy/mypy-0.790.ebuild delete mode 100644 dev-python/mypy/mypy-0.800.ebuild create mode 100644 dev-python/mypy/mypy-0.812-r1.ebuild delete mode 100644 dev-python/mypy/mypy-0.812.ebuild (limited to 'dev-python/mypy') diff --git a/dev-python/mypy/Manifest b/dev-python/mypy/Manifest index f172d8206c52..814076448f45 100644 --- a/dev-python/mypy/Manifest +++ b/dev-python/mypy/Manifest @@ -1,11 +1,4 @@ -AUX mypy-0.790-py39-fixes.patch 6631 BLAKE2B 97f2960e231d70c7fcdd3439806ed60c9b81348e920385e7c4c0ed458877bd295199cac75cf2f5a428acefed292af57416423ce7f689667c61d0f822487c1fd1 SHA512 17e353e019064321c62fa3820a7e934a43d03bd179e0a5fc9514d55478d81ab2c851c028703478e5f9dabe2e8d8414335f27ab764bc7fded1afedb794cc09b1e -DIST mypy-0.790.tar.gz 2082487 BLAKE2B f8efcb701b4b7533306948721968c9a01ab6c6e56ec99fe6c36e35aca50b52f29f518aee2268a628539a372b8024094ef2d4d87da580b4dd667f41133351596e SHA512 be670456bb64cd197bb6a73832b7e0fd6439ae4af128212328a41cd93d9f644a82e79ffb05bf4695e99bd9788244a24916bf765cf30a6f162cf3b471f45c25b8 -DIST mypy-0.800.tar.gz 2119165 BLAKE2B 48ead6c893f7055f4b1c0167f61e07b647a15f3a13688e1a93f11ebfdfe70ec3ccba3678bb5cf0e61af8dacfa64c241e5b79f28af55e8bfc5ce0a81c409deca9 SHA512 e267fa288f9c538e5c1d0a115b353aabbfbbd46a372dbaefbf43abeae1e6b88cc1b3e0bb301881f20e20b4e69eeeff4be22cf330bf58eaad09b4ea152ab02c12 DIST mypy-0.812.tar.gz 2122474 BLAKE2B 3bfbfe3010798d49bcf00aa1d926ffa8a54be50fb2e88f4ffc3cde3edba80a9b74853de17126394dc1806c07b740b5f8e7775f2fe4b2312e0a85134b446a690b SHA512 ee89f56a7a01214540f9b727f153a075a097b161b7f654d926d1080ae540ec68303629a4fe691fcb53d37c3eb08924bf01d22cdf1c3761b414a3bc40af3363e6 -DIST mypy-typeshed-5be9c91.tar.gz 583006 BLAKE2B 08ab2b6d479ccc66493524482051e825c65c0a94ea5cac8e56a8ea1dca85eda6104e4ed3188b7d5ce1ea99058019d66a21a7e270e3ad9df694be67ea1e6a7ce9 SHA512 2912bcf66e0f550941eb9c1f34979644857448a4bec478cfc0d662e9a401ade93ccfb2f57b5348504b4d6f0f23e576da609167f1ec3a0861414fc9c7dea80243 -DIST typeshed-8cad322a8ccf4b104cafbac2c798413edaa4f327.tar.gz 600618 BLAKE2B acc4397fba21db1bcc7b3ca0922fb561d19161579062e1ee506cadfbbb1de952e36fab6ce552bdca932757274c882a90a948e9dfc257905d7f2e90de9f22bf55 SHA512 728808a568074310bd700a6fe3d667ced01a36f4a6ed2fa6df9d7a784e3167e2c96f7b91dcca1f99d50e325165f3ddea6bbafeab2469a9105c1cb217f16beded DIST typeshed-add4d92f050fb11d3901c6f0ee579a122d4a7a98.tar.gz 600241 BLAKE2B 2bf91ba7bfa2ed3e2369d70ab76ce152e00f321e79f36ef7c264d477e350579eaade222e8347b4105fb93b847d944ce0aa182466ce636649098a2df69c09ee5d SHA512 8497ee9719e162f84556407296d383e0b7e695cf6cd60bbf7f34c1d7aada3926fd5516ce7ea3863e11b3bcb87f12617733082f020718610e467877872f0b4487 -EBUILD mypy-0.790.ebuild 2408 BLAKE2B c07db4bad815ae14842dccdfcd59bf3b3f8dee1bea6de40ad0d20d3c2927988fa34b2f92bd7887d6e6598d507064dd5c980dfc0aa32f47d5ddd3bc6101bfc6e8 SHA512 2b28d201a00b246c904888d7b738a288ecc0c1c0ddbbed26fdd7ebb38c84a64c1b368a42972d642d88950465973c03dbc91d98620160a18daf921a7f07a536e6 -EBUILD mypy-0.800.ebuild 1965 BLAKE2B 43654bacc7196e199f0c84e1006cebb2b344fcd658227296f25f79ed34c43c12ffdb777b7987824da815d45e15dca35159a234c7d005df1a697683eea70e13cd SHA512 013464308be532afd39cb6c31bbd5258e4c4beeb67b569cdf721bd4a3ed2dddd466659e611437710fa7341feb160ba8ee6551cf43fb4070d3f072fd520cdb915 -EBUILD mypy-0.812.ebuild 1796 BLAKE2B 0f0804dcd2b1eeb673af6f9872b1fba813abbaccad65172826c3cc461c4614ff20d65d529aa1c3f7e11f016ea7ad09e28fdae15920c3892e8ec6c265dd02e454 SHA512 6d4e5bcd86459cfdc89b1097016e71e2cfca2ffd00adfe0fbbf9fa5726265b08eb1475a86f04aead3823f2cf8fc8804e0283890418b206d31b57744cf8bb82c9 -MISC metadata.xml 562 BLAKE2B 8d5318efba2b5cfca8db1d17411199e7d744e8ff5ab11899ccb882c13079a8c65e9d434cd64af37e7dd556078d4f0f9a9298d30840128a36e424526160ada4df SHA512 d8194e6ed968d98dacf4a5b86f7fe5ff9f0983fb5204ef43bde42896fb2496a0a36c4e5fd6e8a0e0d963d55065f95861b5e890cceeddd57dbd57d8b9e7c2df5c +EBUILD mypy-0.812-r1.ebuild 1772 BLAKE2B 15065f178eb5205fc041b3fc49517f42f770ffdaefd688cfa54c7846232bcb2f1292f1a37c4168ca7962578add3b490a739a91f9133e592b7c64fd4c51a93f11 SHA512 608f51989f8ce28ccc3982c6b4206386a9d8fb31f496925a5311f86df871c2dafbcf2fd0b2a353d1b1b87014ce6a532fe9370e9c67320b845c8e5ab88e2c794b +MISC metadata.xml 586 BLAKE2B a75692d2b46a9bac5362c4a5111de861297ae5829654d14fa7eaeaaad8eee2ab784017e073423a0e4c8dc845f035884de80c72c73921c01d5fec5b05c3a71c2c SHA512 79916a4aa04010ce67ad08386f0b7e03dfdc6fc0a6195b376c4cd1207ccc408b275efbb3338313db467e3b8fef7abaf93445dc92defa8b9043e497216e0f1045 diff --git a/dev-python/mypy/files/mypy-0.790-py39-fixes.patch b/dev-python/mypy/files/mypy-0.790-py39-fixes.patch deleted file mode 100644 index a7a581ea8969..000000000000 --- a/dev-python/mypy/files/mypy-0.790-py39-fixes.patch +++ /dev/null @@ -1,161 +0,0 @@ -From 13ae58ffe8bedb7da9f4c657297f0d61e681d671 Mon Sep 17 00:00:00 2001 -From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> -Date: Sun, 30 Aug 2020 18:11:57 -0700 -Subject: [PATCH] mypy: get CI green for py39 (#9376) - -Due to Python 3.9's new parser, this has a different (and better) error -message on Python 3.9. - -This is effectively a test of typed_ast / ast, so I don't think it -matters too much. I'm happy to alternatively just get rid of the test -altogether, or if people feel strongly, come up with a way to run the -test when run with older Pythons. - -Co-authored-by: hauntsaninja <> ---- - .travis.yml | 3 --- - mypy/test/testcheck.py | 2 ++ - test-data/unit/check-kwargs.test | 7 ------- - test-data/unit/check-python39.test | 9 +++++++++ - 4 files changed, 11 insertions(+), 10 deletions(-) - create mode 100644 test-data/unit/check-python39.test - -diff --git a/mypy/test/testcheck.py b/mypy/test/testcheck.py -index 49a85861b6..39a35c7280 100644 ---- a/mypy/test/testcheck.py -+++ b/mypy/test/testcheck.py -@@ -94,6 +94,8 @@ - # Tests that use Python 3.8-only AST features (like expression-scoped ignores): - if sys.version_info >= (3, 8): - typecheck_files.append('check-python38.test') -+if sys.version_info >= (3, 9): -+ typecheck_files.append('check-python39.test') - - # Special tests for platforms with case-insensitive filesystems. - if sys.platform in ('darwin', 'win32'): -diff --git a/test-data/unit/check-kwargs.test b/test-data/unit/check-kwargs.test -index 1dd450caae..a587be3e06 100644 ---- a/test-data/unit/check-kwargs.test -+++ b/test-data/unit/check-kwargs.test -@@ -53,13 +53,6 @@ f(b=[], a=A()) - class A: pass - [builtins fixtures/list.pyi] - --[case testGivingSameKeywordArgumentTwice] --import typing --def f(a: 'A', b: 'B') -> None: pass --f(a=A(), b=B(), a=A()) # E: keyword argument repeated --class A: pass --class B: pass -- - [case testGivingArgumentAsPositionalAndKeywordArg] - import typing - def f(a: 'A', b: 'B' = None) -> None: pass -diff --git a/test-data/unit/check-python39.test b/test-data/unit/check-python39.test -new file mode 100644 -index 0000000000..0e9ec683ae ---- /dev/null -+++ b/test-data/unit/check-python39.test -@@ -0,0 +1,9 @@ -+[case testGivingSameKeywordArgumentTwice] -+# This test was originally in check-kwargs.test -+# Python 3.9's new parser started producing a different error message here. Since this isn't the -+# most important test, to deal with this we'll only run this test with Python 3.9 and later. -+import typing -+def f(a: 'A', b: 'B') -> None: pass -+f(a=A(), b=B(), a=A()) # E: "f" gets multiple values for keyword argument "a" -+class A: pass -+class B: pass -From ab1bd98cc8a6415398121a47c687ede6f4cca4fd Mon Sep 17 00:00:00 2001 -From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> -Date: Thu, 8 Oct 2020 11:18:18 -0700 -Subject: [PATCH] py39: fix mypyc complaint (#9552) - -I was trying to build wheels for Python 3.9 as part of #9536, but ran -into this issue. You'll notice a couple hundred lines up msullivan -points out that mypyc can't handle conditional method definition, so -that's not an option here. - -Co-authored-by: hauntsaninja <> ---- - mypy/fastparse.py | 6 ++++-- - 1 file changed, 4 insertions(+), 2 deletions(-) - -diff --git a/mypy/fastparse.py b/mypy/fastparse.py -index 2dafbf4e14..0b72214100 100644 ---- a/mypy/fastparse.py -+++ b/mypy/fastparse.py -@@ -1257,11 +1257,13 @@ def visit_Slice(self, n: ast3.Slice) -> SliceExpr: - - # ExtSlice(slice* dims) - def visit_ExtSlice(self, n: ast3.ExtSlice) -> TupleExpr: -- return TupleExpr(self.translate_expr_list(n.dims)) -+ # cast for mypyc's benefit on Python 3.9 -+ return TupleExpr(self.translate_expr_list(cast(Any, n.dims))) - - # Index(expr value) - def visit_Index(self, n: Index) -> Node: -- return self.visit(n.value) -+ # cast for mypyc's benefit on Python 3.9 -+ return self.visit(cast(Any, n.value)) - - - class TypeConverter: -From ffed88fb95fcbfdd1363f0f719bd3e13f8fe20e9 Mon Sep 17 00:00:00 2001 -From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> -Date: Thu, 8 Oct 2020 15:00:42 -0700 -Subject: [PATCH] py39: fix mypyc complaints part 2 (#9562) - -Necessary because I previously didn't actually fix mypyc's complaint + -mypyc has more complaints. -The sys.version_info aliasing works around us hitting -https://github.com/python/mypy/blob/08f207ef4a09f56d710d63775771ae921c41d4bc/mypyc/irbuild/expression.py#L44 - -Co-authored-by: hauntsaninja <> ---- - mypy/fastparse.py | 12 ++++++++---- - 1 file changed, 8 insertions(+), 4 deletions(-) - -diff --git a/mypy/fastparse.py b/mypy/fastparse.py -index 0b72214100..3319cd6489 100644 ---- a/mypy/fastparse.py -+++ b/mypy/fastparse.py -@@ -169,7 +169,9 @@ def parse(source: Union[str, bytes], - tree.path = fnam - tree.is_stub = is_stub_file - except SyntaxError as e: -- if sys.version_info < (3, 9) and e.filename == "": -+ # alias to please mypyc -+ is_py38_or_earlier = sys.version_info < (3, 9) -+ if is_py38_or_earlier and e.filename == "": - # In Python 3.8 and earlier, syntax errors in f-strings have lineno relative to the - # start of the f-string. This would be misleading, as mypy will report the error as the - # lineno within the file. -@@ -1210,9 +1212,11 @@ def visit_Attribute(self, n: Attribute) -> Union[MemberExpr, SuperExpr]: - def visit_Subscript(self, n: ast3.Subscript) -> IndexExpr: - e = IndexExpr(self.visit(n.value), self.visit(n.slice)) - self.set_line(e, n) -+ # alias to please mypyc -+ is_py38_or_earlier = sys.version_info < (3, 9) - if ( - isinstance(n.slice, ast3.Slice) or -- (sys.version_info < (3, 9) and isinstance(n.slice, ast3.ExtSlice)) -+ (is_py38_or_earlier and isinstance(n.slice, ast3.ExtSlice)) - ): - # Before Python 3.9, Slice has no line/column in the raw ast. To avoid incompatibility - # visit_Slice doesn't set_line, even in Python 3.9 on. -@@ -1258,12 +1262,12 @@ def visit_Slice(self, n: ast3.Slice) -> SliceExpr: - # ExtSlice(slice* dims) - def visit_ExtSlice(self, n: ast3.ExtSlice) -> TupleExpr: - # cast for mypyc's benefit on Python 3.9 -- return TupleExpr(self.translate_expr_list(cast(Any, n.dims))) -+ return TupleExpr(self.translate_expr_list(cast(Any, n).dims)) - - # Index(expr value) - def visit_Index(self, n: Index) -> Node: - # cast for mypyc's benefit on Python 3.9 -- return self.visit(cast(Any, n.value)) -+ return self.visit(cast(Any, n).value) - - - class TypeConverter: diff --git a/dev-python/mypy/metadata.xml b/dev-python/mypy/metadata.xml index c7660c80368e..5965190b13e4 100644 --- a/dev-python/mypy/metadata.xml +++ b/dev-python/mypy/metadata.xml @@ -9,6 +9,7 @@ python@gentoo.org Python + python/mypy mypy diff --git a/dev-python/mypy/mypy-0.790.ebuild b/dev-python/mypy/mypy-0.790.ebuild deleted file mode 100644 index 35743fc52044..000000000000 --- a/dev-python/mypy/mypy-0.790.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7..9} ) -DISTUTILS_USE_SETUPTOOLS=rdepend - -inherit distutils-r1 - -DESCRIPTION="Optional static typing for Python" -HOMEPAGE="http://www.mypy-lang.org/" -# One module is missing from the PyPI tarball -# https://github.com/python/mypy/pull/9587 -# conftest.py is missing at the moment -# https://github.com/python/mypy/pull/9543 -TYPESHED_COMMIT="5be9c91" -SRC_URI=" - https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz - https://api.github.com/repos/python/typeshed/tarball/${TYPESHED_COMMIT} -> mypy-typeshed-${TYPESHED_COMMIT}.tar.gz -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 sparc x86" - -# stubgen collides with this package: https://bugs.gentoo.org/585594 -RDEPEND=" - !dev-util/stubgen - >=dev-python/psutil-4[${PYTHON_USEDEP}] - >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] - =dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] - >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] -