pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/finance/py-pyevmasm py-pyevmasm: switch to testing via...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b8048f6b2f21
branches:  trunk
changeset: 770064:b8048f6b2f21
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Nov 24 10:54:52 2021 +0000

description:
py-pyevmasm: switch to testing via py-test.

diffstat:

 finance/py-pyevmasm/Makefile |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 2f789c27de43 -r b8048f6b2f21 finance/py-pyevmasm/Makefile
--- a/finance/py-pyevmasm/Makefile      Wed Nov 24 10:50:24 2021 +0000
+++ b/finance/py-pyevmasm/Makefile      Wed Nov 24 10:54:52 2021 +0000
@@ -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 @@
 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