git: 0a13504f8c87 - main - textproc/py-tomli-w: Convert to USE_PYTHON=pep517

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

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

commit 0a13504f8c87780b2017434d6c51d7d210f5f740
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-03-21 18:48:59 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-03-21 19:21:24 +0000

    textproc/py-tomli-w: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for dependency and package change
---
 textproc/py-tomli-w/Makefile       |  8 ++++----
 textproc/py-tomli-w/files/setup.py | 21 ---------------------
 2 files changed, 4 insertions(+), 25 deletions(-)

diff --git a/textproc/py-tomli-w/Makefile b/textproc/py-tomli-w/Makefile
index c289387f7a48..47b7a3614825 100644
--- a/textproc/py-tomli-w/Makefile
+++ b/textproc/py-tomli-w/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	tomli-w
 PORTVERSION=	1.0.0
+PORTREVISION=	1
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,12 +13,11 @@ WWW=		https://github.com/hukkin/tomli-w
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>=3.2.0<4:devel/py-flit-core@${PY_FLAVOR}
+
 USES=		python:3.7+
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
-post-patch:
-	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
-
 .include <bsd.port.mk>
diff --git a/textproc/py-tomli-w/files/setup.py b/textproc/py-tomli-w/files/setup.py
deleted file mode 100644
index 597281994ff5..000000000000
--- a/textproc/py-tomli-w/files/setup.py
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/env python
-# setup.py generated by flit for tools that don't yet use PEP 517
-
-from distutils.core import setup
-
-packages = \
-['tomli_w']
-
-package_data = \
-{'': ['*']}
-
-setup(name='tomli_w',
-      version='%%PORTVERSION%%',
-      description="A lil' TOML writer",
-      author=None,
-      author_email='Taneli Hukkinen <hukkin@users.noreply.github.com>',
-      url=None,
-      packages=packages,
-      package_data=package_data,
-      python_requires='>=3.7',
-     )