git: dd0c0292f585 - main - devel/py-pep440: Convert to USE_PYTHON=pep517

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

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

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

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

diff --git a/devel/py-pep440/Makefile b/devel/py-pep440/Makefile
index f271d81cbf6d..85cd180cc2a8 100644
--- a/devel/py-pep440/Makefile
+++ b/devel/py-pep440/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pep440
 PORTVERSION=	0.1.2
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,12 +12,11 @@ WWW=		https://github.com/Carreau/pep440
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>=3.4<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/devel/py-pep440/files/setup.py b/devel/py-pep440/files/setup.py
deleted file mode 100644
index 0747f93219ba..000000000000
--- a/devel/py-pep440/files/setup.py
+++ /dev/null
@@ -1,30 +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 = \
-['pep440']
-
-package_data = \
-{'': ['*']}
-
-extras_require = \
-{'lint': ['check-manifest', 'mypy'],
- 'test': ['pytest-console-scripts', 'pytest-cov', 'pytest']}
-
-entry_points = \
-{'console_scripts': ['pep440 = pep440.__main__:main']}
-
-setup(name='pep440',
-      version='%%PORTVERSION%%',
-      description='A simple package with utils to check whether versions number match PEP 440.',
-      author=None,
-      author_email='Matthias Bussonnier <bussonniermatthias@gmail.com>',
-      url=None,
-      packages=packages,
-      package_data=package_data,
-      extras_require=extras_require,
-      entry_points=entry_points,
-      python_requires='>=3.7',
-     )