mirror of
https://git.freebsd.org/ports.git
synced 2025-05-24 15:07:01 -04:00
* Switch to the PEP517 build framework and remove py-pytest-runner as a build time dependency while I'm here, because upstream of it has archived the project with the following notice: pytest-runner depends on deprecated features of setuptools and relies on features that break security mechanisms in pip. For example 'setup_requires' and 'tests_require' bypass pip --require-hashes. See also https://github.com/pypa/setuptools/issues/1684 * Bump PORTREVISION due package change.
39 lines
1.3 KiB
Makefile
39 lines
1.3 KiB
Makefile
PORTNAME= django-prometheus
|
|
PORTVERSION= 2.3.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= www python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= kai@FreeBSD.org
|
|
COMMENT= Export Django monitoring metrics for Prometheus.io
|
|
WWW= https://github.com/korfuri/django-prometheus
|
|
|
|
LICENSE= APACHE20
|
|
|
|
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
|
|
${PYTHON_PKGNAMEPREFIX}wheel>=0.40.0:devel/py-wheel@${PY_FLAVOR}
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>=3.2:www/py-django42@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}prometheus-client>=0.7:net-mgmt/py-prometheus-client@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist pep517 pytest
|
|
|
|
TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}*${PORTNAME}
|
|
|
|
NO_ARCH= yes
|
|
|
|
OPTIONS_GROUP= DATABASE CACHE
|
|
OPTIONS_GROUP_DATABASE= MYSQL PGSQL
|
|
OPTIONS_GROUP_CACHE= MEMCACHED REDIS
|
|
|
|
MEMCACHED_DESC= Memcached distributed memory caching support
|
|
|
|
MEMCACHED_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-memcached>=0:databases/py-python-memcached@${PY_FLAVOR}
|
|
MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mysqlclient>=0:databases/py-mysqlclient@${PY_FLAVOR}
|
|
PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>=0:databases/py-psycopg2@${PY_FLAVOR}
|
|
REDIS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django-redis>=4.8:www/py-django-redis@${PY_FLAVOR}
|
|
|
|
.include <bsd.port.mk>
|