www/py-django-debreach: Switch to PEP517

* Remove no longer required distutils workarounds as well.

* Switch to the more preferred DISTVERSION while I'm here.

* Bump PORTREVISION due package change.
This commit is contained in:
Kai Knoblich
2025-11-23 13:49:55 +01:00
parent 0b26d6289a
commit 681bf7f848
4 changed files with 6 additions and 36 deletions

View File

@@ -1,6 +1,6 @@
PORTNAME= django-debreach
PORTVERSION= 2.1.0
PORTREVISION= 1
DISTVERSION= 2.1.0
PORTREVISION= 2
CATEGORIES= www security python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,17 +12,16 @@ WWW= https://github.com/lpomfrey/django-debreach
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>0:www/py-django42@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist distutils
USE_PYTHON= autoplist pep517
NO_ARCH= yes
# Workaround to make the port still buildable with "distutils"
post-extract:
@${CP} ${FILESDIR}/setup.py ${WRKSRC}/
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} runtests.py

View File

@@ -1,11 +0,0 @@
Remove requirements for wheel and pip as they're not required for build
--- pyproject.toml.orig 2022-01-19 06:15:34 UTC
+++ pyproject.toml
@@ -1,5 +1,5 @@
[build-system]
-requires = ["setuptools", "wheel", "pip"]
+requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.black]

View File

@@ -1,13 +0,0 @@
Remove requirements for wheel and pip as they're not required for build
--- setup.cfg.orig 2022-01-19 06:16:57 UTC
+++ setup.cfg
@@ -32,7 +32,7 @@ classifiers =
zip_safe = False
include_package_data = True
packages = find:
-setup_requires = setuptools;wheel;pip
+setup_requires = setuptools
python_requires = >=3.7
tests_require = django

View File

@@ -1,5 +0,0 @@
# Enable build with distutils
from setuptools import setup
setup()