From nobody Sun Oct 06 14:27:23 2024 X-Original-To: dev-commits-ports-main@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 4XM4P72c4lz5Y8VM; Sun, 06 Oct 2024 14:27:23 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XM4P71z16z45W8; Sun, 6 Oct 2024 14:27:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728224843; 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=enM1Ke6TfIUd8WghPKWS+NzEcE6m/VleXJxWkbDiOpk=; b=lISAVWVrd3bByPCAA6vQ5zaUUMcBSWxDwEWTp4lwfPCjiuLrJZSbFb2w6c+OEUQGAedOMv ke7xxUsm6N6IFeh5T+nqHYNGb6EnuXNqcV5/EcfX50HAKI6HBR2S/EcQ2DhZjpo8PFvhRO hPC1ce78pT9Mx2RVA5xJkupOLgYRjbiBeI5O1i9qJhBSMfCxRHJyGPD4CzR63CERuhYOMr 8YEhnTzL4Ueipi8w8LvxHgTo5d5wKHguCznx6azvQ1qTUUCHWm0tuvDVHzlWkr5huCjmEg D14s6or4UD8CJ/JONYViymogZWag7JycXgIZFb5utnHfsmzTwXXG/oJWRaY3qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728224843; 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=enM1Ke6TfIUd8WghPKWS+NzEcE6m/VleXJxWkbDiOpk=; b=qaTNwjmvzyouPH59bBtk6o6elQTEi2nJR8M639NsUKVgK5SO5nyR+A8NNrTdQq1wcfh/fg 0071erHp/GIWYa3DVNSkknepHrutHVI2I9P999ePU34s20tofriWtyM6jrPhhODEC5Yx3/ 57MpUvVVm43OOO98es4CBmk3TpyWfyhD5FgmDM12zMyLRVTVbHCh3SoqeQ5RQg7XRdP22n pdwEcJjGx8edlGXJ1eksSwCPF7cEutL8z8OjFvqB9lB9wlhI58W8vwZnKidLPkhk2ffk7H gHpBKlYBWP84jpVXKoFRyaoAKfMrL19GVaQc60YllfYQqhVgQXB4DY30rcbBgw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728224843; a=rsa-sha256; cv=none; b=GzpfGmEtytbeWk71ut4C0iDae7IHYzoIFhPs+qjF/UNWkJ6nC0ppz7KQfRzQ1CnqQOFKOu li7b1K+wRlM5rUGL1MBCgfL1qwH49LauM02orkg74saUkXSQmnc9wW0WFnwHE+Xwo64FHE wzTzGY4DPkc5TLl8c+/xfo/uRjgO1D1X04i4wipKoUhyyuyMF/flNelM6Tn/lSZ3sO69SV 039efmdRB44e9cB/01sHGV0bHzFNQWC7sW4xRMUCq7ttKosyS/4EX2uxXU1OkqyfLrA9DL +q48yOJf5vO9ZFt/ktM61C5LTp1WUCB9hkAWlvrMQx4yPrddlwrSYQ6n8809Gw== 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 4XM4P71Zncz152M; Sun, 6 Oct 2024 14:27:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 496ERN1o080579; Sun, 6 Oct 2024 14:27:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 496ERNVr080576; Sun, 6 Oct 2024 14:27:23 GMT (envelope-from git) Date: Sun, 6 Oct 2024 14:27:23 GMT Message-Id: <202410061427.496ERNVr080576@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: 275e2714acec - main - www/py-dj50-django-prometheus: Convert to PEP517 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@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: 275e2714acec8dd628886ee81d107a3d0547f67c Auto-Submitted: auto-generated The branch main has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=275e2714acec8dd628886ee81d107a3d0547f67c commit 275e2714acec8dd628886ee81d107a3d0547f67c Author: Kai Knoblich AuthorDate: 2024-10-06 14:26:20 +0000 Commit: Kai Knoblich CommitDate: 2024-10-06 14:27:02 +0000 www/py-dj50-django-prometheus: Convert to PEP517 * 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. --- www/py-dj50-django-prometheus/Makefile | 6 ++++-- www/py-dj50-django-prometheus/files/patch-pyproject.toml | 11 +++++++++++ www/py-dj50-django-prometheus/files/patch-setup.py | 13 +++++++++++++ 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/www/py-dj50-django-prometheus/Makefile b/www/py-dj50-django-prometheus/Makefile index e011be6d8d23..925840b24baa 100644 --- a/www/py-dj50-django-prometheus/Makefile +++ b/www/py-dj50-django-prometheus/Makefile @@ -1,5 +1,6 @@ PORTNAME= django-prometheus PORTVERSION= 2.3.1 +PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj50- @@ -10,12 +11,13 @@ WWW= https://github.com/korfuri/django-prometheus LICENSE= APACHE20 -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-runner>0:devel/py-pytest-runner@${PY_FLAVOR} +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0.40.0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django50>=3.2:www/py-django50@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}prometheus-client>=0.7:net-mgmt/py-prometheus-client@${PY_FLAVOR} USES= python:3.10+ -USE_PYTHON= autoplist distutils pytest +USE_PYTHON= autoplist pep517 pytest TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} diff --git a/www/py-dj50-django-prometheus/files/patch-pyproject.toml b/www/py-dj50-django-prometheus/files/patch-pyproject.toml new file mode 100644 index 000000000000..5bf778c4f9e3 --- /dev/null +++ b/www/py-dj50-django-prometheus/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +Relax version requirements of py-setuptools. + +--- pyproject.toml.orig 2024-10-06 12:58:05 UTC ++++ pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = [ "setuptools >= 67.7.2", "wheel >= 0.40.0"] ++requires = [ "setuptools", "wheel >= 0.40.0"] + build-backend = "setuptools.build_meta" + + [tool.pytest.ini_options] diff --git a/www/py-dj50-django-prometheus/files/patch-setup.py b/www/py-dj50-django-prometheus/files/patch-setup.py new file mode 100644 index 000000000000..6e28293ebe58 --- /dev/null +++ b/www/py-dj50-django-prometheus/files/patch-setup.py @@ -0,0 +1,13 @@ +Remove py-pytest-runner as build time dependency because it is deprecated and +should be no longer used. + +--- setup.py.orig 2024-10-01 12:41:04 UTC ++++ setup.py +@@ -40,7 +40,6 @@ setup( + long_description=LONG_DESCRIPTION, + long_description_content_type="text/markdown", + tests_require=["pytest", "pytest-django"], +- setup_requires=["pytest-runner"], + options={"bdist_wheel": {"universal": "1"}}, + install_requires=[ + "prometheus-client>=0.7",