net/py-oauth2: Convert to USE_PYTHON=unittest

- Remove unneeded TESTS option
This commit is contained in:
Po-Chuan Hsieh 2022-06-22 00:33:54 +08:00
parent b109a75ecf
commit 17466f8aa7
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B

View File

@ -12,19 +12,12 @@ COMMENT= Python library for OAuth version 1.0
LICENSE= MIT
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httplib2>0:www/py-httplib2@${PY_FLAVOR}
TEST_DEPENDS:= ${RUN_DEPENDS} \
${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
OPTIONS_DEFINE= TESTS
TESTS_DESC= Install test suite requirements
TESTS_BUILD_DEPENDS= ${TEST_DEPENDS}
USES= python:3.6+
USE_PYTHON= autoplist distutils unittest
NO_ARCH= yes
USES= python:3.6+
USE_PYTHON= autoplist distutils
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.mk>