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: Sat, 11 Nov 2023 10:36:40 +0000 (UTC)	[thread overview]
Message-ID: <1699698992.7da0b3daec86f6c86b0fd1c668f2cb8e6d149d16.mgorny@gentoo> (raw)

commit:     7da0b3daec86f6c86b0fd1c668f2cb8e6d149d16
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 11 09:14:10 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 11 10:36:32 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7da0b3da

dev-python/mypy: Bump to 1.7.0

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

 dev-python/mypy/Manifest          |   1 +
 dev-python/mypy/mypy-1.7.0.ebuild | 104 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 105 insertions(+)

diff --git a/dev-python/mypy/Manifest b/dev-python/mypy/Manifest
index 42c1c66461e9..5554f951f9a0 100644
--- a/dev-python/mypy/Manifest
+++ b/dev-python/mypy/Manifest
@@ -1,3 +1,4 @@
 DIST mypy-1.5.1.gh.tar.gz 2901212 BLAKE2B b136cf061162bc50a48f1556763d7a1258b5a29b63a77db9190f89c56d3e85375a2b0e826d75472a0dc37df4d3391f2d85bb5f1f29c2907055a978e3c8d75906 SHA512 2c81322c0e7d9621e6d189f4d9d25d77c5fd6decbb563c8d0015e0f94ff1ff8206e5b7a38884edd3eedb99e839c03283ebfa7d86577c9f8e0d707c0cc4eb8fed
 DIST mypy-1.6.0.gh.tar.gz 2923757 BLAKE2B 15e0fe124b7024a3e89a8c32c13404f33bc56a3ff29375d006bfcaf9de359ea59025ba07e3726c7a4b402f4b7aca1256859585e1500891fb1e5f996b19dd499a SHA512 245324a5ec8a98e18c31159c5cb907ce1b60323428942b9fd60909a3b117ae46eeb97792fb1f30562fa411edb6c9e903f87b5b232a4be1242abe28d88406f7c4
 DIST mypy-1.6.1.gh.tar.gz 2923973 BLAKE2B 1abaaab0c4ca4daa4914d69196312e371d030b6f81616da66102c5fcf6ad55ed2a6a9d56f9a55d2b6ebeb055b40947ab042e7b8744960185f5343dd9f05f9f4f SHA512 eac6b17dd418146c365a446e34c2cb403692a6ffa08b06a94c54accfbcedd441284c95894ef9f9b83e48df81edc35893b17163f6dba9f81fe7e9a8527401968b
+DIST mypy-1.7.0.gh.tar.gz 3001996 BLAKE2B af29475dc4a24d75700144b8b2643de65d88d50d561ba6bdb0d64941dc19a2943829ee93f25ece679d213833bf7a68814c5aa83ec13eac3f22074356b1c47e1c SHA512 e8ba6b0897327e8a0718a0c46ed16ce81bf677e3084ca00ea0762215d79a2b52fe84329121cff257b575d13288621b98c550b9915bd1afcfa3c13d43a2087b23

diff --git a/dev-python/mypy/mypy-1.7.0.ebuild b/dev-python/mypy/mypy-1.7.0.ebuild
new file mode 100644
index 000000000000..49d077bf8578
--- /dev/null
+++ b/dev-python/mypy/mypy-1.7.0.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2023 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..12} )
+
+inherit distutils-r1 multiprocessing
+
+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="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~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.1.0[${PYTHON_USEDEP}]
+	>=dev-python/mypy_extensions-1.0.0[${PYTHON_USEDEP}]
+	$(python_gen_cond_dep '
+		dev-python/tomli[${PYTHON_USEDEP}]
+	' 3.{9..10})
+"
+BDEPEND="
+	native-extensions? (
+		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}]
+		>=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}]
+	)
+"
+
+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
+
+src_compile() {
+	local -x MYPY_USE_MYPYC=$(usex native-extensions 1 0)
+	distutils-r1_src_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
+	)
+	if [[ ${EPYTHON} == python3.12 ]]; then
+		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
+		)
+	fi
+
+	# 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=
+	nonfatal epytest -n "$(makeopts_jobs)" --dist=worksteal || failed=1
+
+	rm conftest.py pyproject.toml || die
+
+	[[ ${failed} ]] && die "epytest failed with ${EPYTHON}"
+}


             reply	other threads:[~2023-11-11 10:36 UTC|newest]

Thread overview: 310+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-11 10:36 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-23  6:16 [gentoo-commits] repo/gentoo:master commit in: dev-python/mypy/ Michał Górny
2024-10-23  6:16 Michał Górny
2024-10-20  3:11 Michał Górny
2024-10-15  7:00 Michał Górny
2024-09-14 14:07 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-19 19:56 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-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=1699698992.7da0b3daec86f6c86b0fd1c668f2cb8e6d149d16.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