git: 0d92723c0690 - main - devel/py-diskcache: Switch to Django 4.2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Dec 2023 09:50:28 UTC
The branch main has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=0d92723c069066b4c4a5d23ab74b61d2dc8f9f7e commit 0d92723c069066b4c4a5d23ab74b61d2dc8f9f7e Author: Kai Knoblich <kai@FreeBSD.org> AuthorDate: 2023-12-08 09:42:47 +0000 Commit: Kai Knoblich <kai@FreeBSD.org> CommitDate: 2023-12-08 09:49:58 +0000 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) --- devel/py-diskcache/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/devel/py-diskcache/Makefile b/devel/py-diskcache/Makefile index 130c09e0bdb1..1664a74d72a6 100644 --- a/devel/py-diskcache/Makefile +++ b/devel/py-diskcache/Makefile @@ -1,6 +1,7 @@ PORTNAME= diskcache DISTVERSIONPREFIX= v DISTVERSION= 5.6.1 +PORTREVISION= 1 CATEGORIES= devel python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -10,18 +11,19 @@ WWW= https://grantjenks.com/docs/diskcache/ LICENSE= APACHE20 -PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django41>0:www/py-django41@${PY_FLAVOR} +PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>0:www/py-django42@${PY_FLAVOR} BUILD_DEPENDS= ${PY_DEPENDS} RUN_DEPENDS= ${PY_DEPENDS} -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR} USES= python -USE_PYTHON= distutils autoplist unittest # 1 test fails, see https://github.com/grantjenks/python-diskcache/issues/262 +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>