lang/python/python.port.mk revision 1.102 and 1.103 added MODPY_TEST_LOCALE and MODPY_PYTEST respectively, nicely wrapping up the usual pytest dance. This removes hand-rolled do-tests from all 70 ports by setting MODPY_PYTEST=Yes and MODPY_TEST_LOCALE as well as HOME=${WRKDIR} to TESTENV as needed. From Kurt Mosiejczuk <kurt at cranky dot work>, thanks! OK sthen
39 lines
858 B
Makefile
39 lines
858 B
Makefile
# $OpenBSD: Makefile,v 1.4 2019/03/25 14:29:52 kn Exp $
|
|
|
|
COMMENT = service identity verification for pyOpenSSL/py-cryptography
|
|
|
|
MODPY_EGG_VERSION = 18.1.0
|
|
DISTNAME = service_identity-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-${DISTNAME}
|
|
REVISION = 0
|
|
|
|
# also on pypi, but no tests present
|
|
GH_ACCOUNT = pyca
|
|
GH_PROJECT = service_identity
|
|
GH_TAGNAME = ${MODPY_EGG_VERSION}
|
|
|
|
CATEGORIES = security
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
MODULES = lang/python
|
|
MODPY_SETUPTOOLS = Yes
|
|
MODPY_PYTEST = Yes
|
|
|
|
RUN_DEPENDS = devel/py-asn1${MODPY_FLAVOR} \
|
|
devel/py-asn1-modules${MODPY_FLAVOR} \
|
|
devel/py-attrs${MODPY_FLAVOR} \
|
|
net/py-idna${MODPY_FLAVOR} \
|
|
security/py-cryptography${MODPY_FLAVOR} \
|
|
security/py-openssl${MODPY_FLAVOR}
|
|
|
|
TEST_DEPENDS = ${RUN_DEPENDS}
|
|
|
|
FLAVORS = python3
|
|
FLAVOR ?=
|
|
|
|
TEST_ENV += PYTHONPATH=${WRKSRC}/lib
|
|
|
|
.include <bsd.port.mk>
|