git: e5b2567786c8 - main - devel/py-validate-pyproject: Convert to USE_PYTHON=pep517

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

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

commit e5b2567786c89fbd0ffe512186fd883bc55104c2
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-03-21 18:45:47 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-03-21 19:21:08 +0000

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

diff --git a/devel/py-validate-pyproject/Makefile b/devel/py-validate-pyproject/Makefile
index 5854bad15197..3f4d58a832da 100644
--- a/devel/py-validate-pyproject/Makefile
+++ b/devel/py-validate-pyproject/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	validate-pyproject
 PORTVERSION=	0.10.1
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,10 +12,12 @@ WWW=		https://github.com/abravalheri/validate-pyproject
 LICENSE=	MPL20
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>=5:devel/py-setuptools_scm@${PY_FLAVOR}
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=46.1.0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools_scm>=5:devel/py-setuptools_scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 
 USES=		python:3.7+
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
@@ -35,7 +38,4 @@ RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-me
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tomli>=1.2.1:textproc/py-tomli@${PY_FLAVOR}
 .endif
 
-post-patch:
-	@${CP} ${FILESDIR}/setup.py ${WRKSRC}/
-
 .include <bsd.port.post.mk>
diff --git a/devel/py-validate-pyproject/files/setup.py b/devel/py-validate-pyproject/files/setup.py
deleted file mode 100644
index 606849326a40..000000000000
--- a/devel/py-validate-pyproject/files/setup.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from setuptools import setup
-
-setup()