diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-09-03 14:53:43 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-09-05 10:41:28 +0200 |
commit | a9123a25b79fa4f9473b9cb92358ffd4650cbd78 (patch) | |
tree | 44fbd5101c41d30616f6c80227229f9adf2d70b9 /dev-python | |
parent | app-cdr/dvd+rw-tools: drop myself as a maintainer (diff) | |
download | gentoo-a9123a25b79fa4f9473b9cb92358ffd4650cbd78.tar.gz gentoo-a9123a25b79fa4f9473b9cb92358ffd4650cbd78.tar.bz2 gentoo-a9123a25b79fa4f9473b9cb92358ffd4650cbd78.zip |
dev-python/test: Add a virtual for Python "test" module
Add a virtual package that corresponds to the Python `test` stdlib
package. It enforces either Python versions that install the `test`
package unconditionally, or the corresponding dev-python/python-tests
packages.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/test/metadata.xml | 9 | ||||
-rw-r--r-- | dev-python/test/test-0.ebuild | 45 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/test/metadata.xml b/dev-python/test/metadata.xml new file mode 100644 index 000000000000..6ef265a39adb --- /dev/null +++ b/dev-python/test/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <stabilize-allarches/> +</pkgmetadata> diff --git a/dev-python/test/test-0.ebuild b/dev-python/test/test-0.ebuild new file mode 100644 index 000000000000..d236bc07147c --- /dev/null +++ b/dev-python/test/test-0.ebuild @@ -0,0 +1,45 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( pypy3 python3_{10..13} ) + +inherit python-r1 + +DESCRIPTION="Virtual to install 'test' package from stdlib" +HOMEPAGE="https://docs.python.org/3/library/test.html" + +LICENSE="metapackage" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + $(python_gen_impl_dep 'test-install(+)' pypy3) + $(python_gen_cond_dep ' + || ( + dev-python/python-tests:3.10 + <dev-lang/python-3.10.14_p3-r1:3.10 + ) + ' python3_10) + $(python_gen_cond_dep ' + || ( + dev-python/python-tests:3.11 + <dev-lang/python-3.11.9_p2-r1:3.11 + ) + ' python3_11) + $(python_gen_cond_dep ' + || ( + dev-python/python-tests:3.12 + <dev-lang/python-3.12.5_p1-r1:3.12 + ) + ' python3_12) + $(python_gen_cond_dep ' + || ( + dev-python/python-tests:3.13 + <dev-lang/python-3.13.0_rc1_p3-r1:3.13 + ) + ' python3_13) +" |