Skip to content

Commit

Permalink
devel/py-diskcache: Switch to Django 4.2
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
knobix committed Dec 8, 2023
1 parent a318efc commit 0d92723
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions devel/py-diskcache/Makefile
@@ -1,6 +1,7 @@
PORTNAME= diskcache
DISTVERSIONPREFIX= v
DISTVERSION= 5.6.1
PORTREVISION= 1
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

Expand All @@ -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>

0 comments on commit 0d92723

Please sign in to comment.