summaryrefslogtreecommitdiff
path: root/dev-python/mypy
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-05-12 16:42:50 +0300
committerV3n3RiX <venerix@koprulu.sector>2022-05-12 16:42:50 +0300
commit752d6256e5204b958b0ef7905675a940b5e9172f (patch)
tree330d16e6362a49cbed8875a777fe641a43376cd3 /dev-python/mypy
parent0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff)
gentoo resync : 12.05.2022
Diffstat (limited to 'dev-python/mypy')
-rw-r--r--dev-python/mypy/Manifest17
-rw-r--r--dev-python/mypy/files/mypy-0.910-py3.10-tests.patch51
-rw-r--r--dev-python/mypy/mypy-0.910-r1.ebuild68
-rw-r--r--dev-python/mypy/mypy-0.930.ebuild64
-rw-r--r--dev-python/mypy/mypy-0.931.ebuild64
-rw-r--r--dev-python/mypy/mypy-0.940.ebuild66
-rw-r--r--dev-python/mypy/mypy-0.941.ebuild66
-rw-r--r--dev-python/mypy/mypy-0.942.ebuild2
-rw-r--r--dev-python/mypy/mypy-0.950.ebuild (renamed from dev-python/mypy/mypy-0.921.ebuild)22
9 files changed, 12 insertions, 408 deletions
diff --git a/dev-python/mypy/Manifest b/dev-python/mypy/Manifest
index eaf8e4b0d1cb..ad04d8fd8c53 100644
--- a/dev-python/mypy/Manifest
+++ b/dev-python/mypy/Manifest
@@ -1,16 +1,5 @@
-AUX mypy-0.910-py3.10-tests.patch 1821 BLAKE2B fda18540f14b0fcba8d57bb7e072135f7415ecc39750424ee03fca835ab65491fb8966326e7f51b260b7f1b98e9bc408eb04df4a74e6007a5c1c72b28ed8a950 SHA512 64a6b2361260b0ce9bb22e706b2531af4ac2894191c92501274368d92beb159e53b4da6174e7f91ef4b2f7752936d86250b5fe8347beea1bdf223b7abda98414
-DIST mypy-0.910.tar.gz 2551057 BLAKE2B a3c6939c8f0e2ea19a3a3f91031330df2fb25a93cc3f9239535f15c17eedcca5716cc75c5412a1d345d8572d396c3d7128e38989fd694833cb6aec8366ac4afe SHA512 49060c13da8bf17385b6b1db6efa9ac5771f2bac92d26760c4087cf128de22846b8a062f38e83ecff524e7893f8c9cd0647a2ef89e10387138544436a2840459
-DIST mypy-0.921.tar.gz 2730985 BLAKE2B cfb7b54165b961758891fcf225f1a7d6bd9c6a7b14e6bb6d8adb990ed047bc4983b5e82de6709d3b8db85a3914e1bae2be4fd36e878d37db7387ebe6e81daac1 SHA512 f592d440b45a1bbcab973aeb717ffc805164168f1369793067a46bd2884fedcb9f981bfadd3447c6801120042553a7a7110d8cfc4e1649241d3b8685dffef653
-DIST mypy-0.930.tar.gz 2777310 BLAKE2B 4681991993b04679d21c8f6bf8327a02eb628addc289ed22fbf06e4865ee9e60b90ab41a0d0b069d0a50924bf210816bdb87cff902d4424741f4e141f0957684 SHA512 f7f7ed762eb0f56b46a174c51c34423633d72b5046129617e456c41647705380b014c0c27bd0a104319e4872f2a7d7900a260bf6151d4419c95c93e4c01c6e9d
-DIST mypy-0.931.tar.gz 2779826 BLAKE2B 11986102c6bc498a23bae52002e6ac515fa03724eed867b5356e3fb9aaa9a6eb7e699b612ab81b99dac215119402beecc702421fa82d655913976889dd4cb833 SHA512 8a336ae2f784c8ff912fc6b7dd53ed106cf14f435cee65604de74b8d4d7ab39ad65af0646060ef78e958d5a51a1de090fad628461412f2eef9593a8c032aa87a
-DIST mypy-0.940.tar.gz 2700469 BLAKE2B 4ac13002c3752566ade30a720c4de56d600552221c42f930af54a68573e6b5eb10de90ce66e2cd42f9eb419d5d09e354e4bf2d09cbcf0d6b841ab0e6710d7058 SHA512 5131ea3fe8d96f12442c68dddf04261582a063dcdd031804276263949af9f9af967be3dd775868d289709987773e1911f33e1f43951389f93cabf91c771e271f
-DIST mypy-0.941.tar.gz 2700297 BLAKE2B 1d0369336b82c167dc25da8bcc21817b351a65a2543727f08c2e14aa15a75fec21b0937eb09b8060b405c09703b8052d4ed2df65d6e27f5dd429998b110a9e35 SHA512 39ef6e0d9215f0f530ca572d3b701a877f9b968034c2ca5a04549bf6a337a8d3609c23bc45bf45b16209128d26ab2b74bca27ecbdc5de53581429b47fb348aa8
DIST mypy-0.942.tar.gz 2701940 BLAKE2B 5501466e57b4afb8825e6c804cbdc270c79ff457c39f2e5834f4b68df70263c05b2b9abb08fe58202ee65f5e22d2291f39fcb1fc47168416134538c5f6e12ab3 SHA512 79b83587eefad10d7d20d3bfd8484a9e8b2d363e68c1e5ffaa3a82ca8b8f8d9183036ea46695a634f9156911d6f918af684ac636105b37b3a5d0e958f5d661f4
-EBUILD mypy-0.910-r1.ebuild 2064 BLAKE2B 1414bf4e87e49d283ad99c621792f1a8c9d47adff14f426949b3825fa8136db03bb6289fecf9cabb311eadbb7b11e4d808e5d5698224c4b028dd9aff2fcfd98f SHA512 48ac5b30de896c4e4191edc20f6c435aa7fd6d0388a99e00ed51e8d27d7a40298e7ae070c6dc786d6e55d62c0963b809a427f066ef96fc3a2e2d17a33164147c
-EBUILD mypy-0.921.ebuild 1879 BLAKE2B 0939ecbed7865716f208ea6683ffd6c076e769e4e0931d036b57640981e2a7b105dbbf49ade6a35e0eeea376439a58cc781e5ee69c1499dafcb053f9f18488d9 SHA512 5aace31c9a2df86b445ae25c44a2d3e0fd64912add86510de7baea42a3ad77a0fd4e3f86776eea493cb7975955a59f7243e281f1b62e1d84db44dc605a07d9a6
-EBUILD mypy-0.930.ebuild 2035 BLAKE2B 0674851d3f13ea99dbc5ff3e0f220fb83102115ccd6a018a6d4e260264346a9a2994cd3f87b4949f796955c00f84c4e618be969ad944c25060fb8be8ab362032 SHA512 7c27537237030313f6c6a7a5e34de80b6c384181f789e0a90984d96b10249b9c3905e18cb58c981cb645fba85843faec804072b7822cd27150c3175b5eaa9730
-EBUILD mypy-0.931.ebuild 2035 BLAKE2B 58a0dc91ae249505d41ebd2fd0295bed2b83604c7b33280dcfdbcbcd868905faefc4e5f1dcf170651423e7d559730552c7508b67cf987682f739513f04a689ed SHA512 1df3e91820bf6728405582b6722e270d63dd8ec346499abeaa19ff8d7152e1c6fec9a92306df8c3ddf1a6b4b7a069499865c67fabd3141537f739d739a047c06
-EBUILD mypy-0.940.ebuild 2075 BLAKE2B c89447e07672a9fb8ad7e2cd014b5f170d3fc24c980f538a35c3ec71239b307a6a8f72737dbb7c254e957b279205cc573c24846c3e78e628f5dbcdc10008c290 SHA512 bf9708f8a7c0f2cad02993c92f840ffcfc05060f283567a5331d10a6efa87cfe605a175308f7cf78514be0283845c2c050c1797a36e7a255e5609864102d83cc
-EBUILD mypy-0.941.ebuild 2073 BLAKE2B 4bcc8f4c44d99589eba62281ce85a3a9fee25be213be99ab8a1e9b292a79f5842809b4ae6872aa6e0dcb2776724e04514bff162dd9cc0092348c7cdef4da3c11 SHA512 0ec334bb46129b4152d870d7ba2e319fd5c4b97c4b8879da13a3c6ea5b40b5564d17a4dd2233a9f43945d119ded266f4c466c9c8a2a730777b0aabba4072171e
-EBUILD mypy-0.942.ebuild 2075 BLAKE2B c89447e07672a9fb8ad7e2cd014b5f170d3fc24c980f538a35c3ec71239b307a6a8f72737dbb7c254e957b279205cc573c24846c3e78e628f5dbcdc10008c290 SHA512 bf9708f8a7c0f2cad02993c92f840ffcfc05060f283567a5331d10a6efa87cfe605a175308f7cf78514be0283845c2c050c1797a36e7a255e5609864102d83cc
+DIST mypy-0.950.tar.gz 2746164 BLAKE2B 8466012fd3622f5e730acef774115ac84ff8c6f5488213a450de63d5acc790f937b7c69a1b05b46deef6fe8f81a13ed8e85f83c6c22cce9abdbb73b2ecf4179c SHA512 949d1dade3f225bbef0934fff040f7d5aec47039f554a669ca491d6cb46d56de3fcae0186864cdcaf5dec1347bc3af453218520536a0afa77e89a5c0e4640500
+EBUILD mypy-0.942.ebuild 2067 BLAKE2B ae5ed742a488d69d1ab9600d5e163fc44b99fc38effb0eb54892b5ac1029a50ec10b0699c767ac9a92b7b40a8d8957fc317af52b6081adb1c5a5f984f1a1c157 SHA512 20e6e340c0c03a7d081d419c2ff68433d8d1aa947c538744c45da45126fba2cde9bbcb8137f3a16d20cedc6374fdbd5f07559454db009d457903bd8f3b141ca1
+EBUILD mypy-0.950.ebuild 1693 BLAKE2B 8a9104ef8cee35e8da6cad72600b0a7af10ec8a748c3b17ecc40037fbeca7aeda536fcc8a20cb7e2b971def88b0cb05ab34afcbad67138a7043760f0b37b3d53 SHA512 453df7970adc5c4072f39b3c0b82f5a5ab03118ae3a65e2570d175d1b88cb93e3fb44704ba8cbd5cc1887c4e239ca2807789b38f4f2f025911c3af05dd7899ef
MISC metadata.xml 515 BLAKE2B 75827bbbeb70fd4b9295ab4689068d2d4b686b32d4059acde94fb0d08048e9e56ecaf3eec39dc5567b2753e2552353e273cdf2f4e27d077cc9b03320ee09c64b SHA512 c1c3c7a3651e61e0b63ab4462f0370cce9cbdce33e64c5e7a1fbefe8116d5d3d3b35bc4095d8a5ce28caf69b0644af3f13c9a27b683f2f981e52f8bfe4ac8615
diff --git a/dev-python/mypy/files/mypy-0.910-py3.10-tests.patch b/dev-python/mypy/files/mypy-0.910-py3.10-tests.patch
deleted file mode 100644
index 16e85049cc1e..000000000000
--- a/dev-python/mypy/files/mypy-0.910-py3.10-tests.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-diff --git a/mypyc/test-data/run-misc.test b/mypyc/test-data/run-misc.test
-index 431efc228..0c1a26c1b 100644
---- a/mypyc/test-data/run-misc.test
-+++ b/mypyc/test-data/run-misc.test
-@@ -13,8 +13,7 @@ async def g() -> int:
- async def f() -> int:
- return await g()
-
--loop = asyncio.get_event_loop()
--result = loop.run_until_complete(f())
-+result = asyncio.run(f())
- assert result == 1
-
- [typing fixtures/typing-full.pyi]
-@@ -22,8 +21,8 @@ assert result == 1
- [file driver.py]
- from native import f
- import asyncio
--loop = asyncio.get_event_loop()
--result = loop.run_until_complete(f())
-+
-+result = asyncio.run(f())
- assert result == 1
-
- [case testMaybeUninitVar]
-diff --git a/test-data/stdlib-samples/3.2/random.py b/test-data/stdlib-samples/3.2/random.py
-index 7eecdfe04..82bda03f7 100644
---- a/test-data/stdlib-samples/3.2/random.py
-+++ b/test-data/stdlib-samples/3.2/random.py
-@@ -41,7 +41,7 @@ from types import MethodType as _MethodType, BuiltinMethodType as _BuiltinMethod
- from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
- from math import sqrt as _sqrt, acos as _acos, cos as _cos, sin as _sin
- from os import urandom as _urandom
--from collections import Set as _Set, Sequence as _Sequence
-+from collections.abc import Set as _Set, Sequence as _Sequence
- from hashlib import sha512 as _sha512
-
- from typing import (
-diff --git a/test-data/unit/cmdline.test b/test-data/unit/cmdline.test
-index 92ef7e069..87d04f3c4 100644
---- a/test-data/unit/cmdline.test
-+++ b/test-data/unit/cmdline.test
-@@ -791,7 +791,7 @@ c.py:2: error: Argument 1 to "bar" has incompatible type "str"; expected "int"
- [case testSrcPEP420Packages]
- # cmd: mypy -p anamespace --namespace-packages
- [file mypy.ini]
--\[mypy]]
-+\[mypy]
- mypy_path = src
- [file src/setup.cfg]
- [file src/anamespace/foo/__init__.py]
diff --git a/dev-python/mypy/mypy-0.910-r1.ebuild b/dev-python/mypy/mypy-0.910-r1.ebuild
deleted file mode 100644
index dcee802477a7..000000000000
--- a/dev-python/mypy/mypy-0.910-r1.ebuild
+++ /dev/null
@@ -1,68 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{8..10} )
-inherit distutils-r1 multiprocessing
-
-DESCRIPTION="Optional static typing for Python"
-HOMEPAGE="http://www.mypy-lang.org/"
-SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86"
-
-# stubgen collides with this package: https://bugs.gentoo.org/585594
-# Note: replace toml with tomli on next version bump
-# https://github.com/python/mypy/pull/10824
-RDEPEND="
- !dev-util/stubgen
- >=dev-python/psutil-4[${PYTHON_USEDEP}]
- >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}]
- <dev-python/typed-ast-1.5.0[${PYTHON_USEDEP}]
- >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}]
- >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}]
- <dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}]
- dev-python/toml[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- >=dev-python/attrs-18.0[${PYTHON_USEDEP}]
- >=dev-python/lxml-4.4.0[${PYTHON_USEDEP}]
- >=dev-python/pytest-6.1.0[${PYTHON_USEDEP}]
- >=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}]
- >=dev-python/py-1.5.2[${PYTHON_USEDEP}]
- >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}]
- )
-"
-
-distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme
-distutils_enable_tests pytest
-
-PATCHES=(
- # https://github.com/python/mypy/pull/11017
- "${FILESDIR}/${P}-py3.10-tests.patch"
-)
-
-# this requires packaging a lot of type stubs
-export MYPY_USE_MYPYC=0
-
-python_test() {
- local EPYTEST_DESELECT=(
- # Fails with pytest-xdist 2.3.0
- # https://github.com/python/mypy/issues/11019
- mypy/test/teststubtest.py
- )
-
- [[ "${EPYTHON}" == "python3.10" ]] && EPYTEST_DESELECT+=(
- # https://github.com/python/mypy/issues/11018
- mypyc/test/test_commandline.py::TestCommandLine::testErrorOutput
- )
-
- # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests
- # fail with high COLUMNS values
- local -x COLUMNS=80
- epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
-}
diff --git a/dev-python/mypy/mypy-0.930.ebuild b/dev-python/mypy/mypy-0.930.ebuild
deleted file mode 100644
index f1b8dc80aa27..000000000000
--- a/dev-python/mypy/mypy-0.930.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{8..10} )
-inherit distutils-r1 multiprocessing
-
-DESCRIPTION="Optional static typing for Python"
-HOMEPAGE="http://www.mypy-lang.org/"
-SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 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/typed-ast-1.5.0[${PYTHON_USEDEP}]
- >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}]
- >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}]
- <dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}]
- dev-python/tomli[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- >=dev-python/attrs-18.0[${PYTHON_USEDEP}]
- >=dev-python/lxml-4.4.0[${PYTHON_USEDEP}]
- >=dev-python/pytest-6.1.0[${PYTHON_USEDEP}]
- >=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}]
- >=dev-python/py-1.5.2[${PYTHON_USEDEP}]
- >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}]
- >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}]
- )
-"
-
-distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme
-distutils_enable_tests pytest
-
-# this requires packaging a lot of type stubs
-export MYPY_USE_MYPYC=0
-
-python_test() {
- local EPYTEST_DESELECT=(
- # Fails with pytest-xdist 2.3.0
- # https://github.com/python/mypy/issues/11019
- mypy/test/teststubtest.py
- # fails due to setuptools deprecation warnings
- mypyc/test/test_run.py::TestRun::run-imports.test::testImports
- )
-
- [[ "${EPYTHON}" == "python3.10" ]] && EPYTEST_DESELECT+=(
- # https://github.com/python/mypy/issues/11018
- mypyc/test/test_commandline.py::TestCommandLine::testErrorOutput
- )
-
- # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests
- # fail with high COLUMNS values
- local -x COLUMNS=80
- epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
-}
diff --git a/dev-python/mypy/mypy-0.931.ebuild b/dev-python/mypy/mypy-0.931.ebuild
deleted file mode 100644
index 2cbc867f7765..000000000000
--- a/dev-python/mypy/mypy-0.931.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{8..10} )
-inherit distutils-r1 multiprocessing
-
-DESCRIPTION="Optional static typing for Python"
-HOMEPAGE="http://www.mypy-lang.org/"
-SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 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/typed-ast-1.5.0[${PYTHON_USEDEP}]
- >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}]
- >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}]
- <dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}]
- dev-python/tomli[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- >=dev-python/attrs-18.0[${PYTHON_USEDEP}]
- >=dev-python/lxml-4.4.0[${PYTHON_USEDEP}]
- >=dev-python/pytest-6.1.0[${PYTHON_USEDEP}]
- >=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}]
- >=dev-python/py-1.5.2[${PYTHON_USEDEP}]
- >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}]
- >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}]
- )
-"
-
-distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme
-distutils_enable_tests pytest
-
-# this requires packaging a lot of type stubs
-export MYPY_USE_MYPYC=0
-
-python_test() {
- local EPYTEST_DESELECT=(
- # Fails with pytest-xdist 2.3.0
- # https://github.com/python/mypy/issues/11019
- mypy/test/teststubtest.py
- # fails due to setuptools deprecation warnings
- mypyc/test/test_run.py::TestRun::run-imports.test::testImports
- )
-
- [[ "${EPYTHON}" == "python3.10" ]] && EPYTEST_DESELECT+=(
- # https://github.com/python/mypy/issues/11018
- mypyc/test/test_commandline.py::TestCommandLine::testErrorOutput
- )
-
- # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests
- # fail with high COLUMNS values
- local -x COLUMNS=80
- epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
-}
diff --git a/dev-python/mypy/mypy-0.940.ebuild b/dev-python/mypy/mypy-0.940.ebuild
deleted file mode 100644
index aa40a8f0ad7f..000000000000
--- a/dev-python/mypy/mypy-0.940.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{8..10} )
-
-inherit distutils-r1 multiprocessing
-
-DESCRIPTION="Optional static typing for Python"
-HOMEPAGE="http://www.mypy-lang.org/"
-SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~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/typed-ast-1.5.0[${PYTHON_USEDEP}]
- >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}]
- >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}]
- <dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}]
- dev-python/tomli[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- >=dev-python/attrs-18.0[${PYTHON_USEDEP}]
- >=dev-python/lxml-4.4.0[${PYTHON_USEDEP}]
- >=dev-python/pytest-6.1.0[${PYTHON_USEDEP}]
- >=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}]
- >=dev-python/py-1.5.2[${PYTHON_USEDEP}]
- >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}]
- >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}]
- )
-"
-
-distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme
-distutils_enable_tests pytest
-
-# this requires packaging a lot of type stubs
-export MYPY_USE_MYPYC=0
-
-python_test() {
- local EPYTEST_DESELECT=(
- # Fails with pytest-xdist 2.3.0
- # https://github.com/python/mypy/issues/11019
- mypy/test/teststubtest.py
- # fails due to setuptools deprecation warnings
- mypyc/test/test_run.py::TestRun::run-imports.test::testImports
- )
-
- [[ "${EPYTHON}" == "python3.10" ]] && EPYTEST_DESELECT+=(
- # https://github.com/python/mypy/issues/11018
- mypyc/test/test_commandline.py::TestCommandLine::testErrorOutput
- )
-
- # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests
- # fail with high COLUMNS values
- local -x COLUMNS=80
- epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
-}
diff --git a/dev-python/mypy/mypy-0.941.ebuild b/dev-python/mypy/mypy-0.941.ebuild
deleted file mode 100644
index e5acb398fd9a..000000000000
--- a/dev-python/mypy/mypy-0.941.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{8..10} )
-
-inherit distutils-r1 multiprocessing
-
-DESCRIPTION="Optional static typing for Python"
-HOMEPAGE="http://www.mypy-lang.org/"
-SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~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/typed-ast-1.5.0[${PYTHON_USEDEP}]
- >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}]
- >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}]
- <dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}]
- dev-python/tomli[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- >=dev-python/attrs-18.0[${PYTHON_USEDEP}]
- >=dev-python/lxml-4.4.0[${PYTHON_USEDEP}]
- >=dev-python/pytest-6.1.0[${PYTHON_USEDEP}]
- >=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}]
- >=dev-python/py-1.5.2[${PYTHON_USEDEP}]
- >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}]
- >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}]
- )
-"
-
-distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme
-distutils_enable_tests pytest
-
-# this requires packaging a lot of type stubs
-export MYPY_USE_MYPYC=0
-
-python_test() {
- local EPYTEST_DESELECT=(
- # Fails with pytest-xdist 2.3.0
- # https://github.com/python/mypy/issues/11019
- mypy/test/teststubtest.py
- # fails due to setuptools deprecation warnings
- mypyc/test/test_run.py::TestRun::run-imports.test::testImports
- )
-
- [[ "${EPYTHON}" == "python3.10" ]] && EPYTEST_DESELECT+=(
- # https://github.com/python/mypy/issues/11018
- mypyc/test/test_commandline.py::TestCommandLine::testErrorOutput
- )
-
- # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests
- # fail with high COLUMNS values
- local -x COLUMNS=80
- epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
-}
diff --git a/dev-python/mypy/mypy-0.942.ebuild b/dev-python/mypy/mypy-0.942.ebuild
index aa40a8f0ad7f..885551008048 100644
--- a/dev-python/mypy/mypy-0.942.ebuild
+++ b/dev-python/mypy/mypy-0.942.ebuild
@@ -14,7 +14,7 @@ SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86"
# stubgen collides with this package: https://bugs.gentoo.org/585594
RDEPEND="
diff --git a/dev-python/mypy/mypy-0.921.ebuild b/dev-python/mypy/mypy-0.950.ebuild
index 5b0169a2ae37..f0681f205e87 100644
--- a/dev-python/mypy/mypy-0.921.ebuild
+++ b/dev-python/mypy/mypy-0.950.ebuild
@@ -1,9 +1,11 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..10} )
+
inherit distutils-r1 multiprocessing
DESCRIPTION="Optional static typing for Python"
@@ -12,7 +14,7 @@ SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
# stubgen collides with this package: https://bugs.gentoo.org/585594
RDEPEND="
@@ -23,7 +25,9 @@ RDEPEND="
>=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}]
>=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}]
<dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}]
- dev-python/tomli[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/tomli[${PYTHON_USEDEP}]
+ ' 3.8 3.9 3.10)
"
BDEPEND="
test? (
@@ -32,6 +36,7 @@ BDEPEND="
>=dev-python/pytest-6.1.0[${PYTHON_USEDEP}]
>=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}]
>=dev-python/py-1.5.2[${PYTHON_USEDEP}]
+ >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}]
>=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}]
)
"
@@ -43,17 +48,6 @@ distutils_enable_tests pytest
export MYPY_USE_MYPYC=0
python_test() {
- local EPYTEST_DESELECT=(
- # Fails with pytest-xdist 2.3.0
- # https://github.com/python/mypy/issues/11019
- mypy/test/teststubtest.py
- )
-
- [[ "${EPYTHON}" == "python3.10" ]] && EPYTEST_DESELECT+=(
- # https://github.com/python/mypy/issues/11018
- mypyc/test/test_commandline.py::TestCommandLine::testErrorOutput
- )
-
# Some mypy/test/testcmdline.py::PythonCmdlineSuite tests
# fail with high COLUMNS values
local -x COLUMNS=80