Skip to content

Commit 5faa261

Browse files
author
adam
committed
py-python-discovery: added version 1.1.0
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 it searches all known locations, verifies each candidate, and returns detailed metadata about the match. Results are cached to disk so repeated lookups are fast.
1 parent 35e1fd4 commit 5faa261

5 files changed

Lines changed: 78 additions & 1 deletion

File tree

lang/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: Makefile,v 1.781 2026/02/22 15:20:07 bsiegert Exp $
1+
# $NetBSD: Makefile,v 1.782 2026/03/06 09:28:40 adam Exp $
22
#
33

44
COMMENT= Programming languages
@@ -286,6 +286,7 @@ SUBDIR+= py-pydemumble
286286
SUBDIR+= py-pyformlang
287287
SUBDIR+= py-pygls
288288
SUBDIR+= py-pyrex
289+
SUBDIR+= py-python-discovery
289290
SUBDIR+= py-python-lua
290291
SUBDIR+= py-pythonz
291292
SUBDIR+= py-six

lang/py-python-discovery/DESCR

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
You may have multiple Python versions installed on your machine -- system
2+
Python, versions from pyenv, mise, asdf, uv, or the Windows registry (PEP 514).
3+
python-discovery finds the right one for you.
4+
5+
Give it a requirement like python3.12 or >=3.11,<3.13, and it searches all
6+
known locations, verifies each candidate, and returns detailed metadata about
7+
the match. Results are cached to disk so repeated lookups are fast.

lang/py-python-discovery/Makefile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# $NetBSD: Makefile,v 1.1 2026/03/06 09:28:41 adam Exp $
2+
3+
DISTNAME= python_discovery-1.1.0
4+
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
5+
CATEGORIES= lang python
6+
MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-discovery/}
7+
8+
MAINTAINER= pkgsrc-users@NetBSD.org
9+
HOMEPAGE= https://github.com/tox-dev/python-discovery
10+
COMMENT= Python interpreter discovery
11+
LICENSE= mit
12+
13+
TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-vcs>=0.5:../../devel/py-hatch-vcs
14+
TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling>=1.28:../../devel/py-hatchling
15+
DEPENDS+= ${PYPKGPREFIX}-filelock>=3.15.4:../../devel/py-filelock
16+
DEPENDS+= ${PYPKGPREFIX}-platformdirs>=4.3.6:../../misc/py-platformdirs
17+
TEST_DEPENDS+= ${PYPKGPREFIX}-covdefaults>=2.3:../../devel/py-covdefaults
18+
TEST_DEPENDS+= ${PYPKGPREFIX}-coverage>=7.5.4:../../devel/py-coverage
19+
TEST_DEPENDS+= ${PYPKGPREFIX}-setuptools>=75.1:../../devel/py-setuptools
20+
TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock>=3.14:../../devel/py-test-mock
21+
22+
USE_LANGUAGES= # none
23+
24+
.include "../../lang/python/wheel.mk"
25+
.include "../../mk/bsd.pkg.mk"

lang/py-python-discovery/PLIST

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
@comment $NetBSD: PLIST,v 1.1 2026/03/06 09:28:41 adam Exp $
2+
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
3+
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
4+
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
5+
${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
6+
${PYSITELIB}/python_discovery/__init__.py
7+
${PYSITELIB}/python_discovery/__init__.pyc
8+
${PYSITELIB}/python_discovery/__init__.pyo
9+
${PYSITELIB}/python_discovery/_cache.py
10+
${PYSITELIB}/python_discovery/_cache.pyc
11+
${PYSITELIB}/python_discovery/_cache.pyo
12+
${PYSITELIB}/python_discovery/_cached_py_info.py
13+
${PYSITELIB}/python_discovery/_cached_py_info.pyc
14+
${PYSITELIB}/python_discovery/_cached_py_info.pyo
15+
${PYSITELIB}/python_discovery/_compat.py
16+
${PYSITELIB}/python_discovery/_compat.pyc
17+
${PYSITELIB}/python_discovery/_compat.pyo
18+
${PYSITELIB}/python_discovery/_discovery.py
19+
${PYSITELIB}/python_discovery/_discovery.pyc
20+
${PYSITELIB}/python_discovery/_discovery.pyo
21+
${PYSITELIB}/python_discovery/_py_info.py
22+
${PYSITELIB}/python_discovery/_py_info.pyc
23+
${PYSITELIB}/python_discovery/_py_info.pyo
24+
${PYSITELIB}/python_discovery/_py_spec.py
25+
${PYSITELIB}/python_discovery/_py_spec.pyc
26+
${PYSITELIB}/python_discovery/_py_spec.pyo
27+
${PYSITELIB}/python_discovery/_specifier.py
28+
${PYSITELIB}/python_discovery/_specifier.pyc
29+
${PYSITELIB}/python_discovery/_specifier.pyo
30+
${PYSITELIB}/python_discovery/_windows/__init__.py
31+
${PYSITELIB}/python_discovery/_windows/__init__.pyc
32+
${PYSITELIB}/python_discovery/_windows/__init__.pyo
33+
${PYSITELIB}/python_discovery/_windows/_pep514.py
34+
${PYSITELIB}/python_discovery/_windows/_pep514.pyc
35+
${PYSITELIB}/python_discovery/_windows/_pep514.pyo
36+
${PYSITELIB}/python_discovery/_windows/_propose.py
37+
${PYSITELIB}/python_discovery/_windows/_propose.pyc
38+
${PYSITELIB}/python_discovery/_windows/_propose.pyo
39+
${PYSITELIB}/python_discovery/py.typed

lang/py-python-discovery/distinfo

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
$NetBSD: distinfo,v 1.1 2026/03/06 09:28:41 adam Exp $
2+
3+
BLAKE2s (python_discovery-1.1.0.tar.gz) = 8311c41c8af97d73be52d1c2ef854eaf664345000293e979c5372c777c403ad5
4+
SHA512 (python_discovery-1.1.0.tar.gz) = 80650fba8dd637b78286c0d029e748ecb5201d94cb9faa3ece87bdafee5c51f00609738d9452bb95b88464752fcd95e5d8248e035950a5c645fc5391fb143226
5+
Size (python_discovery-1.1.0.tar.gz) = 55674 bytes

0 commit comments

Comments
 (0)