*: only run tests for python 3

This commit is contained in:
wiz 2023-04-30 19:40:20 +00:00
parent 7f405203fc
commit ce8abefa16
2 changed files with 15 additions and 9 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.28 2022/08/24 08:41:08 wiz Exp $
# $NetBSD: Makefile,v 1.29 2023/04/30 19:40:20 wiz Exp $
DISTNAME= wheel-0.37.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@ -11,12 +11,8 @@ HOMEPAGE= https://github.com/pypa/wheel
COMMENT= Built-package format for Python
LICENSE= mit
TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
USE_LANGUAGES= # none
PYTHON_VERSIONED_DEPENDENCIES+= test-cov:test
PYSETUPTESTTARGET= pytest
USE_PKG_RESOURCES= yes
@ -25,6 +21,12 @@ post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} wheel wheel-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/versioned_dependencies.mk"
.include "../../lang/python/pyversion.mk"
.if ${PYTHON_VERSION} > 300
TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
.endif
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.20 2022/01/04 20:54:10 wiz Exp $
# $NetBSD: Makefile,v 1.21 2023/04/30 19:40:20 wiz Exp $
DISTNAME= six-1.16.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@ -11,11 +11,15 @@ HOMEPAGE= https://github.com/benjaminp/six
COMMENT= Python 2 and 3 compatibility utilities
LICENSE= mit
TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
USE_LANGUAGES= # none
PYSETUPTESTTARGET= pytest
.include "../../lang/python/pyversion.mk"
.if ${PYTHON_VERSION} > 300
TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
.endif
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"