pkgsrc-Users archive

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

security/py-spake2: updated version in wip can now run tests



Hi,

re-imported security/py-spake2 to wip - that version now runs proper
tests. As it uses py-test instead of py-nose and py-test does not like
python 2.7, I also added PYTHON_VERSIONS_INCOMPATIBLE=27 to the
Makefile. For python 3.6 - 3.9 all tests complete successfully.


Regards
Matthias

-----------------------------------------------------------------------

diff -rbup security/py-spake2/Makefile wip/py-spake2/Makefile
--- security/py-spake2/Makefile 2021-07-03 21:12:21.390551952 +0200
+++ wip/py-spake2/Makefile      2021-07-03 20:58:59.086854314 +0200
@@ -10,10 +10,14 @@ HOMEPAGE=   https://github.com/warner/pyth
 COMMENT=       Pure-Python SPAKE2
 LICENSE=       mit
 
-PYTHON_VERSIONED_DEPENDENCIES= test:test
-
 DEPENDS+=      ${PYPKGPREFIX}-hkdf-[0-9]*:../../security/py-hkdf
 
+PYTHON_VERSIONS_INCOMPATIBLE=  27 # devel/py-test is incompatible with 2.7 since 5.0.0
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+
 .include "../../lang/python/egg.mk"
 .include "../../lang/python/versioned_dependencies.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index