PORTNAME= django-rq PORTVERSION= 3.0.0 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj50- MAINTAINER= kai@FreeBSD.org COMMENT= Provides Django integration for RQ (Redis Queue) WWW= https://github.com/rq/django-rq LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django50>=3.2:www/py-django50@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}redis>=3.5:databases/py-redis@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}rq>=2:devel/py-rq@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dj50-django-redis>0:www/py-dj50-django-redis@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}rq-scheduler>=0:devel/py-rq-scheduler@${PY_FLAVOR} \ redis-server:databases/redis USES= python:3.10+ USE_PYTHON= autoplist concurrent distutils TEST_ENV= PYTHONPATH="." CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}*${PORTNAME} NO_ARCH= yes OPTIONS_DEFINE= SENTRY SENTRY_DESC= Sentry support SENTRY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sentry-sdk>=1.0.0:devel/py-sentry-sdk@${PY_FLAVOR} # https://github.com/rq/django-rq/blob/master/Makefile # The test suite is not fully working at the moment, which is because # devel/py-rq-scheduler is still using the 1.x release of devel/py-rq do-test: cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${LOCALBASE}/bin/django-admin test django_rq --settings=django_rq.tests.settings -v2 .include