pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-hmmlearn: Clean up and document pytest issues



Module Name:	pkgsrc-wip
Committed By:	Jason W. Bacon <bacon%NetBSD.org@localhost>
Pushed By:	outpaddling
Date:		Fri Dec 29 10:26:20 2023 -0600
Changeset:	e87dea9db5ecccf0a4c7760003a289166a62931f

Modified Files:
	py-hmmlearn/Makefile

Log Message:
py-hmmlearn: Clean up and document pytest issues

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e87dea9db5ecccf0a4c7760003a289166a62931f

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-hmmlearn/Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diffs:
diff --git a/py-hmmlearn/Makefile b/py-hmmlearn/Makefile
index b8cb11cbca..20e46a2b31 100644
--- a/py-hmmlearn/Makefile
+++ b/py-hmmlearn/Makefile
@@ -10,7 +10,6 @@ HOMEPAGE=	https://github.com/hmmlearn/hmmlearn
 COMMENT=	Algorithms for inference of Hidden Markov Models
 LICENSE=	modified-bsd
 
-TOOL_DEPENDS+=	${PYPKGPREFIX}-wheel>=0:../../devel/py-wheel
 TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
 DEPENDS+=	${PYPKGPREFIX}-scikit-learn>=0.16:../../math/py-scikit-learn
 DEPENDS+=	${PYPKGPREFIX}-matplotlib>0:../../graphics/py-matplotlib
@@ -19,12 +18,14 @@ TEST_DEPENDS+=	${PYPKGPREFIX}-test>=5.4.1:../../devel/py-test
 
 USE_LANGUAGES=	c c++
 
+# 2023-12-29: Tests currently fail due to known upstream issues
 do-test:
+	# setup.py builds directly to prefix by default, so we need to build
+	# again within the project for pytest to work
 	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} setup.py develop
-	# cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} -m pytest --capture=no
 	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} --capture=no
 
-.include "../../devel/py-pybind11/buildlink3.mk"
 .include "../../lang/python/wheel.mk"
+.include "../../devel/py-pybind11/buildlink3.mk"
 .include "../../math/py-numpy/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index