commit:     43fab102b931874253a590e73b72ed35bb456d8f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 19 18:21:35 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Sep 19 18:22:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43fab102

dev-python/python-tests: Bump to 3.11.10_p1

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

 dev-python/python-tests/Manifest                   |  1 +
 .../python-tests/python-tests-3.11.10_p1.ebuild    | 74 ++++++++++++++++++++++
 2 files changed, 75 insertions(+)

diff --git a/dev-python/python-tests/Manifest b/dev-python/python-tests/Manifest
index 1214ea574f16..7880ef6a64ee 100644
--- a/dev-python/python-tests/Manifest
+++ b/dev-python/python-tests/Manifest
@@ -17,6 +17,7 @@ DIST Python-3.13.0rc2.tar.xz.asc 963 BLAKE2B 
bb75db12c424b7a05c8c0082f79c1ab6e2a
 DIST python-gentoo-patches-3.10.14_p3.tar.xz 22080 BLAKE2B 
f45ebe4df3dc39a842c93d741ef66fd0f9f7d1c6453d499d59b62eda41f01bc17e109205fedc506963d1f21eb3fbf9478564ff5e1a11c10336f855069a642ceb
 SHA512 
db268f1482e5c46a71ce3aef2c2ab6d458cc5263aec360e61c6aff97f119f4f100becefbb575156b1b0239e591a496cb62a136597fadae8a5b630c7233c0040a
 DIST python-gentoo-patches-3.10.15.tar.xz 15896 BLAKE2B 
f908b409dbcedeb4e2fa7255d9dedfb8f86f39b9b12612d45662d2305012692753874befa5377e1bcb2e8fc04b54bf206948e12eb7bc357a764c1b1e496e5997
 SHA512 
a647882ede8d7b97e301e472e91f4573dce9f8bf4e408449444625fdf79859a54fd828daa60c7960721f34c3d6d82e2e45db2c55f2fc093097a0db42f7363b8c
 DIST python-gentoo-patches-3.11.10.tar.xz 8484 BLAKE2B 
844aa7a855e3ab5a6307c6bfac9d58faad249ce550d21e8526125dc56b9665dc6fa00530a60efe8f851397d368057400851906e59fec10f6325bd83a51e39317
 SHA512 
bb602b80eed62ca8477b05665267ec3729fd9a85d9b709f844ad729f496d008a529d05d2ebfe8acb5db5ccb99005260bfe458f6ce0d9d358530670e0970e415e
+DIST python-gentoo-patches-3.11.10_p1.tar.xz 10592 BLAKE2B 
1cc02d22b55cb76beba133c37e6db3b9ba12b11cd8776acb064f14431842405cbc9efb5a06319cff1c73d9178ddbbe2e340829d4628c88a9589aa2fc1d308f80
 SHA512 
7ddb08e4d8a9173a26fa18de687a4c85c3d460e2bc595da6f4b15cfe3be264ccdc7d61d5fed1e7a82f256d21caf3ea7de87f774fde61a9d37bed15f86f546adb
 DIST python-gentoo-patches-3.11.9_p2.tar.xz 14916 BLAKE2B 
a910eae412fc1ce3657272c3c2ea9ef95b8d5711ed4c85b93a35f4ab757b1134bff0f8c8a0071e8e06aac784d0b51e36cd9271f892098cba272da4a4e73317d1
 SHA512 
5c055186b3a8376f4f602ec5d1f8e7bf0f067bc67295c1cdaa68ce1fb6fb21cda75e22705b8a5a2a6525af67f3b36a82fde5ba6ae9b097a5914ab79a2f1a0fad
 DIST python-gentoo-patches-3.12.5_p1.tar.xz 8632 BLAKE2B 
13570bb465002cea3590b06d055b936ac0fcc68f6f258aca99a67f02f0b1cd28396424b686c5e080f593a74a744ff449e7220f51f167a858b2313be4c8b64b19
 SHA512 
eb9fb2d48236a9f7941fb8938310cc32d216eb01e19277175223b8b1fe1bfd606bde9a3c8bc66ad2e494fb87ce23b0d1acd359c375e4a11a5caae25450c11360
 DIST python-gentoo-patches-3.12.6.tar.xz 6048 BLAKE2B 
577032d7aa4bab423781bffad8e64f56b492dc31fbd20acd91f3d28356bd697603dfd47a3a9051538dde2af942ae513727ecea415d82f5082a992bd22b8cb2dd
 SHA512 
6f1037e97bb362a3d04c3ec080dc062c5de6e4b779cda0d88f684422d757acd6fc6f971c7004a3f50bbc0161dd28c3146672f74e0e598066f9a8ba4e0eb2627e

diff --git a/dev-python/python-tests/python-tests-3.11.10_p1.ebuild 
b/dev-python/python-tests/python-tests-3.11.10_p1.ebuild
new file mode 100644
index 000000000000..8e3bf062dff3
--- /dev/null
+++ b/dev-python/python-tests/python-tests-3.11.10_p1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 2024 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"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+       ${PYTHON_DEPS}
+       ~dev-lang/python-${PV}:${PYVER}
+       !<dev-lang/python-3.11.9_p2-r1:${PYVER}
+"
+BDEPEND="
+       ${RDEPEND}
+       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
+}

Reply via email to