git: d9558b8cd8ac - main - devel/py-pep621: Convert to USE_PYTHON=pep517

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 21 Mar 2023 19:28:25 UTC
The branch main has been updated by sunpoet:

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

commit d9558b8cd8acba2ec0654536163120d275d7537e
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-03-21 18:44:58 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-03-21 19:20:55 +0000

    devel/py-pep621: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for dependency and package change
---
 devel/py-pep621/Makefile       | 9 ++++-----
 devel/py-pep621/files/setup.py | 3 ---
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/devel/py-pep621/Makefile b/devel/py-pep621/Makefile
index 5e8c85545292..c89f95605023 100644
--- a/devel/py-pep621/Makefile
+++ b/devel/py-pep621/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	pep621
 PORTVERSION=	0.4.0
 DISTVERSIONSUFFIX=	.post2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,14 +13,13 @@ WWW=		https://github.com/FFY00/python-pyproject-metadata
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=42.0.0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}packaging>=19.0:devel/py-packaging@${PY_FLAVOR}
 
 USES=		python:3.7+
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
-post-patch:
-	@${CP} ${FILESDIR}/setup.py ${WRKSRC}/
-
 .include <bsd.port.mk>
diff --git a/devel/py-pep621/files/setup.py b/devel/py-pep621/files/setup.py
deleted file mode 100644
index 606849326a40..000000000000
--- a/devel/py-pep621/files/setup.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from setuptools import setup
-
-setup()