Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: dont install speechrecognition tests in site-packages/
To:
Landry Breuil <landry@openbsd.org>
Cc:
didickman@gmail.com, kevlo@openbsd.org, ports@openbsd.org
Date:
Sun, 28 Dec 2025 14:33:05 +0000

Download raw body.

Thread
yes please, ok sthen


On 2025/12/28 10:05, Landry Breuil wrote:
> hi,
> 
> spotted while working on another port that conflicted with it, they're
> installed since the 3.14.3 update in june.. and tests runs fine without
> installing them .. ok ?
> 
> =========================== short test summary info ============================
> FAILED tests/test_recognition.py::TestRecognition::test_sphinx_english - spee...
> FAILED tests/test_special_features.py::TestSpecialFeatures::test_sphinx_keywords
> ============= 2 failed, 24 passed, 15 skipped, 1 warning in 1.02s ==============
> 
> Landry

> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/audio/py-speechrecognition/Makefile,v
> diff -u -r1.11 Makefile
> --- Makefile	14 Nov 2025 17:46:31 -0000	1.11
> +++ Makefile	28 Dec 2025 09:02:22 -0000
> @@ -5,6 +5,7 @@
>  GH_PROJECT =	speech_recognition
>  GH_TAGNAME =	${MODPY_DISTV}
>  PKGNAME =	py-speechrecognition-${MODPY_DISTV}
> +REVISION =	0
>  
>  CATEGORIES =	audio
>  
> @@ -34,5 +35,8 @@
>  TEST_DEPENDS =	math/py-numpy \
>  		www/py-httpx \
>  		www/py-respx
> +
> +post-install:
> +	rm -Rf ${WRKINST}${MODPY_SITEPKG}/tests
>  
>  .include <bsd.port.mk>
> Index: pkg/PLIST
> ===================================================================
> RCS file: /cvs/ports/audio/py-speechrecognition/pkg/PLIST,v
> diff -u -r1.7 PLIST
> --- pkg/PLIST	23 Oct 2025 13:19:03 -0000	1.7
> +++ pkg/PLIST	28 Dec 2025 09:02:22 -0000
> @@ -81,17 +81,3 @@
>  lib/python${MODPY_VERSION}/site-packages/speechrecognition-${MODPY_DISTV}.dist-info/licenses/LICENSE-FLAC.txt
>  lib/python${MODPY_VERSION}/site-packages/speechrecognition-${MODPY_DISTV}.dist-info/licenses/LICENSE.txt
>  lib/python${MODPY_VERSION}/site-packages/speechrecognition-${MODPY_DISTV}.dist-info/top_level.txt
> -lib/python${MODPY_VERSION}/site-packages/tests/
> -lib/python${MODPY_VERSION}/site-packages/tests/__init__.py
> -lib/python${MODPY_VERSION}/site-packages/tests/${MODPY_PYCACHE}/
> -lib/python${MODPY_VERSION}/site-packages/tests/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
> -lib/python${MODPY_VERSION}/site-packages/tests/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
> -lib/python${MODPY_VERSION}/site-packages/tests/${MODPY_PYCACHE}test_audio.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
> -lib/python${MODPY_VERSION}/site-packages/tests/${MODPY_PYCACHE}test_audio.${MODPY_PYC_MAGIC_TAG}pyc
> -lib/python${MODPY_VERSION}/site-packages/tests/${MODPY_PYCACHE}test_recognition.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
> -lib/python${MODPY_VERSION}/site-packages/tests/${MODPY_PYCACHE}test_recognition.${MODPY_PYC_MAGIC_TAG}pyc
> -lib/python${MODPY_VERSION}/site-packages/tests/${MODPY_PYCACHE}test_special_features.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
> -lib/python${MODPY_VERSION}/site-packages/tests/${MODPY_PYCACHE}test_special_features.${MODPY_PYC_MAGIC_TAG}pyc
> -lib/python${MODPY_VERSION}/site-packages/tests/test_audio.py
> -lib/python${MODPY_VERSION}/site-packages/tests/test_recognition.py
> -lib/python${MODPY_VERSION}/site-packages/tests/test_special_features.py