git: dac5e30be39c - main - devel/py-jeepney: Convert to USE_PYTHON=pep517

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

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

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

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

diff --git a/devel/py-jeepney/Makefile b/devel/py-jeepney/Makefile
index 3d2cbd256433..b9ccf7a5a851 100644
--- a/devel/py-jeepney/Makefile
+++ b/devel/py-jeepney/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	jeepney
 PORTVERSION=	0.8.0
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,12 +12,11 @@ WWW=		https://gitlab.com/takluyver/jeepney
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>=2<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-jeepney/files/setup.py b/devel/py-jeepney/files/setup.py
deleted file mode 100644
index 28b4a1ec913e..000000000000
--- a/devel/py-jeepney/files/setup.py
+++ /dev/null
@@ -1,32 +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 = \
-['jeepney', 'jeepney.io', 'jeepney.io.tests', 'jeepney.tests']
-
-package_data = \
-{'': ['*']}
-
-extras_require = \
-{'test': ['pytest',
-          'pytest-trio',
-          'pytest-asyncio >=0.17',
-          'testpath',
-          'trio',
-          'async-timeout'],
- 'trio': ['trio'],
- "trio:python_version == '3.6'": ['async_generator']}
-
-setup(name='jeepney',
-      version='%%PORTVERSION%%',
-      description='Low-level, pure Python DBus protocol wrapper.',
-      author='Thomas Kluyver',
-      author_email='thomas@kluyver.me.uk',
-      url='https://gitlab.com/takluyver/jeepney',
-      packages=packages,
-      package_data=package_data,
-      extras_require=extras_require,
-      python_requires='>=3.7',
-     )