kmos aaacf4ec0f Update devel/py-testpath 0.3.1 -> 0.4.2
bring us up to date. Switch over to using MODPY_SETUPTOOLS and
MODPY_PYTEST which removes the need for py-nose in TEST_DEPENDS.
Drop the unnecessary MODPY_FLAVOR off of py-pathlib since that is
in a conditional for Python 3 only.

Moving to MODPY_SETUPTOOLS requires patching setup.py to use
setuptools rather than the obsolete distutils.

OK sthen
2019-09-23 13:38:23 +00:00

42 lines
878 B
Makefile

# $OpenBSD: Makefile,v 1.14 2019/09/23 13:38:23 kmos Exp $
COMMENT = test utilities working with files and commands
MODPY_EGG_VERSION = 0.4.2
DISTNAME = testpath-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = devel
HOMEPAGE = https://github.com/jupyter/testpath
# MIT
PERMIT_PACKAGE = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
MODPY_PYTEST = Yes
FLAVORS = python3
FLAVOR ?=
BUILD_DEPENDS = textproc/py-sphinx${MODPY_FLAVOR}
.if !${FLAVOR:Mpython3}
RUN_DEPENDS = devel/py-pathlib
.endif
post-build:
cd ${WRKSRC}/doc && PYTHONPATH=${WRKSRC} \
${LOCALBASE}/bin/sphinx-build${MODPY_BIN_SUFFIX} -N . _build/html
DOCDIR = ${PREFIX}/share/doc/${MODPY_PY_PREFIX}testpath
post-install:
cp -r ${WRKBUILD}/doc/_build/html ${DOCDIR}
rm ${DOCDIR}/.buildinfo
chown -R ${SHAREOWN}:${SHAREGRP} ${DOCDIR}
.include <bsd.port.mk>