public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mypy/
Date: Fri, 19 Jul 2024 19:56:29 +0000 (UTC)	[thread overview]
Message-ID: <1721418972.efe0716a7107659fc579a605495895bf4fd4c3c3.mgorny@gentoo> (raw)

commit:     efe0716a7107659fc579a605495895bf4fd4c3c3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 19 18:30:36 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jul 19 19:56:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efe0716a

dev-python/mypy: Bump to 1.11.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/mypy/Manifest           |   1 +
 dev-python/mypy/mypy-1.11.0.ebuild | 126 +++++++++++++++++++++++++++++++++++++
 2 files changed, 127 insertions(+)

diff --git a/dev-python/mypy/Manifest b/dev-python/mypy/Manifest
index e9781fe5c763..065c27fb3a84 100644
--- a/dev-python/mypy/Manifest
+++ b/dev-python/mypy/Manifest
@@ -1,2 +1,3 @@
 DIST mypy-1.10.0.gh.tar.gz 3062151 BLAKE2B ddc7354b2b62247387fd04b309c50d4ffa5c1b8af58873cc8787bd17c04069b528850bfb586925aa7df6634a65af6a1e951e4d6036d5bd0e688b8608980510bd SHA512 c936c299d9d4b6911505ef7b7df6f8d7344bd199a2d654e66467291f6e6ba4432dfa7aed5a504e6ec9518d9d53ac85f771e7b31dc6a72e06e79c443547bc2b66
 DIST mypy-1.10.1.gh.tar.gz 3062383 BLAKE2B 326fb33e42ad8920a235e510b3d39663f333dc46d0dd3ffc59f4604e9a4f29f0be95f73bac42166aae00b53987d6a2a54446f1f58033dce389c43044dbaa9cdd SHA512 10d29ae145d71911dc7c9b4538371bf1caa64f333984ab3a4cbf9561d7c4e752c68380496489f56d0941f143d6684d84d28f157be578d6f55f1e81d3d47b204c
+DIST mypy-1.11.0.gh.tar.gz 3121990 BLAKE2B 8c48580a01d0e2795a8aebcba3e6a6be707e411396dc607eeb1942958c993a504d57a778cb9d25b7a0d78921f577331018b3a425864fa764c71728e8cd6e1265 SHA512 87fded2b6cdbd77a0d34df14b4d6b1824ec84030602ceb655550ec34ded159eabc3c30ad0a2e151fa5a2389227e776f50a25c80dae42f1ae608af32098e5ea02

diff --git a/dev-python/mypy/mypy-1.11.0.ebuild b/dev-python/mypy/mypy-1.11.0.ebuild
new file mode 100644
index 000000000000..81a7e950a754
--- /dev/null
+++ b/dev-python/mypy/mypy-1.11.0.ebuild
@@ -0,0 +1,126 @@
+# 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 ~arm64 ~loong ~ppc64 ~riscv ~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
+
+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
+		# 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
+		mypy/test/teststubtest.py::StubtestUnit::test_runtime_typing_objects
+	)
+	case ${EPYTHON} in
+		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
+			)
+			;;
+		python3.13)
+			EPYTEST_DESELECT+=(
+				# https://github.com/mypyc/mypyc/issues/1056
+				mypyc/test
+				# requires typeshed update
+				mypy/test/teststubtest.py::StubtestUnit::test_type_alias
+			)
+			;;
+	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}"
+}


             reply	other threads:[~2024-07-19 19:56 UTC|newest]

