From ee8e0c3aaba9b6a67c27b5644a39b95963bfbb8a Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Mon, 4 Aug 2025 15:20:08 +0200 Subject: [PATCH] asttokens, drop python3.9 (#12667) --- dev-python/asttokens/asttokens-2.2.1.recipe | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/dev-python/asttokens/asttokens-2.2.1.recipe b/dev-python/asttokens/asttokens-2.2.1.recipe index 8fc1fbf22..a945ab3c5 100644 --- a/dev-python/asttokens/asttokens-2.2.1.recipe +++ b/dev-python/asttokens/asttokens-2.2.1.recipe @@ -7,7 +7,7 @@ that resulted in those nodes, for example for automated refactoring or highlight HOMEPAGE="https://github.com/gristlabs/asttokens" COPYRIGHT="2016 Grist Labs" LICENSE="Apache v2" -REVISION="1" +REVISION="2" SOURCE_URI="https://pypi.io/packages/source/a/$portName/$portName-$portVersion.tar.gz" CHECKSUM_SHA256="4622110b2a6f30b77e1473affaa97e711bc2f07d3f10848420ff1898edbe94f3" @@ -20,11 +20,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 @@ -39,6 +38,7 @@ for i in "${!PYTHON_PACKAGES[@]}"; do setuptools_$pythonPackage wheel_$pythonPackage " + BUILD_PREREQUIRES+=" cmd:python$pythonVersion " @@ -52,13 +52,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 } @@ -67,7 +68,7 @@ INSTALL() TEST() { for i in "${!PYTHON_VERSIONS[@]}"; do - python=python${PYTHON_VERSIONS[$i]} + python=python$pythonVersion $python -m pytest done