icecream, drop python3.9 (#12658)

This commit is contained in:
Schrijvers Luc
2025-08-04 13:49:23 +02:00
committed by GitHub
parent 863851e235
commit ee503d6344

View File

@@ -12,7 +12,7 @@ ic() is like print(), but better:
HOMEPAGE="https://github.com/gruns/icecream"
COPYRIGHT="2018 Ansgar Grunseid"
LICENSE="MIT"
REVISION="1"
REVISION="2"
SOURCE_URI="https://pypi.io/packages/source/i/$portName/$portName-$portVersion.tar.gz"
CHECKSUM_SHA256="0aa4a7c3374ec36153a1d08f81e3080e83d8ac1eefd97d2f4fe9544e8f9b49de"
PATCHES="icecream-$portVersion.patchset"
@@ -26,11 +26,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
@@ -41,6 +40,7 @@ for i in "${!PYTHON_PACKAGES[@]}"; do
pygments_$pythonPackage
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
build_$pythonPackage
installer_$pythonPackage
@@ -58,13 +58,15 @@ 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
}