Changeset View
Changeset View
Standalone View
Standalone View
devel/py-watchdog/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= watchdog | PORTNAME= watchdog | ||||
PORTVERSION= 0.9.0 | PORTVERSION= 0.10.2 | ||||
DISTVERSIONPREFIX= v | CATEGORIES= devel python | ||||
PORTREVISION= 0 | MASTER_SITES= CHEESESHOP | ||||
koobs: Add python as a secondary (virtual) category | |||||
CATEGORIES= devel | |||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||||
MAINTAINER= nivit@FreeBSD.org | MAINTAINER= nivit@FreeBSD.org | ||||
COMMENT= Python API library to monitor file system events | COMMENT= Python API library to monitor file system events | ||||
LICENSE= APACHE20 | LICENSE= APACHE20 | ||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}argh>=0.26.1:devel/py-argh@${PY_FLAVOR} \ | RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}argh>=0.26.1:devel/py-argh@${PY_FLAVOR} \ | ||||
${PYTHON_PKGNAMEPREFIX}pathtools>=0.1.2:devel/py-pathtools@${PY_FLAVOR} \ | ${PYTHON_PKGNAMEPREFIX}pathtools>=0.1.2:devel/py-pathtools@${PY_FLAVOR} \ | ||||
${PYTHON_PKGNAMEPREFIX}yaml>=3.11:devel/py-yaml@${PY_FLAVOR} | ${PYTHON_PKGNAMEPREFIX}yaml>=3.11:devel/py-yaml@${PY_FLAVOR} | ||||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ | |||||
${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} | |||||
USES= python | USES= python | ||||
USE_GITHUB= yes | USE_PYTHON= autoplist concurrent distutils | ||||
Done Inline ActionsPorts SHOULD use MASTER_SITES=CHEESESHOP if a Python package is registered on PyPI, unless there is a compelling (temporary) case not to. koobs: Ports SHOULD use MASTER_SITES=CHEESESHOP if a Python package is registered on PyPI, unless… | |||||
Done Inline ActionsPackage provides files in shared (common) locations [1], and must be made concurrent safe (USE_PYTHON=concurrent) https://wiki.freebsd.org/Python/PortsPolicy#concurrent [1] entry_points={'console_scripts': koobs: Package provides files in shared (common) locations [1], and must be made concurrent safe… | |||||
USE_PYTHON= autoplist distutils | |||||
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pathtools>=0.1.2:devel/py-pathtools@${PY_FLAVOR} \ | DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pathtools>=0.1.2:devel/py-pathtools@${PY_FLAVOR} \ | ||||
${PYTHON_PKGNAMEPREFIX}sphinx>=1.4.4:textproc/py-sphinx@${PY_FLAVOR} | ${PYTHON_PKGNAMEPREFIX}sphinx>=1.4.4:textproc/py-sphinx@${PY_FLAVOR} | ||||
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} | |||||
Done Inline ActionsShouldn't need this with/after USE_PYTHON=concurrent koobs: Shouldn't need this with/after USE_PYTHON=concurrent | |||||
GH_ACCOUNT= gorakhargosh | |||||
NO_ARCH= yes | NO_ARCH= yes | ||||
OPTIONS_DEFINE= DOCS | OPTIONS_DEFINE= DOCS | ||||
PORTDOCS= * | PORTDOCS= * | ||||
Done Inline ActionsAdd TEST_DEPENDS (pytest) and test (do-test) target if/when a package provides them Directly invoke pytest (not tox) koobs: Add TEST_DEPENDS (pytest) and test (do-test) target if/when a package provides them
Directly… | |||||
post-build-DOCS-on: | post-build-DOCS-on: | ||||
(cd ${WRKSRC}/docs ; ${MAKE_CMD} SPHINXBUILD=sphinx-build-${PYTHON_VER} html) | (cd ${WRKSRC}/docs ; ${MAKE_CMD} SPHINXBUILD=sphinx-build-${PYTHON_VER} html) | ||||
post-install-DOCS-on: | post-install-DOCS-on: | ||||
@${MKDIR} ${STAGEDIR}${DOCSDIR} | @${MKDIR} ${STAGEDIR}${DOCSDIR} | ||||
(cd ${WRKSRC}/docs/build/html ; \ | (cd ${WRKSRC}/docs/build/html ; \ | ||||
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "-not -name .buildinfo") | ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "-not -name .buildinfo") | ||||
do-test: | |||||
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs tests | |||||
koobsUnsubmitted Done Inline ActionsDo -m pytest -v -rs -o addopts= here, it overrides current or future pytest.ini setup.cfg:[pytest] settings which can cause test invocation to fail koobs: Do `-m pytest -v -rs -o addopts=` here, it overrides current or future pytest.ini setup.cfg… | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
Add python as a secondary (virtual) category