if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}. This commit doesn't change any versions currently used; it may be that some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those should be cleaned up in the course of updating ports where possible. Python module ports providing py3-* packages should still use FLAVOR=python3 so that we don't have a mixture of dependencies some using ${MODPY_FLAVOR} and others not.
39 lines
932 B
Makefile
39 lines
932 B
Makefile
# $OpenBSD: Makefile,v 1.19 2021/02/23 19:39:34 sthen Exp $
|
|
|
|
COMMENT = official command-line client for RIPE Atlas
|
|
|
|
MODPY_EGG_VERSION = 2.3.0
|
|
DISTNAME = ripe.atlas.tools-${MODPY_EGG_VERSION}
|
|
REVISION = 3
|
|
|
|
CATEGORIES = net
|
|
|
|
HOMEPAGE = https://github.com/RIPE-NCC/ripe-atlas-tools
|
|
|
|
# GPLv3
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MODPY_PI = Yes
|
|
MODPY_SETUPTOOLS = Yes
|
|
MODPY_PYTEST = Yes
|
|
MODPY_PYTEST_ARGS = tests/test*.py tests/*/*.py
|
|
|
|
MODULES = lang/python
|
|
|
|
PORTHOME = ${WRKDIST}
|
|
|
|
RUN_DEPENDS = devel/py-dateutil${MODPY_FLAVOR} \
|
|
devel/py-tzlocal${MODPY_FLAVOR} \
|
|
net/py-IP${MODPY_FLAVOR} \
|
|
net/py-ripe.atlas.cousteau${MODPY_FLAVOR} \
|
|
net/py-ripe.atlas.sagan${MODPY_FLAVOR} \
|
|
security/py-openssl${MODPY_FLAVOR} \
|
|
textproc/py-yaml${MODPY_FLAVOR} \
|
|
www/py-requests${MODPY_FLAVOR}
|
|
|
|
TEST_DEPENDS = devel/py-coverage${MODPY_FLAVOR} \
|
|
devel/py-mock${MODPY_FLAVOR} \
|
|
devel/py-nose${MODPY_FLAVOR}
|
|
|
|
.include <bsd.port.mk>
|