From nobody Fri Dec 08 09:50:31 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SmmbW3mcXz53hwV; Fri, 8 Dec 2023 09:50:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SmmbW2Y20z3c5V; Fri, 8 Dec 2023 09:50:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702029031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2k9nvXZr75I6WByZb6iH4maCbO/QrkW9fI7KoSLn8qg=; b=GxtCtBr4dCrgPFGgweVBuv2I53im03JqH2mDcDhwwuMAqX0+KGB2n/GnkmS4KaYs/CeV0h HvazEtgpZ9pgVeVrbp6SCXtR4K4guiLbp9Kq/JMIorOFPH8ARsWEX6X3y2+Gu8VceZiOII supOSgn9UzVt5NP9VH2uxyGKU2ngELV5GfvSPX3ciP7s28rc46sX8OVKydDzxah2Oll0hE 2HIFirGJ4kWepnGhEd7Jy9F/RD2n02npmS28BQs9CXi6hoWIZ50Zr8IvQsOZCftUzo4kkH v54UOGbk6c9368RpxHfiPH+sUBN7kIc9t5yJJ/jLOCHjj5nj0BO3RcJJPrZHSQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702029031; a=rsa-sha256; cv=none; b=TmeIgJlmnn3mI1sQFgwvv+mda+ZsLKX4n9QFpxjUNRmggLW8woImU16j18xcwa0cUVkSo7 ns4jIoRzGQpBA2B7Aj4fQi1/jimolA0ZPOV8NxObRayCVH95JSDORiZLQAo+COXeTxfA7B lWMTOjRJ3EsyT1t3RzEpcPiM/cck4SdBtd4AzpXOZbvJt81VCS+3a2mUf10CkbiA4TMPSm /2T1TLHpJhgKKUkY+dwyXzVVONSibYyDQ3wfJw2pbOukq7gl0uP9zPdRp8uYIO4d3dm40E AWvqGm2K7LFR3kaZ6cCXzY05fjynjA3DOep3jWuBE/F5zLTS8E5fwijJUQ1dEQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702029031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2k9nvXZr75I6WByZb6iH4maCbO/QrkW9fI7KoSLn8qg=; b=wSKLRas9RzSvHgICXr6p5gpfmKTWwCboTMUEBratQhQlPuVDzM0Ag/kvZJFvrJMxaztyx1 IAHJfZ3pJdbAmB1mtyUMf9dv7pDj6i6xEFoYVypp6YyvZKEEQ/3Ed1skgP1sL/FQNATWI4 Ndjr58LSdwVnSJ2QBPUf3gTHlXY7MUCH1OZL99LATzqWLsf5+ug46pYFgcUdfIW3ANuF7a YqGZ/11rrxPIp2RnfiWzp/sfdeUfTgoI5L885EV3ay7ImSDTc2cYaUYX5SwAz1vo3L/PzT PRfVh4++Q4+vktYT9fWJMftxPed+xoVXLGeoYFqlo0XpYxv8UGZvLAz+8/LVMg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SmmbW1M2Dz1TL; Fri, 8 Dec 2023 09:50:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3B89oVdB089956; Fri, 8 Dec 2023 09:50:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3B89oViQ089953; Fri, 8 Dec 2023 09:50:31 GMT (envelope-from git) Date: Fri, 8 Dec 2023 09:50:31 GMT Message-Id: <202312080950.3B89oViQ089953@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kai Knoblich Subject: git: 201f20199f7c - main - www/py-django-redis: Fix test suite List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kai X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 201f20199f7c8c76483526cd09b50176f6dc02f2 Auto-Submitted: auto-generated The branch main has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=201f20199f7c8c76483526cd09b50176f6dc02f2 commit 201f20199f7c8c76483526cd09b50176f6dc02f2 Author: Kai Knoblich AuthorDate: 2023-12-08 09:47:14 +0000 Commit: Kai Knoblich CommitDate: 2023-12-08 09:49:59 +0000 www/py-django-redis: Fix test suite * When running the test suite it cannot find the "runtests.py" script as it has changed over time in newer versions. Thus, make the test suite usable again and switch to USE_PYTHON=pytest. PR: 274790 Approved by: maintainer timeout (1+ month) --- www/py-django-redis/Makefile | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/www/py-django-redis/Makefile b/www/py-django-redis/Makefile index 63080c8a8c83..81957ca9dc89 100644 --- a/www/py-django-redis/Makefile +++ b/www/py-django-redis/Makefile @@ -13,18 +13,25 @@ LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django32>=3.2:www/py-django32@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}redis>=3.0.0:databases/py-redis@${PY_FLAVOR} -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hiredis>=0:databases/py-hiredis@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}msgpack>=0:devel/py-msgpack@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}msgpack>=0:devel/py-msgpack@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-django>0:devel/py-pytest-django@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${PY_FLAVOR} \ + redis-server:databases/redis USES= python -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent distutils pytest + +# Required for Python +3.11 as the 'cgi' module is deprecated and slated for +# removal in Python 3.13 +TEST_ARGS= -W ignore::DeprecationWarning + +TEST_ENV= DJANGO_SETTINGS_MODULE=settings.sqlite \ + PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}*${PORTNAME} NO_ARCH= yes -do-test: - @cd ${WRKSRC}/tests && ${PYTHON_CMD} runtests.py +TEST_WRKSRC= ${WRKSRC}/tests .include