astroid: drop Python 3.9 support.

Only user on-tree of this is `asttokens`, and we only package that
for 3.10 at the moment.
This commit is contained in:
Oscar Lesta
2025-09-19 16:26:53 -03:00
committed by OscarL
parent 637c008d6d
commit 773dc55cd8

View File

@@ -10,7 +10,7 @@ build partial trees by inspecting living objects."
HOMEPAGE="https://github.com/PyCQA/astroid"
COPYRIGHT="2003-2023, Logilab, PyCQA and contributors"
LICENSE="GNU LGPL v2.1"
REVISION="2"
REVISION="3"
SOURCE_URI="https://pypi.io/packages/source/a/$portName/$portName-$portVersion.tar.gz"
CHECKSUM_SHA256="1039262575027b441137ab4a62a793a9b43defb42c32d5670f38686207cd780f"
@@ -27,11 +27,10 @@ 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)
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
@@ -60,13 +59,14 @@ done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
python=python${PYTHON_VERSIONS[i]}
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
python=python$pythonVersion
pythonPackage=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
}
@@ -86,8 +86,8 @@ TEST()
rm tests/test_regrtest.py
rm tests/test_scoped_nodes.py
for i in "${!PYTHON_VERSIONS[@]}"; do
python=python${PYTHON_VERSIONS[i]}
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
python=python$pythonVersion
$python -m pytest -m "not acceptance" tests
done