git: 4c230a4963f7 - main - devel/py-python-discovery: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 27 Feb 2026 11:04:17 UTC
The branch main has been updated by nivit:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4c230a4963f79da26c044565914dd9f0bf5174a2
commit 4c230a4963f79da26c044565914dd9f0bf5174a2
Author: Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2026-02-27 11:02:39 +0000
Commit: Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2026-02-27 11:04:12 +0000
devel/py-python-discovery: Add new port
You may have multiple Python versions installed on your machine – system
Python, versions from pyenv, mise, asdf, uv, or the Windows registry (PEP 514).
python-discovery finds the right one for you.
Give it a requirement like python3.12 or >=3.11,<3.13, and python-discovery
searches all known locations, verifies each candidate, and returns detailed
metadata about the match. Results are cached to disk so repeated lookups are
fast.
https://pypi.org/project/python-discovery/
---
devel/Makefile | 1 +
devel/py-python-discovery/Makefile | 23 +++++++++++++++++++++++
devel/py-python-discovery/distinfo | 3 +++
devel/py-python-discovery/pkg-descr | 8 ++++++++
4 files changed, 35 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 56647ff80497..cae02f39dd8e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5841,6 +5841,7 @@
SUBDIR += py-python-dateutil
SUBDIR += py-python-dbusmock
SUBDIR += py-python-decouple
+ SUBDIR += py-python-discovery
SUBDIR += py-python-distutils-extra
SUBDIR += py-python-dtrace
SUBDIR += py-python-easyconfig
diff --git a/devel/py-python-discovery/Makefile b/devel/py-python-discovery/Makefile
new file mode 100644
index 000000000000..cc5b84d314d3
--- /dev/null
+++ b/devel/py-python-discovery/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= python-discovery
+DISTVERSION= 1.1.0
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S|-|_|g}-${DISTVERSION}
+
+MAINTAINER= nivit@FreeBSD.org
+COMMENT= Python interpreter discovery
+WWW= https://pypi.org/project/python-discovery/
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-vcs>=0.5.0:devel/py-hatch-vcs@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}hatchling>=1.28.0:devel/py-hatchling@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-python-discovery/distinfo b/devel/py-python-discovery/distinfo
new file mode 100644
index 000000000000..cb0855159007
--- /dev/null
+++ b/devel/py-python-discovery/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1772187914
+SHA256 (python_discovery-1.1.0.tar.gz) = 447941ba1aed8cc2ab7ee3cb91be5fc137c5bdbb05b7e6ea62fbdcb66e50b268
+SIZE (python_discovery-1.1.0.tar.gz) = 55674
diff --git a/devel/py-python-discovery/pkg-descr b/devel/py-python-discovery/pkg-descr
new file mode 100644
index 000000000000..461ceb5c3f35
--- /dev/null
+++ b/devel/py-python-discovery/pkg-descr
@@ -0,0 +1,8 @@
+You may have multiple Python versions installed on your machine – system
+Python, versions from pyenv, mise, asdf, uv, or the Windows registry (PEP 514).
+python-discovery finds the right one for you.
+
+Give it a requirement like python3.12 or >=3.11,<3.13, and python-discovery
+searches all known locations, verifies each candidate, and returns detailed
+metadata about the match. Results are cached to disk so repeated lookups are
+fast.