git: c5241d335970 - main - devel/py-pyparsing: Convert to USE_PYTHON=pep517

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

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

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

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

diff --git a/devel/py-pyparsing/Makefile b/devel/py-pyparsing/Makefile
index 177312b22be6..727e7f28d419 100644
--- a/devel/py-pyparsing/Makefile
+++ b/devel/py-pyparsing/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pyparsing
 PORTVERSION=	3.0.9
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,8 +12,10 @@ WWW=		https://github.com/pyparsing/pyparsing
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>=3.2<4:devel/py-flit-core@${PY_FLAVOR}
+
 USES=		python:3.6+
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
@@ -22,7 +25,4 @@ DIAGRAMS_DESC=	Diagram support
 DIAGRAMS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}railroad-diagrams>=0:graphics/py-railroad-diagrams@${PY_FLAVOR}
 
-post-patch:
-	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
-
 .include <bsd.port.mk>
diff --git a/devel/py-pyparsing/files/setup.py b/devel/py-pyparsing/files/setup.py
deleted file mode 100644
index 077702756d1c..000000000000
--- a/devel/py-pyparsing/files/setup.py
+++ /dev/null
@@ -1,25 +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 = \
-['pyparsing', 'pyparsing.diagram']
-
-package_data = \
-{'': ['*']}
-
-extras_require = \
-{'diagrams': ['railroad-diagrams', 'jinja2']}
-
-setup(name='pyparsing',
-      version='%%PORTVERSION%%',
-      description='pyparsing module - Classes and methods to define and execute parsing grammars',
-      author=None,
-      author_email='Paul McGuire <ptmcg.gm+pyparsing@gmail.com>',
-      url=None,
-      packages=packages,
-      package_data=package_data,
-      extras_require=extras_require,
-      python_requires='>=3.6.8',
-     )