summaryrefslogtreecommitdiff
path: root/dev-python/python-tests/python-tests-0.3.13.9999.ebuild
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2025-06-06 19:24:35 +0200
committerMichał Górny <mgorny@gentoo.org>2025-06-07 10:44:33 +0200
commita28cd3f61b794d7d5b56d06cadd6a4727b8c50e9 (patch)
tree760fa06badbfd8460ef07820ba63ab970eadf745 /dev-python/python-tests/python-tests-0.3.13.9999.ebuild
parente47ebe77c062a0dc3fea83b291b60a5f7dedd0cc (diff)
downloadgentoo-a28cd3f61b794d7d5b56d06cadd6a4727b8c50e9.tar.gz
gentoo-a28cd3f61b794d7d5b56d06cadd6a4727b8c50e9.tar.bz2
gentoo-a28cd3f61b794d7d5b56d06cadd6a4727b8c50e9.zip
dev-python/python-tests: Reversion freethreading here as well
Signed-off-by: Michał Górny <mgorny@gentoo.org> Part-of: https://github.com/gentoo/gentoo/pull/42479 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/python-tests/python-tests-0.3.13.9999.ebuild')
-rw-r--r--dev-python/python-tests/python-tests-0.3.13.9999.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-python/python-tests/python-tests-0.3.13.9999.ebuild b/dev-python/python-tests/python-tests-0.3.13.9999.ebuild
new file mode 100644
index 000000000000..d485379f397d
--- /dev/null
+++ b/dev-python/python-tests/python-tests-0.3.13.9999.ebuild
@@ -0,0 +1,60 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_13t )
+
+inherit git-r3 python-r1
+
+PYVER="$(ver_cut 2-3)t"
+PATCHSET="python-gentoo-patches-3.13.3"
+
+DESCRIPTION="Test modules from dev-lang/python"
+HOMEPAGE="
+ https://www.python.org/
+ https://github.com/python/cpython/
+"
+SRC_URI="
+ https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz
+"
+EGIT_REPO_URI="https://github.com/python/cpython.git"
+EGIT_BRANCH=${PYVER%t}
+S="${WORKDIR}/${P}/Lib"
+
+LICENSE="PSF-2"
+SLOT="${PYVER}"
+# enable by default to help CI handle it (we have no additional deps)
+IUSE="+python_targets_${PYTHON_COMPAT[0]}"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ ~dev-lang/python-${PV}:${PYVER}
+"
+BDEPEND="
+ ${PYTHON_DEPS}
+"
+
+src_unpack() {
+ git-r3_src_unpack
+ default
+}
+
+src_prepare() {
+ local PATCHES=(
+ "${WORKDIR}/${PATCHSET}"
+ )
+
+ cd .. || die
+ default
+}
+
+src_install() {
+ python_setup
+ # keep in sync with TESTSUBDIRS in Makefile.pre.in
+ python_moduleinto "/usr/lib/python${PYVER}"
+ python_domodule test
+ python_moduleinto "/usr/lib/python${PYVER}/idlelib"
+ python_domodule idlelib/idle_test
+}