git: 1cc8f6fd8ff0 - main - www/py-webtest: Convert to USE_PYTHON=pep517

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 13 May 2024 14:25:37 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1cc8f6fd8ff003ec2ec39712677814ce487a62a4

commit 1cc8f6fd8ff003ec2ec39712677814ce487a62a4
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-13 14:14:18 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-13 14:14:18 +0000

    www/py-webtest: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 www/py-webtest/Makefile             |  5 ++++-
 www/py-webtest/files/patch-setup.py | 11 +++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/www/py-webtest/Makefile b/www/py-webtest/Makefile
index c5d398a80484..351b97469708 100644
--- a/www/py-webtest/Makefile
+++ b/www/py-webtest/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	webtest
 PORTVERSION=	3.0.0
+PORTREVISION=	1
 CATEGORIES=	www python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,12 +14,14 @@ WWW=		https://docs.pylonsproject.org/projects/webtest/en/latest/ \
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/license.rst
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}beautifulsoup>=0:www/py-beautifulsoup@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}waitress>=0.8.5:www/py-waitress@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}webob>=1.2:www/py-webob@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
diff --git a/www/py-webtest/files/patch-setup.py b/www/py-webtest/files/patch-setup.py
new file mode 100644
index 000000000000..582bfc48b8a7
--- /dev/null
+++ b/www/py-webtest/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2021-08-19 12:39:58 UTC
++++ setup.py
+@@ -26,7 +26,7 @@ docs_extras = [
+     'Sphinx >= 1.8.1',
+ ]
+ 
+-setup(name='WebTest',
++setup(name='webtest',
+       version=version,
+       description="Helper to test WSGI applications",
+       long_description=open('README.rst').read(),