summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-05-13 22:14:18 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-05-13 22:14:18 +0800
commit1cc8f6fd8ff003ec2ec39712677814ce487a62a4 (patch)
tree3e5526e2395c5477c49d88872e462f8a7065c0dc
parentwww/py-wagtail-factories: Convert to USE_PYTHON=pep517 (diff)
www/py-webtest: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for package change
-rw-r--r--www/py-webtest/Makefile5
-rw-r--r--www/py-webtest/files/patch-setup.py11
2 files changed, 15 insertions, 1 deletions
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(),