mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
executing: drop Python 3.9 support.
Only user on-tree (icecream) is 3.10 only already.
This commit is contained in:
@@ -4,7 +4,7 @@ particularly the AST node being executed"
|
||||
HOMEPAGE="https://github.com/alexmojaki/executing"
|
||||
COPYRIGHT="2019 Alex Hall"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://pypi.io/packages/source/e/$portName/$portName-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="19da64c18d2d851112f09c287f8d3dbbdf725ab0e569077efb6cdcbd3497c107"
|
||||
|
||||
@@ -17,11 +17,10 @@ REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
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
|
||||
@@ -49,13 +48,14 @@ done
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
python=python${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
|
||||
}
|
||||
@@ -72,8 +72,8 @@ TEST()
|
||||
-O littleutils/__init__.py
|
||||
fi
|
||||
|
||||
for i in "${!PYTHON_VERSIONS[@]}"; do
|
||||
python=python${PYTHON_VERSIONS[$i]}
|
||||
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
|
||||
python=python$pythonVersion
|
||||
$python -m pytest
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user