wrapt: drop Python 3.9 support.

Only on-tree user (astroid) already only targets 3.10.
This commit is contained in:
Oscar Lesta
2025-09-20 00:31:05 -03:00
committed by OscarL
parent 2293dddb8c
commit 1b813aac30

View File

@@ -5,7 +5,7 @@ function wrappers and decorator functions."
HOMEPAGE="https://github.com/GrahamDumpleton"
COPYRIGHT="2013-2023, Graham Dumpleton"
LICENSE="BSD (2-clause)"
REVISION="1"
REVISION="2"
SOURCE_URI="https://pypi.io/packages/source/w/wrapt/wrapt-$portVersion.tar.gz"
CHECKSUM_SHA256="d06730c6aed78cee4126234cf2d071e01b44b915e725a6cb439a879ec9754a3a"
@@ -26,11 +26,10 @@ BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
"
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)
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
@@ -61,8 +60,8 @@ done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
@@ -71,7 +70,7 @@ INSTALL()
$python -m build --wheel --skip-dependency-check --no-isolation
$python -m installer --p $prefix dist/*.whl
packageEntries ${PYTHON_PACKAGES[i]} \
packageEntries $pythonVersion \
"$prefix"/lib/python*
done
}
@@ -79,8 +78,9 @@ INSTALL()
TEST()
{
for i in "${!PYTHON_VERSIONS[@]}"; do
python=python${PYTHON_VERSIONS[$i]}
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
python=python$pythonVersion
$python -m pytest
done
}