2017-06-18 20:52:50 +00:00

34 lines
652 B
Makefile

# $OpenBSD: Makefile,v 1.3 2017/06/18 20:52:50 shadchin Exp $
COMMENT = discover and load entry points from installed packages
MODPY_EGG_VERSION = 0.2.3
DISTNAME = entrypoints-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = devel
HOMEPAGE = https://github.com/takluyver/entrypoints
MAINTAINER = Alexandr Shadchin <shadchin@openbsd.org>
# MIT
PERMIT_PACKAGE_CDROM = Yes
MODULES = lang/python
MODPY_PI = Yes
TEST_DEPENDS = devel/py-test${MODPY_FLAVOR}
FLAVORS = python3
FLAVOR ?=
.if !${FLAVOR:Mpython3}
RUN_DEPENDS += devel/py-configparser
.endif
do-test:
cd ${WRKSRC} && ${MODPY_BIN} -m pytest
.include <bsd.port.mk>