freebsd-ports/devel/py-diskcache/Makefile
Kai Knoblich 0d92723c06 devel/py-diskcache: Switch to Django 4.2
* Django 4.1 reaches its End-of-Life at 2023-12-31 thus switch to
  Django 4.2 which has long-term support.

* Update test suite as well and switch to USE_PYTHON=pytest.

  Although devel/py-tox is specified in "setup.py" for the test suite,
  the use of pytest (or unittest) in terms of FreeBSD ports on
  downstream side makes more sense and give better results.

  This is because the tests are carried out within the native system
  environment and are therefore also tested against the Python version
  and packages/ports that are actually installed.

* Bump PORTREVISION due changed dependencies.

PR:		275212
Approved by:	maintainer timeout (2+ weeks)
2023-12-08 10:49:58 +01:00

29 lines
634 B
Makefile

PORTNAME= diskcache
DISTVERSIONPREFIX= v
DISTVERSION= 5.6.1
PORTREVISION= 1
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Disk and file backed persistent cache
WWW= https://grantjenks.com/docs/diskcache/
LICENSE= APACHE20
PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>0:www/py-django42@${PY_FLAVOR}
BUILD_DEPENDS= ${PY_DEPENDS}
RUN_DEPENDS= ${PY_DEPENDS}
USES= python
USE_PYTHON= distutils autoplist pytest
USE_GITHUB= yes
GH_ACCOUNT= grantjenks
GH_PROJECT= python-diskcache
TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
NO_ARCH= yes
.include <bsd.port.mk>