From e4d9d6796d5018e338f0b27a3bc97716195bf0b8 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 5 Jan 2025 06:31:58 +0000 Subject: gentoo auto-resync : 05:01:2025 - 06:31:57 --- dev-python/mypy/Manifest | 4 +- dev-python/mypy/mypy-1.13.0.ebuild | 4 +- dev-python/mypy/mypy-1.14.1-r1.ebuild | 125 ++++++++++++++++++++++++++++++++ dev-python/mypy/mypy-1.14.1.ebuild | 131 ---------------------------------- 4 files changed, 129 insertions(+), 135 deletions(-) create mode 100644 dev-python/mypy/mypy-1.14.1-r1.ebuild delete mode 100644 dev-python/mypy/mypy-1.14.1.ebuild (limited to 'dev-python/mypy') diff --git a/dev-python/mypy/Manifest b/dev-python/mypy/Manifest index e66dbe543d28..12b2abff922b 100644 --- a/dev-python/mypy/Manifest +++ b/dev-python/mypy/Manifest @@ -2,7 +2,7 @@ AUX mypy-1.14.0-no-werror.patch 325 BLAKE2B ae4291ac5dfdb6d03234e1ce04e23cee4178 DIST mypy-1.13.0.gh.tar.gz 3165219 BLAKE2B 67e05628fb79666a84a7c284c8437222ce159260ef490c8c91a3f92fd21985032043821823dcbd0fb8775956ca4660b3468c6955fef5d13a104b3339b1e6a0b5 SHA512 a351a30bfc7ac687d4802c6459296a4a46356fc153258c686051fa3cb149ab3e8690357cad21cd6ab07b4fb6e91dd3610b57f7b38078da7e563c114cd3ed562a DIST mypy-1.14.0.gh.tar.gz 3227612 BLAKE2B 370ad0a515f75c13c97844d40a20645d641a56ae052684bc789c716a42feead4e22ac79460fd91f81c4fb67cd316b657795ff700f537970a145c04438eb2e2b0 SHA512 409bd40ca552b3d34b74b0f236c3db29b180cefe863d658c22378c5ef251e033fdc093fe2f47440d888f5c0a7afcceeb9357be35c9bf368b37cdca615a614bbd DIST mypy-1.14.1.gh.tar.gz 3231068 BLAKE2B b88ea11fd88acaa59001ec1c1665d6beccaecf834cf0064d0e3a94d93c0a7cc1269c24f1f8a6950d114606f292c934cddc3c708e0dbdb25b6f632c5e3e64a8d4 SHA512 ddbd1445fe680c3326a09aead85cf8c810cb71c42faf723910f31a7938f20b1ae55b6bd5a0e966b93a54ba14773cffcf0b85b65421442f11f3571ea1f6d4f709 -EBUILD mypy-1.13.0.ebuild 3841 BLAKE2B 0d30ce41b282121da88a746ae8f01048a549a4d32fc89f414f0c2f0d27c92e7e56ab2914263220f073f01b63ef5d96ecbc75793f1445690632c716c59ea99a5e SHA512 44f49ce6b035084ea73d01377946d470c21523d046b33966b6c7983579436e8cad642a4d855ccdc30c9c41f332c588cc2896684b9b8e4e0f59cdf2b7bd33a624 +EBUILD mypy-1.13.0.ebuild 3838 BLAKE2B 788ce68b3f45d0ea1235668f4c2ee067118527b8eb88164ee7a9cc2b9a2fd47c9d67cc3f3622ceb1810775cc460f3330e984ee3e68df0e4553947dc42036a739 SHA512 7abae720a45fc082347815ead183a21ed428212ad16c9ddacae68351c2c99a8072609075540d2518fae00a77e5a3df73905c3b8728be47802374e813a302aae6 EBUILD mypy-1.14.0.ebuild 3999 BLAKE2B c90d1b12642ccd58e4add1c7088c8a8f595d8b024784d1cdfd2f2d6e36ed26691f8ff346d8b0fd489d86ff56931889c8662b33a7f9f1572abfb115c294ba72b1 SHA512 1deaa135814dae3e433aee508b3b5ed668492a53cebbbf213151e6fab4eed561696704771ca96a60f82ffe411836440a3790fe9f0247b24960423babeb0c2c4e -EBUILD mypy-1.14.1.ebuild 3999 BLAKE2B c90d1b12642ccd58e4add1c7088c8a8f595d8b024784d1cdfd2f2d6e36ed26691f8ff346d8b0fd489d86ff56931889c8662b33a7f9f1572abfb115c294ba72b1 SHA512 1deaa135814dae3e433aee508b3b5ed668492a53cebbbf213151e6fab4eed561696704771ca96a60f82ffe411836440a3790fe9f0247b24960423babeb0c2c4e +EBUILD mypy-1.14.1-r1.ebuild 3885 BLAKE2B 6e18b2785f57e655ccd4e1be15223be662fe41d71b77e69c0aad52f20fca1483611999fad716cfc8e18fee6b8a7c45f93f1e332bc5f5c35e418e5fbb61ed83c9 SHA512 63e147b063d0b1cc27d4c5834e5954e55fb64c8133bb3302eba9894879d12cadd52c2217b3d2b2aff085176b768c2c7de8c7e3ab45dda0fd3c2ec5a4bfab5cce MISC metadata.xml 661 BLAKE2B df57cc2dfde5b112f8c26b51ca5cc9e7727d318ee274ea7e1abf448819daf0307f471aeb7c32b19f20e87ce1ccffd47a5529415003765c275523e1b5236f3bb1 SHA512 eddd19c4b0b5211f73f9619f388a799ced108b62bb43d852ed2d01d0b1717e7b9ef118d34b9d61db543c7b47080fb8058c3d35f7359cc456069636f357e080c9 diff --git a/dev-python/mypy/mypy-1.13.0.ebuild b/dev-python/mypy/mypy-1.13.0.ebuild index 59bd4a2befcc..a9b4ead74636 100644 --- a/dev-python/mypy/mypy-1.13.0.ebuild +++ b/dev-python/mypy/mypy-1.13.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -22,7 +22,7 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ppc64 ~riscv ~s390 ~sparc x86" +KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv ~s390 sparc x86" IUSE="+native-extensions" # stubgen collides with this package: https://bugs.gentoo.org/585594 diff --git a/dev-python/mypy/mypy-1.14.1-r1.ebuild b/dev-python/mypy/mypy-1.14.1-r1.ebuild new file mode 100644 index 000000000000..55e75919d84d --- /dev/null +++ b/dev-python/mypy/mypy-1.14.1-r1.ebuild @@ -0,0 +1,125 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} ) + +inherit distutils-r1 + +DESCRIPTION="Optional static typing for Python" +HOMEPAGE=" + https://www.mypy-lang.org/ + https://github.com/python/mypy/ + https://pypi.org/project/mypy/ +" +SRC_URI=" + https://github.com/python/mypy/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="+native-extensions" + +# stubgen collides with this package: https://bugs.gentoo.org/585594 +RDEPEND=" + !dev-util/stubgen + >=dev-python/psutil-4[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.6.0[${PYTHON_USEDEP}] + >=dev-python/mypy-extensions-1.0.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + native-extensions? ( + ${RDEPEND} + dev-python/types-psutil[${PYTHON_USEDEP}] + dev-python/types-setuptools[${PYTHON_USEDEP}] + ) + test? ( + >=dev-python/attrs-18.0[${PYTHON_USEDEP}] + >=dev-python/filelock-3.3.0[${PYTHON_USEDEP}] + >=dev-python/lxml-4.9.1[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +# frustratingly, mypyc produces non-deterministic output. If ccache is enabled it will be a waste of time, +# but simultaneously it might trash your system and fill up the cache with a giant wave of non-reproducible +# test files (https://github.com/mypyc/mypyc/issues/1014) +export CCACHE_DISABLE=1 + +PATCHES=( + "${FILESDIR}"/${PN}-1.14.0-no-werror.patch +) + +src_prepare() { + distutils-r1_src_prepare + + # don't force pytest-xdist, in case user asked for EPYTEST_JOBS=1 + sed -i -e '/addopts/s:-nauto::' pyproject.toml || die +} + +python_compile() { + local -x MYPY_USE_MYPYC=$(usex native-extensions 1 0) + distutils-r1_python_compile +} + +python_test() { + local EPYTEST_DESELECT=( + # the majority of them require Internet (via pip) + mypy/test/testpep561.py + # known broken with assertions enabled + # https://github.com/python/mypy/issues/16043 + mypyc/test/test_run.py::TestRun::run-i64.test::testI64GlueMethodsAndInheritance + mypyc/test/test_run.py::TestRun::run-floats.test::testFloatOps + mypyc/test/test_run.py::TestRunStrictDunderTyping::run-floats.test::testFloatOps_dunder_typing + # these assume that types-docutils are not installed + mypy/test/testpythoneval.py::PythonEvaluationSuite::pythoneval.test::testIgnoreImportIfNoPython3StubAvailable + mypy/test/testpythoneval.py::PythonEvaluationSuite::pythoneval.test::testNoPython3StubAvailable + # TODO + mypy/test/meta/test_parse_data.py + mypy/test/meta/test_update_data.py + ) + case ${EPYTHON} in + python3.13) + ;& + python3.12) + EPYTEST_DESELECT+=( + # more assertions, sigh + mypyc/test/test_run.py::TestRun::run-bools.test::testBoolOps + mypyc/test/test_run.py::TestRun::run-i64.test::testI64BasicOps + mypyc/test/test_run.py::TestRun::run-i64.test::testI64DefaultArgValues + mypyc/test/test_run.py::TestRun::run-i64.test::testI64ErrorValuesAndUndefined + ) + ;; + esac + + # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests + # fail with high COLUMNS values + local -x COLUMNS=80 + + # The tests depend on having in-source compiled extensions if you want to + # test those compiled extensions. Various crucial test dependencies aren't + # installed. Even pyproject.toml is needed because that's where pytest args + # are in. Hack them into the build directory and delete them afterwards. + # See: https://github.com/python/mypy/issues/16143 + local -x MYPY_TEST_PREFIX="${S}" + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die + cp -r "${S}"/{conftest.py,pyproject.toml} . || die + + local failed= + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + nonfatal epytest || failed=1 + + rm conftest.py pyproject.toml || die + + [[ ${failed} ]] && die "epytest failed with ${EPYTHON}" +} diff --git a/dev-python/mypy/mypy-1.14.1.ebuild b/dev-python/mypy/mypy-1.14.1.ebuild deleted file mode 100644 index e86f197574bc..000000000000 --- a/dev-python/mypy/mypy-1.14.1.ebuild +++ /dev/null @@ -1,131 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..13} ) - -inherit distutils-r1 - -DESCRIPTION="Optional static typing for Python" -HOMEPAGE=" - https://www.mypy-lang.org/ - https://github.com/python/mypy/ - https://pypi.org/project/mypy/ -" -SRC_URI=" - https://github.com/python/mypy/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="+native-extensions" - -# stubgen collides with this package: https://bugs.gentoo.org/585594 -RDEPEND=" - !dev-util/stubgen - >=dev-python/psutil-4[${PYTHON_USEDEP}] - >=dev-python/typing-extensions-4.6.0[${PYTHON_USEDEP}] - >=dev-python/mypy-extensions-1.0.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/tomli[${PYTHON_USEDEP}] - ' 3.10) -" -BDEPEND=" - native-extensions? ( - ${RDEPEND} - dev-python/types-psutil[${PYTHON_USEDEP}] - dev-python/types-setuptools[${PYTHON_USEDEP}] - ) - test? ( - >=dev-python/attrs-18.0[${PYTHON_USEDEP}] - >=dev-python/filelock-3.3.0[${PYTHON_USEDEP}] - >=dev-python/lxml-4.9.1[${PYTHON_USEDEP}] - ) -" - -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -# frustratingly, mypyc produces non-deterministic output. If ccache is enabled it will be a waste of time, -# but simultaneously it might trash your system and fill up the cache with a giant wave of non-reproducible -# test files (https://github.com/mypyc/mypyc/issues/1014) -export CCACHE_DISABLE=1 - -PATCHES=( - "${FILESDIR}"/${PN}-1.14.0-no-werror.patch -) - -src_prepare() { - distutils-r1_src_prepare - - # don't force pytest-xdist, in case user asked for EPYTEST_JOBS=1 - sed -i -e '/addopts/s:-nauto::' pyproject.toml || die -} - -python_compile() { - local -x MYPY_USE_MYPYC=$(usex native-extensions 1 0) - case ${EPYTHON} in - python3.13) - # https://github.com/mypyc/mypyc/issues/1056 - MYPY_USE_MYPYC=0 - ;; - esac - distutils-r1_python_compile -} - -python_test() { - local EPYTEST_DESELECT=( - # the majority of them require Internet (via pip) - mypy/test/testpep561.py - # known broken with assertions enabled - # https://github.com/python/mypy/issues/16043 - mypyc/test/test_run.py::TestRun::run-i64.test::testI64GlueMethodsAndInheritance - mypyc/test/test_run.py::TestRun::run-floats.test::testFloatOps - mypyc/test/test_run.py::TestRunStrictDunderTyping::run-floats.test::testFloatOps_dunder_typing - # these assume that types-docutils are not installed - mypy/test/testpythoneval.py::PythonEvaluationSuite::pythoneval.test::testIgnoreImportIfNoPython3StubAvailable - mypy/test/testpythoneval.py::PythonEvaluationSuite::pythoneval.test::testNoPython3StubAvailable - # TODO - mypy/test/meta/test_parse_data.py - mypy/test/meta/test_update_data.py - ) - case ${EPYTHON} in - python3.13) - ;& - python3.12) - EPYTEST_DESELECT+=( - # more assertions, sigh - mypyc/test/test_run.py::TestRun::run-bools.test::testBoolOps - mypyc/test/test_run.py::TestRun::run-i64.test::testI64BasicOps - mypyc/test/test_run.py::TestRun::run-i64.test::testI64DefaultArgValues - mypyc/test/test_run.py::TestRun::run-i64.test::testI64ErrorValuesAndUndefined - ) - ;; - esac - - # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests - # fail with high COLUMNS values - local -x COLUMNS=80 - - # The tests depend on having in-source compiled extensions if you want to - # test those compiled extensions. Various crucial test dependencies aren't - # installed. Even pyproject.toml is needed because that's where pytest args - # are in. Hack them into the build directory and delete them afterwards. - # See: https://github.com/python/mypy/issues/16143 - local -x MYPY_TEST_PREFIX="${S}" - cd "${BUILD_DIR}/install$(python_get_sitedir)" || die - cp -r "${S}"/{conftest.py,pyproject.toml} . || die - - local failed= - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - nonfatal epytest || failed=1 - - rm conftest.py pyproject.toml || die - - [[ ${failed} ]] && die "epytest failed with ${EPYTHON}" -} -- cgit v1.2.3