diff --git a/dev-python/pytest/pytest-7.3.1.recipe b/dev-python/pytest/pytest-7.3.1.recipe index edb30b910..6b01aa3ce 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="2" +REVISION="3" SOURCE_URI="https://pypi.io/packages/source/p/pytest/pytest-$portVersion.tar.gz" CHECKSUM_SHA256="434afafd78b1d78ed0addf160ad2b77a30d35d4bdf8af234fe621919d9ed15e3" @@ -20,12 +20,12 @@ BUILD_REQUIRES=" haiku_devel " -PYTHON_PACKAGES=(python39 python310) PYTHON_VERSIONS=(3.9 3.10) -defaultVersion=3.9 -for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} +defaultVersion=3.10 + +for i in "${!PYTHON_VERSIONS[@]}"; do pythonVersion=${PYTHON_VERSIONS[$i]} + pythonPackage=python${pythonVersion//.} eval "PROVIDES_${pythonPackage}=\" ${portName}_$pythonPackage = $portVersion @@ -64,8 +64,9 @@ INSTALL() { export SETUPTOOLS_SCM_PRETEND_VERSION=$portVersion - for i in "${!PYTHON_PACKAGES[@]}"; do + for i in "${!PYTHON_VERSIONS[@]}"; do pythonVersion=${PYTHON_VERSIONS[$i]} + pythonPackage=python${pythonVersion//.} python=python$pythonVersion $python -m build --wheel --skip-dependency-check --no-isolation @@ -83,7 +84,7 @@ INSTALL() done fi - packageEntries ${PYTHON_PACKAGES[i]} \ + packageEntries $pythonPackage \ $prefix/lib/python* \ $binDir done