git: 8bbf03d7f45a - main - devel/py-pdm-pep517: Convert to USE_PYTHON=pep517

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

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

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

    devel/py-pdm-pep517: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for dependency and package change
---
 devel/py-pdm-pep517/Makefile       |  6 ++---
 devel/py-pdm-pep517/files/setup.py | 49 --------------------------------------
 2 files changed, 2 insertions(+), 53 deletions(-)

diff --git a/devel/py-pdm-pep517/Makefile b/devel/py-pdm-pep517/Makefile
index 629a4abf1c17..1558f70d0497 100644
--- a/devel/py-pdm-pep517/Makefile
+++ b/devel/py-pdm-pep517/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pdm-pep517
 PORTVERSION=	1.1.0
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,11 +13,8 @@ LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 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/devel/py-pdm-pep517/files/setup.py b/devel/py-pdm-pep517/files/setup.py
deleted file mode 100644
index 3ac15d472fcb..000000000000
--- a/devel/py-pdm-pep517/files/setup.py
+++ /dev/null
@@ -1,49 +0,0 @@
-# -*- coding: utf-8 -*-
-from setuptools import setup
-
-import codecs
-
-with codecs.open('README.md', encoding="utf-8") as fp:
-    long_description = fp.read()
-
-setup_kwargs = {
-    'name': 'pdm-pep517',
-    'version': '%%PORTVERSION%%',
-    'description': 'A PEP 517 backend for PDM that supports PEP 621 metadata',
-    'long_description': long_description,
-    'license': 'MIT',
-    'author': '',
-    'author_email': 'Frost Ming <mianghong@gmail.com>',
-    'maintainer': None,
-    'maintainer_email': None,
-    'url': 'https://pdm.fming.dev',
-    'packages': [
-        'pdm.pep517',
-        'pdm.pep517._vendor',
-        'pdm.pep517._vendor.boolean',
-        'pdm.pep517._vendor.cerberus',
-        'pdm.pep517._vendor.license_expression',
-        'pdm.pep517._vendor.license_expression.data',
-        'pdm.pep517._vendor.packaging',
-        'pdm.pep517._vendor.pyparsing',
-        'pdm.pep517._vendor.pyparsing.diagram',
-        'pdm.pep517._vendor.tomli',
-        'pdm.pep517._vendor.tomli_w',
-    ],
-    'package_data': {'': ['*']},
-    'long_description_content_type': 'text/markdown',
-    'keywords': ['packaging', 'PEP 517', 'build'],
-    'classifiers': [
-        'Development Status :: 5 - Production/Stable',
-        'Programming Language :: Python :: 3',
-        'Programming Language :: Python :: 3.7',
-        'Programming Language :: Python :: 3.8',
-        'Programming Language :: Python :: 3.9',
-        'Programming Language :: Python :: 3.10',
-        'Programming Language :: Python :: 3.11',
-        'Topic :: Software Development :: Build Tools',
-    ],
-    'python_requires': '>=3.7',
-}
-
-setup(**setup_kwargs)