pkgsrc-Changes archive

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

CVS commit: pkgsrc/finance/py-pyevmasm



Module Name:    pkgsrc
Committed By:   wiz
Date:           Wed Nov 24 10:54:52 UTC 2021

Modified Files:
        pkgsrc/finance/py-pyevmasm: Makefile

Log Message:
py-pyevmasm: switch to testing via py-test.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/finance/py-pyevmasm/Makefile

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

Modified files:

Index: pkgsrc/finance/py-pyevmasm/Makefile
diff -u pkgsrc/finance/py-pyevmasm/Makefile:1.1 pkgsrc/finance/py-pyevmasm/Makefile:1.2
--- pkgsrc/finance/py-pyevmasm/Makefile:1.1     Tue Sep 29 00:34:09 2020
+++ pkgsrc/finance/py-pyevmasm/Makefile Wed Nov 24 10:54:52 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/09/29 00:34:09 khorben Exp $
+# $NetBSD: Makefile,v 1.2 2021/11/24 10:54:52 wiz Exp $
 
 DISTNAME=      pyevmasm-0.2.3
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -12,17 +12,20 @@ HOMEPAGE=   https://github.com/trailofbits
 COMMENT=       Ethereum Virtual Machine (EVM) assembler and disassembler
 LICENSE=       apache-2.0
 
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-flake8-[0-9]*:../../devel/py-flake8
 DEPENDS+=      ${PYPKGPREFIX}-future-[0-9]*:../../devel/py-future
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 
 USE_LANGUAGES= # none
 
+TEST_ENV+=     PYTHONPATH=${WRKSRC}/build/lib
+
 post-install:
        ${MV} ${DESTDIR}${PREFIX}/bin/evmasm \
                ${DESTDIR}${PREFIX}/bin/evmasm-${PYVERSSUFFIX}
 
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+
 # TODO: Migrate MASTER_SITES to MASTER_SITE_PYPI
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index