git: ac056c74dc63 - main - devel/py-pytest-azurepipelines: Convert to USE_PYTHON=pep517

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 13 May 2024 14:17:47 UTC
The branch main has been updated by sunpoet:

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

commit ac056c74dc632245630e53c7673e9cd7171e0f8e
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-13 13:59:41 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-13 13:59:41 +0000

    devel/py-pytest-azurepipelines: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 devel/py-pytest-azurepipelines/Makefile             |  5 ++++-
 devel/py-pytest-azurepipelines/files/patch-setup.py | 11 +++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/devel/py-pytest-azurepipelines/Makefile b/devel/py-pytest-azurepipelines/Makefile
index bd79de173881..d8b9453424e5 100644
--- a/devel/py-pytest-azurepipelines/Makefile
+++ b/devel/py-pytest-azurepipelines/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pytest-azurepipelines
 PORTVERSION=	1.0.5
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,12 +12,14 @@ WWW=		https://github.com/Azure/pytest-azurepipelines
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}importlib-resources>=0:devel/py-importlib-resources@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest>=5.0.0,1:devel/py-pytest@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-nunit>=1.0.0<2.0.0:devel/py-pytest-nunit@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
diff --git a/devel/py-pytest-azurepipelines/files/patch-setup.py b/devel/py-pytest-azurepipelines/files/patch-setup.py
new file mode 100644
index 000000000000..2dca92a0a9d1
--- /dev/null
+++ b/devel/py-pytest-azurepipelines/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2023-10-06 08:01:07 UTC
++++ setup.py
+@@ -34,7 +34,7 @@ setup(
+     long_description=read('README.rst'),
+     py_modules=['pytest_azurepipelines'],
+     python_requires='>=3.5',
+-    data_files=[('resources', ['resources/style.css'])],
++    package_data={'resources': ['resources/style.css']},
+     install_requires=['importlib-resources', 'pytest>=5.0.0', 'pytest-nunit>=1.0.0,<2.0.0'],
+     classifiers=[
+         'Development Status :: 5 - Production/Stable',