freebsd-ports/devel/py-apscheduler/Makefile
Jan Beich def01923a9 devel/py-apscheduler: add new port
Advanced Python Scheduler (APScheduler) is a Python library that lets
you schedule your Python code to be executed later, either just once
or periodically. You can add new jobs or remove old ones on the fly as
you please. If you store your jobs in a database, they will also
survive scheduler restarts and maintain their state. When the
scheduler is restarted, it will then run all the jobs it should have
run while it was offline.

https://pypi.python.org/pypi/APScheduler

Approved by:	wg (maintainer)
Differential Revision:	https://reviews.freebsd.org/D3566
2015-09-04 17:13:25 +00:00

42 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= apscheduler
PORTVERSION= 3.0.3
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= APScheduler-${DISTVERSION}
MAINTAINER= wg@FreeBSD.org
COMMENT= In-process task scheduler with Cron-like capabilities
LICENSE= MIT
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz \
${PYTHON_PKGNAMEPREFIX}six>=1.4.0:${PORTSDIR}/devel/py-six \
${PYTHON_PKGNAMEPREFIX}tzlocal>0:${PORTSDIR}/devel/py-tzlocal
NO_ARCH= yes
USES= python
USE_PYTHON= autoplist distutils
OPTIONS_DEFINE= TEST
TEST_BUILD_DEPENDS=${PYTHON_PKGNAMEPREFIX}pytest>=2.5.1:${PORTSDIR}/devel/py-pytest
TEST_MAKE_ENV= TZ=UTC
PYDISTUTILS_TEST_TARGET?= test
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MTEST} && ${PYTHON_REL} < 3300
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock
.endif
.if ${PYTHON_REL} < 3200
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}futures>0:${PORTSDIR}/devel/py-futures
.endif
pre-install-TEST-on:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} ${PYDISTUTILS_TEST_TARGET} ${PYDISTUTILS_TESTARGS})
.include <bsd.port.post.mk>