fasteners: drop Python 3.9 support.

Only user on-tree (picard) is already 3.10 only.
This commit is contained in:
Oscar Lesta
2025-09-19 17:18:07 -03:00
committed by OscarL
parent 9092f00130
commit 8381c11b11

View File

@@ -3,7 +3,7 @@ DESCRIPTION="Python cross platform locks for threads and processes."
HOMEPAGE="https://github.com/harlowja/fasteners"
LICENSE="Apache v2"
COPYRIGHT="2014-2022 fasteners authors"
REVISION="1"
REVISION="2"
SOURCE_URI="https://pypi.python.org/packages/source/f/fasteners/fasteners-$portVersion.tar.gz"
CHECKSUM_SHA256="cb7c13ef91e0c7e4fe4af38ecaf6b904ec3f5ce0dda06d34924b6b74b869d953"
@@ -20,13 +20,12 @@ BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
PYTHON_VERSIONS=(3.10)
eval "PROVIDES_${pythonPackage}=\"
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
@@ -46,15 +45,15 @@ done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
$python -m build --wheel --skip-dependency-check --no-isolation
$python -m installer --p $prefix dist/*.whl
packageEntries ${PYTHON_PACKAGES[i]} \
packageEntries $pythonPackage \
"$prefix"/lib/python*
done
}