dev-python/python-tests - 3.14.4 (gentoo)

Search

Install

Install this version:

emerge -a =dev-python/python-tests-3.14.4

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/python-tests-3.14.4

Or alternatively:

emerge --autounmask-write -a =dev-python/python-tests-3.14.4

Package Information

Description:
Test modules from dev-lang/python
Homepage:
https://www.python.org/ https://github.com/python/cpython/
License:
PSF-2

Ebuild Details

Version EAPI Keywords Slot
3.14.4 8 ~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 $(ver_cut
View Raw Ebuild
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_14 )
VERIFY_SIG_METHOD=sigstore

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://distfiles.gentoo.org/pub/proj/python/patchsets/${PYVER%t}/${PATCHSET}.tar.xz
	verify-sig? (
		https://www.python.org/ftp/python/${PV%%_*}/${MY_P}.tar.xz.sigstore
	)
"
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}
"
BDEPEND="
	${PYTHON_DEPS}
"

# https://www.python.org/downloads/metadata/sigstore/
VERIFY_SIG_CERT_IDENTITY=hugo@python.org
VERIFY_SIG_CERT_OIDC_ISSUER=https://github.com/login/oauth

src_unpack() {
	if use verify-sig; then
		verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.xz{,.sigstore}
	fi
	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
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-python/python-tests | euse -E <flag> -p dev-python/python-tests | euse -D <flag> -p dev-python/python-tests

USE_EXPAND: python_targets

python_targets_${PYTHON_COMPAT[0]}
Default: Enabled (+)

Inherited Eclasses

Dependencies

RDEPEND

	
	~dev-lang/python-3.14.4:$(ver_cut

BDEPEND

	

Manifest for 3.14.4

Type File Size Source URLs
DIST Python-3.14.4.tar.xz 23855332 bytes https://www.python.org/ftp/python/3.14.4/Python-3.14.4.tar.xz
DIST Python-3.14.4.tar.xz.sigstore 5219 bytes https://www.python.org/ftp/python/3.14.4/Python-3.14.4.tar.xz.sigstore
DIST python-gentoo-patches-3.14.4.tar.xz 8012 bytes https://distfiles.gentoo.org/pub/proj/python/patchsets/$(ver_cu/python-gentoo-patches-3.14.4.tar.xz