*: Revise USES=python:... version range constraints

and strip all lower bounds of 3.9 or 3.10 because they are implied now.

python:3.9-X  -> python:-X
python:3.9+   -> python
python:3.10-X -> python:-X
python:3.10+  -> python
(options such as ,build preserved)
This commit is contained in:
Matthias Andree
2025-11-01 18:23:22 +01:00
parent b9de19c428
commit 1403bb7765
285 changed files with 299 additions and 299 deletions
+14 -14
View File
@@ -17,19 +17,19 @@
# Examples:
#
# USES=python:2.7 # Supports Python 2.7 Only
# USES=python:3.9+ # Supports Python 3.9 or later
# USES=python:3.9-3.10 # Supports Python 3.9 to 3.10
# USES=python:-3.9 # Supports Python up to 3.9
# USES=python # Supports 3.9+
# USES=python:3.11+ # Supports Python 3.11 or later
# USES=python:3.11-3.12 # Supports Python 3.11 to 3.12
# USES=python:-3.11 # Supports Python up to 3.11
# USES=python # Supports 3.10+
#
# NOTE: <version-spec> should be as specific as possible, matching the versions
# upstream declares support for, without being incorrect. In particular,
# USES=python *without* a <version-spec> means 3.9+,
# USES=python *without* a <version-spec> means 3.11+,
# including unreleased versions, which is probably incorrect.
#
# Not specifying a <version-spec> should only be used when a more specific
# <version-spec> cannot be specified due to syntax limitations, for
# example: 2.7,3.9-3.10, but even in this case, X.Y+ (2.7+), or -X.Y (-3.9)
# example: 2.7,3.11-3.12, but even in this case, X.Y+ (2.7+), or -X.Y (-3.11)
# is preferred and likely more correct.
#
# patch Python is needed at patch time. Adds dependency to PATCH_DEPENDS.
@@ -50,7 +50,7 @@
# Exported variables:
#
# PYTHON_VERSION - The chosen Python interpreter including the version,
# e.g. python2.7, python3.9, etc.
# e.g. python2.7, python3.11, etc.
#
# Variables, which can be set by the port:
#
@@ -227,10 +227,10 @@
# PYTHON_PORTSDIR - The port directory of the chosen Python interpreter
#
# PYTHON_REL - The release number of the chosen Python interpreter
# without dots, e.g. 20706, 30901, ...
# without dots, e.g. 20706, 31114, ...
#
# PYTHON_SUFFIX - The major-minor release number of the chosen Python
# interpreter without dots, e.g. 27, 38, ...
# interpreter without dots, e.g. 27, 310, ...
# Used for prefixes and suffixes.
#
# PYTHON_BASESUFFIX - PYTHON_SUFFIX without the threaded ABI flag.
@@ -252,7 +252,7 @@
# interpreter, e.g. 2, 3, ...
#
# PYTHON_VER - The major-minor release version of the chosen Python
# interpreter, e.g. 2.7, 3.9, ...
# interpreter, e.g. 2.7, 3.12, ...
#
# PYTHON_BASEVER - PYTHON_VER without the threaded ABI flag.
#
@@ -341,7 +341,7 @@ ZEROREGS_UNSAFE= yes
# What Python version and what Python interpreters are currently supported?
# When adding a version, please keep the comment in
# Mk/bsd.default-versions.mk in sync.
_PYTHON_VERSIONS= 3.11 3.12 3.10 3.9 2.7 # preferred first
_PYTHON_VERSIONS= 3.11 3.12 3.10 2.7 # preferred first
_PYTHON_PORTBRANCH= 3.11 # ${_PYTHON_VERSIONS:[1]}
_PYTHON_BASECMD= ${LOCALBASE}/bin/python
_PYTHON_RELPORTDIR= lang/python
@@ -444,13 +444,13 @@ DEV_WARNING+= "lang/python27 reached End of Life and will be removed somewhere
. elif ${_PYTHON_ARGS} == 2
DEV_ERROR+= "USES=python:2 is no longer supported, use USES=python:2.7"
. elif ${_PYTHON_ARGS} == 3
DEV_ERROR+= "USES=python:3 is no longer supported, use USES=python:3.9+ or an appropriate version range"
DEV_ERROR+= "USES=python:3 is no longer supported, use USES=python:3.11+ or an appropriate version range"
. endif # ${_PYTHON_ARGS} == 2.7
_PYTHON_VERSION:= ${PYTHON_DEFAULT}
. if empty(_PYTHON_ARGS)
_PYTHON_ARGS= 3.9+
_PYTHON_ARGS= 3.10+
. endif
# Validate Python version whether it meets the version restriction.
@@ -552,7 +552,7 @@ PKGNAMESUFFIX= ${PYTHON_PKGNAMESUFFIX}
# To avoid having dependencies with @ and empty flavor:
# _PYTHON_VERSION is either set by (first that matches):
# - If using Python flavors, from the current Python flavor
# - If using a version restriction (USES=python:3.9+), from the first
# - If using a version restriction (USES=python:3.11+), from the first
# acceptable default Python version.
# - From PYTHON_DEFAULT
PY_FLAVOR= py${_PYTHON_VERSION:S/.//}
+1 -1
View File
@@ -140,7 +140,7 @@ PYCRYPTOGRAPHY_DEFAULT?= rust
. else
PYCRYPTOGRAPHY_DEFAULT?= legacy
. endif
# Possible values: 3.9, 3.10, 3.11, 3.12
# Possible values: 3.10, 3.11, 3.12
PYTHON_DEFAULT?= 3.11
# Possible values: 2.7
PYTHON2_DEFAULT?= 2.7
+1 -1
View File
@@ -19,7 +19,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}h5py>=2.4.0:science/py-h5py@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}numpy>=1.24,1:math/py-numpy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}setuptools>=0.7:devel/py-setuptools@${PY_FLAVOR}
USES= pkgconfig python:3.9+
USES= pkgconfig python
USE_PYTHON= autoplist concurrent cython pep517
CFLAGS+= -Wno-error=int-conversion
+1 -1
View File
@@ -23,7 +23,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}msgpack>=0:devel/py-msgpack@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}py-cpuinfo>=0:sysutils/py-py-cpuinfo@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR}
USES= cmake:indirect pkgconfig python:3.10+
USES= cmake:indirect pkgconfig python
USE_PYTHON= autoplist concurrent cython3 pep517
MAKE_ENV= USE_SYSTEM_BLOSC2=1
+1 -1
View File
@@ -16,7 +16,7 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=63:devel/py-setuptools@${PY_FL
${PYTHON_PKGNAMEPREFIX}setuptools-scm>=8:devel/py-setuptools-scm@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
USES= cmake:indirect python:3.10+
USES= cmake:indirect python
USE_PYTHON= autoplist pep517
OPTIONS_DEFINE= SYSTEM_ZLIB_NG
+1 -1
View File
@@ -15,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=0:devel/py-poetry-core@${PY_FLAVOR}
USES= python:3.9+
USES= python
USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
+1 -1
View File
@@ -26,7 +26,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>=3.5.0:math/py-matplotlib@${PY_FL
${PYTHON_PKGNAMEPREFIX}traitlets>=5.0.5:devel/py-traitlets@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}xarray>=0.21.0:devel/py-xarray@${PY_FLAVOR}
USES= python:3.9+
USES= python
USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
+1 -1
View File
@@ -11,7 +11,7 @@ WWW= http://fungi.yuggoth.org/weather/
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python:3.9+ shebangfix tar:xz
USES= python shebangfix tar:xz
NO_ARCH= yes
NO_BUILD= yes
+1 -1
View File
@@ -19,7 +19,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flaky>=0:devel/py-flaky@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-random-order>=0:devel/py-pytest-random-order@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR}
USES= python:3.10+
USES= python
USE_PYTHON= autoplist concurrent pep517 pytest
NO_ARCH= yes
+1 -1
View File
@@ -20,7 +20,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyserial>0:comms/py-pyserial@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yattag>0:devel/py-yattag@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}suds>0:net/py-suds@${PY_FLAVOR}
USES= desktop-file-utils gnome python:3.10+ shebangfix
USES= desktop-file-utils gnome python shebangfix
SHEBANG_GLOB= *.py
USE_GITHUB= yes
+1 -1
View File
@@ -14,7 +14,7 @@ LIB_DEPENDS= libcurl.so:ftp/curl
RUN_DEPENDS= pdfinfo:graphics/poppler-utils \
zip:archivers/zip
USES= bison cmake python:3.9+ shebangfix ssl tar:xz
USES= bison cmake python shebangfix ssl tar:xz
SHEBANG_FILES= src/get-author-url src/ietf2bibtex
+1 -1
View File
@@ -12,7 +12,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
DEPRECATED= Upstream repository archived on Oct 11, 2025
USES= cmake ninja:build python:3.9+,build
USES= cmake ninja:build python:build
USE_GITHUB= yes
GH_ACCOUNT= kuzudb
+1 -1
View File
@@ -17,7 +17,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-datadir>=0:devel/py-pytest-datadir@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR}
USES= python:3.9+
USES= python
USE_PYTHON= autoplist distutils
NO_ARCH= yes
+1 -1
View File
@@ -18,7 +18,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}marshmallow>=3.18.0:devel/py-marshmallow@${P
${PYTHON_PKGNAMEPREFIX}sqlalchemy20>=1.4.40<3.0:databases/py-sqlalchemy20@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-lazy-fixture>=0.6.2:devel/py-pytest-lazy-fixture@${PY_FLAVOR} \
USES= python:3.9+
USES= python
USE_PYTHON= autoplist concurrent pep517 pytest
NO_ARCH= yes
+1 -1
View File
@@ -18,7 +18,7 @@ BUILD_DEPENDS= arrow>=${PORTVERSION}<${PORTVERSION}_99:databases/arrow \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
LIB_DEPENDS= libarrow.so:databases/arrow
USES= cmake:indirect python:3.9+ shebangfix
USES= cmake:indirect python shebangfix
USE_PYTHON= autoplist concurrent cython3 pep517
SHEBANG_FILES= cmake_modules/aws_sdk_cpp_generate_variables.sh
+1 -1
View File
@@ -23,7 +23,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}configobj>=5.0.6:devel/py-configobj@${PY_FLA
${PYTHON_PKGNAMEPREFIX}vdirsyncer>=0:deskutils/py-vdirsyncer@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}vobject>=0.9.5:deskutils/py-vobject@${PY_FLAVOR}
USES= gmake python:3.9-3.11
USES= gmake python:-3.11
USE_PYTHON= autoplist pep517
NO_ARCH= yes
+1 -1
View File
@@ -14,7 +14,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=1.26.1:devel/py-hatchling@${PY_FLAVOR}
USES= python:3.9+
USES= python
USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
+1 -1
View File
@@ -18,7 +18,7 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=63.1.0:devel/py-setuptools@${P
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psutil>=6.0.0:sysutils/py-psutil@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.16.0:devel/py-six@${PY_FLAVOR}
USES= python:3.9+
USES= python
USE_PYTHON= autoplist pep517
TRASH_CMDS= trash-empty trash-list trash-restore trash-put trash
+1 -1
View File
@@ -24,7 +24,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}curtsies>=0.4.0:devel/py-curtsies@${PY_FLAVO
${PYTHON_PKGNAMEPREFIX}xdg>=0:devel/py-xdg@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR}
USES= python:3.9+
USES= python
USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
+1 -1
View File
@@ -27,7 +27,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}decorator>=0:devel/py-decorator@${PY_FLAVOR}
${PYTHON_PKGNAMEPREFIX}traitlets>=5:devel/py-traitlets@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}matplotlib-inline>0:math/py-matplotlib-inline@${PY_FLAVOR}
USES= cpe python:3.9+
USES= cpe python
USE_PYTHON= autoplist concurrent pep517
CONFLICTS_INSTALL= py*-ipython5

Some files were not shown because too many files have changed in this diff Show More