commit:     d48368056f09fa1e50d9ece86e7556071da8c68f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 27 03:56:04 2026 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Feb 27 04:01:49 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4836805

dev-python/python-discovery: New package, v1.1.0

New NIH dependency for dev-python/virtualenv.

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

 dev-python/python-discovery/Manifest               |  2 +
 dev-python/python-discovery/metadata.xml           | 12 +++++
 .../python-discovery/python-discovery-1.1.0.ebuild | 51 ++++++++++++++++++++++
 3 files changed, 65 insertions(+)

diff --git a/dev-python/python-discovery/Manifest 
b/dev-python/python-discovery/Manifest
new file mode 100644
index 000000000000..5a469d62d107
--- /dev/null
+++ b/dev-python/python-discovery/Manifest
@@ -0,0 +1,2 @@
+DIST python_discovery-1.1.0.tar.gz 55674 BLAKE2B 
0873b460369b07973a8e8375d7c04bd354f699f149721f0f4a1b2f9959874d1fd7ed768631d22a4b81bfecdfc84e2401b39b8839e5e64c2c8d412b87d745c72c
 SHA512 
80650fba8dd637b78286c0d029e748ecb5201d94cb9faa3ece87bdafee5c51f00609738d9452bb95b88464752fcd95e5d8248e035950a5c645fc5391fb143226
+DIST python_discovery-1.1.0.tar.gz.provenance 9353 BLAKE2B 
41747cb58865e3dd391a99be351c5d10fc3ebbfaf2a647660da02b0ed7de224a15ec0281eec2707c613db3864fccb8f3b650b05ead0a23729764e880a9c939a1
 SHA512 
6e93df010db38c40cd36db30f9a1b50eb0c19e3dcf1529ecb4ee00f7f204b01d828f7f96c3eeac68474e902c6bcbcacc587329ca1e84cf809cce3c6cbe4c043c

diff --git a/dev-python/python-discovery/metadata.xml 
b/dev-python/python-discovery/metadata.xml
new file mode 100644
index 000000000000..201be55b0824
--- /dev/null
+++ b/dev-python/python-discovery/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>[email protected]</email>
+       </maintainer>
+       <stabilize-allarches/>
+       <upstream>
+               <remote-id type="github">tox-dev/python-discovery</remote-id>
+               <remote-id type="pypi">python-discovery</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/dev-python/python-discovery/python-discovery-1.1.0.ebuild 
b/dev-python/python-discovery/python-discovery-1.1.0.ebuild
new file mode 100644
index 000000000000..20c04204f526
--- /dev/null
+++ b/dev-python/python-discovery/python-discovery-1.1.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYPI_VERIFY_REPO=https://github.com/tox-dev/python-discovery
+PYTHON_COMPAT=( pypy3_11 python3_{11..14} python3_{13,14}t )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python interpreter discovery"
+HOMEPAGE="
+       https://github.com/tox-dev/python-discovery/
+       https://pypi.org/project/python-discovery/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       >=dev-python/filelock-3.15.4[${PYTHON_USEDEP}]
+       <dev-python/platformdirs-5[${PYTHON_USEDEP}]
+       >=dev-python/platformdirs-4.3.6[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       dev-python/hatch-vcs[${PYTHON_USEDEP}]
+       test? (
+               >=dev-python/setuptools-75.1[${PYTHON_USEDEP}]
+       )
+"
+
+EPYTEST_PLUGINS=( pytest-mock )
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+python_test() {
+       local EPYTEST_DESELECT=()
+
+       case ${EPYTHON} in
+               python3.*t)
+                       EPYTEST_DESELECT+=(
+                               # TODO
+                               
tests/test_py_info_extra.py::test_satisfies_path_not_abs_basename_match
+                       )
+                       ;;
+       esac
+
+       epytest
+}

Reply via email to