git: 583d99913390 - main - sysutils/py-distro: Convert to USE_PYTHON=pep517

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

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

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

    sysutils/py-distro: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for dependency and package change
---
 sysutils/py-distro/Makefile       | 9 +++++----
 sysutils/py-distro/files/setup.py | 3 ---
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/sysutils/py-distro/Makefile b/sysutils/py-distro/Makefile
index 988673885c31..1b67bcb8a2da 100644
--- a/sysutils/py-distro/Makefile
+++ b/sysutils/py-distro/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	distro
 PORTVERSION=	1.8.0
+PORTREVISION=	1
 CATEGORIES=	sysutils python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,14 +12,14 @@ WWW=		https://github.com/python-distro/distro
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
 USES=		python:3.6+ shebangfix
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
 SHEBANG_FILES=	query_local_distro.py
 
-post-patch:
-	@${CP} ${FILESDIR}/setup.py ${WRKSRC}/
-
 .include <bsd.port.mk>
diff --git a/sysutils/py-distro/files/setup.py b/sysutils/py-distro/files/setup.py
deleted file mode 100644
index 606849326a40..000000000000
--- a/sysutils/py-distro/files/setup.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from setuptools import setup
-
-setup()