From e066a7923743dc46c045840f70bfeab620f9f519 Mon Sep 17 00:00:00 2001 From: OscarL Date: Fri, 9 Jun 2023 03:56:50 -0300 Subject: [PATCH] pytest: drop .py suffix for "cmd:"s. (#8824) --- dev-python/pytest/pytest-7.3.1.recipe | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dev-python/pytest/pytest-7.3.1.recipe b/dev-python/pytest/pytest-7.3.1.recipe index 0aa375a87..edb30b910 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="1" +REVISION="2" SOURCE_URI="https://pypi.io/packages/source/p/pytest/pytest-$portVersion.tar.gz" CHECKSUM_SHA256="434afafd78b1d78ed0addf160ad2b77a30d35d4bdf8af234fe621919d9ed15e3" @@ -29,8 +29,8 @@ for i in "${!PYTHON_PACKAGES[@]}"; do eval "PROVIDES_${pythonPackage}=\" ${portName}_$pythonPackage = $portVersion - cmd:py.test_$pythonVersion.py = $portVersion - cmd:pytest_$pythonVersion.py = $portVersion + cmd:py.test_$pythonVersion = $portVersion + cmd:pytest_$pythonVersion = $portVersion \"" # Provide non-suffixed cmd only for the default Python version if [ $pythonVersion = $defaultVersion ]; then @@ -73,13 +73,13 @@ INSTALL() # Version suffix all the scripts for f in $binDir/*; do - mv $f ${f%.py}-${pythonVersion}.py + mv $f $f-$pythonVersion done # And provide suffix-less symlinks for the default version if [ $pythonVersion = $defaultVersion ]; then for f in $binDir/*; do - ln -sr $f ${f%-$pythonVersion.py} + ln -sr $f ${f%-$pythonVersion} done fi