Thread overview: 306+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-19 19:56 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-14 14:07 [gentoo-commits] repo/gentoo:master commit in: dev-python/mypy/ Michał Górny
2024-09-14 13:48 Arthur Zamarin
2024-09-14 13:36 Arthur Zamarin
2024-09-14 13:22 Arthur Zamarin
2024-09-14 12:26 Arthur Zamarin
2024-08-25  2:36 Michał Górny
2024-08-17  9:57 Michał Górny
2024-08-17  9:57 Michał Górny
2024-08-17  9:57 Michał Górny
2024-08-17  8:33 Jakov Smolić
2024-07-31  5:52 Michał Górny
2024-07-20 13:27 Michał Górny
2024-07-10  7:05 Sam James
2024-06-25  8:01 Michał Górny
2024-06-14 12:19 Michał Górny
2024-06-14  5:32 Arthur Zamarin
2024-05-11 11:06 Arthur Zamarin
2024-05-11 10:22 Arthur Zamarin
2024-05-11  9:49 Arthur Zamarin
2024-05-11  9:49 Arthur Zamarin
2024-05-11  9:49 Arthur Zamarin
2024-05-11  7:52 Arthur Zamarin
2024-04-30  4:34 Michał Górny
2024-04-30  2:30 Ionen Wolkens
2024-04-25  4:43 Michał Górny
2024-03-23 15:44 Sam James
2024-03-23 13:39 Sam James
2024-03-23 13:39 Sam James
2024-03-23 13:39 Sam James
2024-03-23 11:53 Michał Górny
2024-03-23 10:45 Michał Górny
2024-03-09  7:18 Michał Górny
2024-01-24  6:33 Michał Górny
2024-01-23  5:07 Ionen Wolkens
2024-01-23  4:38 Sam James
2024-01-06 11:07 Sam James
2024-01-06 10:52 Michał Górny
2024-01-06 10:52 Michał Górny
2024-01-06 10:16 Michał Górny
2024-01-06  9:59 Michał Górny
2024-01-06  9:50 Michał Górny
2023-12-26 16:37 Sam James
2023-12-22  8:30 Michał Górny
2023-12-17 23:55 Ionen Wolkens
2023-12-09 18:12 Sam James
2023-12-09 14:58 Michał Górny
2023-12-09 14:37 Michał Górny
2023-12-09 14:37 Michał Górny
2023-12-09 14:30 Michał Górny
2023-11-29  7:44 Michał Górny
2023-11-29  6:36 Arthur Zamarin
2023-11-29  6:36 Arthur Zamarin
2023-11-25  6:15 Michał Górny
2023-11-24  4:34 Michał Górny
2023-11-22 14:04 Arthur Zamarin
2023-11-22 13:11 Arthur Zamarin
2023-11-22 13:11 Arthur Zamarin
2023-11-22 12:02 Sam James
2023-11-22 11:11 Sam James
2023-11-22 10:59 Michał Górny
2023-11-11 20:44 Arthur Zamarin
2023-11-11 20:17 Arthur Zamarin
2023-11-11 20:17 Arthur Zamarin
2023-11-11 20:02 Sam James
2023-11-11 10:36 Michał Górny
2023-10-19 21:05 Sam James
2023-10-19  4:00 Michał Górny
2023-10-10 22:10 Sam James
2023-10-10 20:47 Michał Górny
2023-10-10 20:47 Michał Górny
2023-10-10 20:47 Michał Górny
2023-10-06  0:42 Sam James
2023-09-11 16:52 Michał Górny
2023-09-11 15:17 Arthur Zamarin
2023-09-11 15:17 Arthur Zamarin
2023-09-11 15:17 Arthur Zamarin
2023-09-11 15:11 Arthur Zamarin
2023-09-11 13:04 Arthur Zamarin
2023-09-11 12:45 Arthur Zamarin
2023-09-11 12:45 Arthur Zamarin
2023-09-11 11:54 Arthur Zamarin
2023-08-17  8:36 Michał Górny
2023-08-15  9:32 Michał Górny
2023-08-15  5:18 Sam James
2023-08-12 21:53 Sam James
2023-08-11  5:48 Michał Górny
2023-08-11  5:15 Michał Górny
2023-08-05 21:36 Sam James
2023-08-05 21:36 Sam James
2023-08-05 16:55 Arthur Zamarin
2023-08-05 16:55 Arthur Zamarin
2023-08-05 16:13 Arthur Zamarin
2023-08-05 15:46 Arthur Zamarin
2023-07-05  7:58 Michał Górny
2023-07-05  7:58 Michał Górny
2023-06-26 13:34 Michał Górny
2023-06-21  4:14 Michał Górny
2023-06-18 17:21 Michał Górny
2023-06-18 16:08 Arthur Zamarin
2023-06-18 16:07 Arthur Zamarin
2023-06-18 15:45 Sam James
2023-06-18 15:15 Sam James
2023-06-18 15:14 Sam James
2023-06-18 15:14 Sam James
2023-06-18 15:14 Sam James
2023-06-18 14:47 Sam James
2023-05-12 10:43 Michał Górny
2023-05-11 17:58 Michał Górny
2023-05-09 18:57 Michał Górny
2023-05-09 13:27 Arthur Zamarin
2023-05-09 13:07 Sam James
2023-05-09  5:52 Arthur Zamarin
2023-05-09  5:52 Arthur Zamarin
2023-05-09  3:03 Arthur Zamarin
2023-05-09  3:03 Arthur Zamarin
2023-05-09  3:03 Arthur Zamarin
2023-05-09  3:03 Arthur Zamarin
2023-04-29 17:52 Michał Górny
2023-04-29 11:53 Arthur Zamarin
2023-04-08 12:26 Arthur Zamarin
2023-04-08 11:13 Arthur Zamarin
2023-04-08 10:20 Arthur Zamarin
2023-04-08  9:39 Arthur Zamarin
2023-04-08  8:42 Arthur Zamarin
2023-04-08  8:23 Arthur Zamarin
2023-04-08  8:22 Arthur Zamarin
2023-04-07  4:19 Michał Górny
2023-03-11 16:17 Michał Górny
2023-03-11 16:00 Sam James
2023-03-11 12:30 Arthur Zamarin
2023-03-11 10:27 Arthur Zamarin
2023-03-11  9:41 Arthur Zamarin
2023-03-11  8:34 Arthur Zamarin
2023-03-11  8:34 Arthur Zamarin
2023-03-11  8:10 Arthur Zamarin
2023-03-11  8:10 Arthur Zamarin
2023-03-07  7:08 Michał Górny
2023-02-28  5:34 Sam James
2023-02-17 18:51 Michał Górny
2022-12-17  7:20 Michał Górny
2022-12-17  3:17 Sam James
2022-12-16 21:55 Sam James
2022-12-16 21:13 Arthur Zamarin
2022-12-16 20:49 Arthur Zamarin
2022-12-16 20:46 Arthur Zamarin
2022-12-16 20:04 Arthur Zamarin
2022-12-16 20:04 Arthur Zamarin
2022-12-16 19:46 Arthur Zamarin
2022-11-15  7:27 Michał Górny
2022-11-08  8:56 Arthur Zamarin
2022-11-08  8:52 Arthur Zamarin
2022-11-08  5:55 Arthur Zamarin
2022-11-08  5:49 Sam James
2022-11-08  5:32 Sam James
2022-11-08  5:32 Arthur Zamarin
2022-11-08  5:25 Arthur Zamarin
2022-11-08  5:20 Arthur Zamarin
2022-11-08  5:20 Arthur Zamarin
2022-11-07 21:27 Andrew Ammerlaan
2022-11-04  8:16 Agostino Sarubbo
2022-11-04  0:07 Sam James
2022-11-03 22:04 Sam James
2022-11-03 21:01 Arthur Zamarin
2022-11-03 20:01 Arthur Zamarin
2022-11-03 19:57 Sam James
2022-11-03 19:27 Arthur Zamarin
2022-11-03 19:18 Arthur Zamarin
2022-10-03 19:55 Michał Górny
2022-09-27  2:03 Michał Górny
2022-08-27 18:15 Michał Górny
2022-08-27 18:07 Arthur Zamarin
2022-08-20  8:02 Agostino Sarubbo
2022-08-20  8:01 Agostino Sarubbo
2022-08-20  8:01 Agostino Sarubbo
2022-08-20  8:00 Agostino Sarubbo
2022-08-20  8:00 Agostino Sarubbo
2022-08-20  7:59 Agostino Sarubbo
2022-08-19  8:02 Arthur Zamarin
2022-07-30 11:19 Michał Górny
2022-07-30 10:59 Arthur Zamarin
2022-07-25 15:01 Agostino Sarubbo
2022-07-25 14:56 Agostino Sarubbo
2022-07-25  7:11 Agostino Sarubbo
2022-07-25  6:41 Sam James
2022-07-24 16:29 Sam James
2022-07-24 16:29 Sam James
2022-07-24 16:29 Sam James
2022-07-20  5:39 Michał Górny
2022-06-27 19:15 Arthur Zamarin
2022-06-06 19:01 Arthur Zamarin
2022-05-31 10:44 Jakov Smolić
2022-05-31  8:54 Agostino Sarubbo
2022-05-31  8:51 Agostino Sarubbo
2022-05-31  8:44 Jakov Smolić
2022-05-31  8:44 Jakov Smolić
2022-05-31  7:56 Jakov Smolić
2022-05-31  7:56 Jakov Smolić
2022-05-26  9:17 Michał Górny
2022-05-07  9:27 Arthur Zamarin
2022-05-07  9:27 Arthur Zamarin
2022-04-28  8:31 Michał Górny
2022-04-26 22:44 Sam James
2022-04-26 17:05 Arthur Zamarin
2022-04-26 17:05 Arthur Zamarin
2022-04-26 17:05 Arthur Zamarin
2022-04-26 17:05 Arthur Zamarin
2022-04-26 17:05 Arthur Zamarin
2022-04-18 18:22 Arthur Zamarin
2022-04-16  7:38 Sam James
2022-04-15 17:19 Arthur Zamarin
2022-03-25  0:02 Michał Górny
2022-03-14 21:00 Arthur Zamarin
2022-03-14 17:04 Michał Górny
2022-02-26 18:53 Sam James
2022-02-16 19:51 Arthur Zamarin
2022-02-16 19:50 Arthur Zamarin
2022-02-15 16:19 Sam James
2022-02-13 23:24 Jakov Smolić
2022-02-13 15:20 Sam James
2022-01-28 18:43 Arthur Zamarin
2022-01-28 18:43 Arthur Zamarin
2022-01-27 19:05 Sam James
2022-01-26 20:46 Arthur Zamarin
2022-01-26 20:40 Jakov Smolić
2022-01-26 20:01 Arthur Zamarin
2022-01-26 19:58 Arthur Zamarin
2022-01-07 18:09 Arthur Zamarin
2021-12-23  9:30 Michał Górny
2021-12-21 20:43 Arthur Zamarin
2021-12-07  8:40 Joshua Kinard
2021-11-17  8:00 Sam James
2021-11-02 13:18 Arthur Zamarin
2021-10-14  4:45 Sam James
2021-10-11  0:45 Sam James
2021-07-24 17:30 Michał Górny
2021-07-24 15:12 Sam James
2021-06-23  9:28 Michał Górny
2021-06-23  9:28 Michał Górny
2021-06-12 10:18 Michał Górny
2021-06-12  7:58 Michał Górny
2021-04-28 18:47 Sam James
2021-04-28 18:47 Sam James
2021-04-28 17:04 Sam James
2021-03-27  8:19 Michał Górny
2021-03-27  8:19 Michał Górny
2021-03-26 18:45 Sam James
2021-03-26 14:37 Michał Górny
2021-03-26  7:45 Agostino Sarubbo
2021-03-25 14:30 Sam James
2021-03-25 12:14 Michał Górny
2021-02-27 19:34 Sam James
2021-02-26 21:56 Sam James
2021-02-26 17:46 Sam James
2021-02-26 16:48 Sam James
2021-02-26 14:20 Sam James
2021-02-26 10:57 Agostino Sarubbo
2021-02-20 10:10 Michał Górny
2021-01-23  0:11 Michał Górny
2020-12-31  8:16 Sam James
2020-12-31  6:49 Sam James
2020-12-22 18:57 Sam James
2020-12-15 22:10 Sergei Trofimovich
2020-12-14  0:46 Sam James
2020-12-13  0:34 Sam James
2020-12-13  0:16 Sam James
2020-12-07  4:28 Matt Turner
2020-11-18 10:28 Michał Górny
2020-11-18  6:53 Agostino Sarubbo
2020-10-16 21:56 Sergei Trofimovich
2020-10-07 16:31 Louis Sautier
2020-09-19 16:34 Sam James
2020-09-18 15:30 Michał Górny
2020-08-22 11:26 Agostino Sarubbo
2020-07-29 10:20 Michał Górny
2020-06-24 11:44 Mike Auty
2020-06-23 10:24 Mike Auty
2020-06-22 17:55 Mike Auty
2020-06-21 14:50 Mike Auty
2020-03-25 17:44 Agostino Sarubbo
2020-03-25 16:12 Agostino Sarubbo
2020-01-23  7:02 Michał Górny
2020-01-05 22:23 Mike Auty
2020-01-05 21:15 Mike Auty
2019-11-29 22:37 Mike Auty
2019-11-29 20:52 Mike Auty
2019-10-27 12:45 Mike Auty
2019-05-11 21:49 Mike Auty
2019-04-05 14:04 Mike Auty
2019-02-28 10:11 Mike Auty
2019-02-26 23:08 Mike Auty
2018-09-22 10:13 Mike Auty
2018-06-03 21:12 Mike Auty
2018-04-22 15:07 Mike Auty
2018-04-22 15:07 Mike Auty
2018-03-11 18:12 Mike Auty
2016-10-16  1:53 Alex Brandt
2016-10-16  1:53 Alex Brandt
2016-09-03 14:44 Alex Brandt
2016-09-03 14:44 Alex Brandt
2016-07-24  1:19 Alex Brandt
2016-07-24  1:19 Alex Brandt
2016-06-18 19:00 Alex Brandt
2016-06-18 19:00 Alex Brandt
2016-06-05 20:01 Alex Brandt
2016-05-22 17:18 Alex Brandt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1721418972.efe0716a7107659fc579a605495895bf4fd4c3c3.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox