From 35afdc6a3a867d0782a92e6316ede83487cd650b Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Mon, 4 Aug 2025 15:24:15 +0200 Subject: [PATCH] pytest, drop python3.9 (#12664) --- dev-python/pytest/pytest-7.3.1.recipe | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/dev-python/pytest/pytest-7.3.1.recipe b/dev-python/pytest/pytest-7.3.1.recipe index 6b01aa3ce..a72f67002 100644 --- a/dev-python/pytest/pytest-7.3.1.recipe +++ b/dev-python/pytest/pytest-7.3.1.recipe @@ -3,7 +3,7 @@ DESCRIPTION="The pytest framework makes it easy to write small tests, yet scales HOMEPAGE="https://pytest.org" COPYRIGHT="2004 Holger Krekel and others." LICENSE="MIT" -REVISION="3" +REVISION="4" SOURCE_URI="https://pypi.io/packages/source/p/pytest/pytest-$portVersion.tar.gz" CHECKSUM_SHA256="434afafd78b1d78ed0addf160ad2b77a30d35d4bdf8af234fe621919d9ed15e3" @@ -20,14 +20,13 @@ BUILD_REQUIRES=" haiku_devel " -PYTHON_VERSIONS=(3.9 3.10) +PYTHON_VERSIONS=(3.10) defaultVersion=3.10 -for i in "${!PYTHON_VERSIONS[@]}"; do - pythonVersion=${PYTHON_VERSIONS[$i]} +for pythonVersion in ${PYTHON_VERSIONS[@]}; do pythonPackage=python${pythonVersion//.} - eval "PROVIDES_${pythonPackage}=\" + eval "PROVIDES_$pythonPackage=\" ${portName}_$pythonPackage = $portVersion cmd:py.test_$pythonVersion = $portVersion cmd:pytest_$pythonVersion = $portVersion @@ -49,6 +48,7 @@ for i in "${!PYTHON_VERSIONS[@]}"; do tomli_$pythonPackage cmd:python$pythonVersion \"" + BUILD_REQUIRES+=" setuptools_scm_$pythonPackage " @@ -64,8 +64,7 @@ INSTALL() { export SETUPTOOLS_SCM_PRETEND_VERSION=$portVersion - for i in "${!PYTHON_VERSIONS[@]}"; do - pythonVersion=${PYTHON_VERSIONS[$i]} + for pythonVersion in ${PYTHON_VERSIONS[@]}; do pythonPackage=python${pythonVersion//.} python=python$pythonVersion