diff options
| author | Michał Górny <mgorny@gentoo.org> | 2026-03-03 06:12:01 +0100 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2026-03-03 06:58:10 +0100 |
| commit | 5fb5f7110cda824f0455c3338b02524adfdfcd33 (patch) | |
| tree | 1a43580913ecc58f5511ae8c4cd2dab5697ebafe /dev-python/python-tests/python-tests-3.11.15.ebuild | |
| parent | 60a9373414bc3fc039377f989e6bf681abb1a362 (diff) | |
| download | gentoo-5fb5f7110cda824f0455c3338b02524adfdfcd33.tar.gz gentoo-5fb5f7110cda824f0455c3338b02524adfdfcd33.tar.bz2 gentoo-5fb5f7110cda824f0455c3338b02524adfdfcd33.zip | |
dev-python/python-tests: Bump to 3.11.15
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/python-tests/python-tests-3.11.15.ebuild')
| -rw-r--r-- | dev-python/python-tests/python-tests-3.11.15.ebuild | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/dev-python/python-tests/python-tests-3.11.15.ebuild b/dev-python/python-tests/python-tests-3.11.15.ebuild new file mode 100644 index 000000000000..da6050d90342 --- /dev/null +++ b/dev-python/python-tests/python-tests-3.11.15.ebuild @@ -0,0 +1,76 @@ +# Copyright 2024-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_11 ) + +inherit python-r1 verify-sig + +MY_PV=${PV} +MY_P="Python-${MY_PV%_p*}" +PYVER=$(ver_cut 1-2) +PATCHSET="python-gentoo-patches-${MY_PV}" + +DESCRIPTION="Test modules from dev-lang/python" +HOMEPAGE=" + https://www.python.org/ + https://github.com/python/cpython/ +" +SRC_URI=" + https://www.python.org/ftp/python/${PV%%_*}/${MY_P}.tar.xz + https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz + verify-sig? ( + https://www.python.org/ftp/python/${PV%%_*}/${MY_P}.tar.xz.asc + ) +" +S="${WORKDIR}/${MY_P}/Lib" + +LICENSE="PSF-2" +SLOT="${PYVER}" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +# 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} + verify-sig? ( >=sec-keys/openpgp-keys-python-20221025 ) +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/python.org.asc + +src_unpack() { + if use verify-sig; then + verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.xz{,.asc} + fi + 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 +} |
