pathspec: drop Python 3.9 support.

Only user on-tree (hatchling) is 3.10 only already.
This commit is contained in:
Oscar Lesta
2025-09-19 18:17:33 -03:00
committed by OscarL
parent 8e620e3edf
commit 541a5e9c39

View File

@@ -5,7 +5,7 @@ uses wildmatch for its \`gitignore\` files."
HOMEPAGE="https://github.com/cpburnz/python-pathspec"
COPYRIGHT="2013-2023 Caleb P. Burns"
LICENSE="MPL v2.0"
REVISION="1"
REVISION="2"
SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="d1e055af653947e8c6637320d3d753df662685a79ffd5ef5c8628ae330bb18ee"
SOURCE_FILENAME="patspec-v$portVersion.tar.gz"
@@ -24,11 +24,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
@@ -47,19 +46,20 @@ done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
packageEntries $pythonPackage \
$prefix/lib/python*
done
}