summaryrefslogtreecommitdiff
path: root/dev-python/python-tests/python-tests-3.11.9999.ebuild
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2025-05-28 10:38:33 +0200
committerMichał Górny <mgorny@gentoo.org>2025-05-28 10:38:33 +0200
commitf0fae48279131b178deaea33b291fc3d549b4288 (patch)
tree87d496c7e2928a8c501df4594536436f11ec8a5c /dev-python/python-tests/python-tests-3.11.9999.ebuild
parent0b65b0d7188b8ce6ef5c5b9cdae40c394c2d5def (diff)
downloadgentoo-f0fae48279131b178deaea33b291fc3d549b4288.tar.gz
gentoo-f0fae48279131b178deaea33b291fc3d549b4288.tar.bz2
gentoo-f0fae48279131b178deaea33b291fc3d549b4288.zip
dev-python/python-tests: Add 3.11.9999 live ebuild
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/python-tests/python-tests-3.11.9999.ebuild')
-rw-r--r--dev-python/python-tests/python-tests-3.11.9999.ebuild66
1 files changed, 66 insertions, 0 deletions
diff --git a/dev-python/python-tests/python-tests-3.11.9999.ebuild b/dev-python/python-tests/python-tests-3.11.9999.ebuild
new file mode 100644
index 000000000000..234b8fd94f40
--- /dev/null
+++ b/dev-python/python-tests/python-tests-3.11.9999.ebuild
@@ -0,0 +1,66 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_11 )
+
+inherit git-r3 python-r1
+
+PYVER=$(ver_cut 1-2)
+PATCHSET="python-gentoo-patches-3.11.11"
+
+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}
+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}
+ !<dev-lang/python-3.11.9_p2-r1:${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
+ local dirs=(
+ ctypes/test distutils/tests idlelib/idle_test lib2to3/tests
+ ./test tkinter/test unittest/test
+ )
+ local dir
+ for dir in "${dirs[@]}"; do
+ python_moduleinto "/usr/lib/python${PYVER}/${dir%/*}"
+ python_domodule "${dir}"
+ done
+}