danj fadeb71df3 Import py-pathlib2-2.3.2 from Elias Mariani, ok landry@
The goal of pathlib2 is to provide a backport of standard pathlib
module which tracks the standard library module, so all the newest
features of the standard pathlib can be used also on older Python
versions.
2018-08-09 19:13:41 +00:00

40 lines
783 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2018/08/09 19:13:41 danj Exp $
COMMENT = object-oriented filesystem paths
MODPY_EGG_VERSION = 2.3.2
DISTNAME = pathlib2-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = devel
HOMEPAGE = https://github.com/mcmtroffaes/pathlib2
MAINTAINER = Elias M. Mariani <marianielias@gmail.com>
# MIT
PERMIT_PACKAGE_CDROM = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
FLAVORS = python3
FLAVOR ?=
RUN_DEPENDS += devel/py-six${MODPY_FLAVOR}
TEST_DEPENDS = lang/python/${MODPY_VERSION},-tests \
devel/py-pathlib2${MODPY_FLAVOR}
.if !${FLAVOR:Mpython3}
RUN_DEPENDS += sysutils/py-scandir
TEST_DEPENDS += devel/py-mock
.endif
do-test:
cd ${WRKSRC}/tests && ${MODPY_BIN} test_pathlib2.py
.include <bsd.port.mk>