git: 5c490e1803a6 - main - sysutils/py-ansible-compat: update to 4.0.1

From: Matthew Seaman <matthew_at_FreeBSD.org>
Date: Tue, 02 May 2023 07:08:59 UTC
The branch main has been updated by matthew:

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

commit 5c490e1803a649286e97bd6374815c340de11ff9
Author:     Matthew Seaman <matthew@FreeBSD.org>
AuthorDate: 2023-05-02 07:07:14 +0000
Commit:     Matthew Seaman <matthew@FreeBSD.org>
CommitDate: 2023-05-02 07:08:54 +0000

    sysutils/py-ansible-compat: update to 4.0.1
    
    Changes:        https://github.com/ansible/ansible-compat/releases/tag/v4.0.1
---
 sysutils/py-ansible-compat/Makefile       | 18 +++++++++++-------
 sysutils/py-ansible-compat/distinfo       |  6 +++---
 sysutils/py-ansible-compat/files/setup.py |  3 ---
 3 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/sysutils/py-ansible-compat/Makefile b/sysutils/py-ansible-compat/Makefile
index a8664bc4a4fd..fe85b0c4fd99 100644
--- a/sysutils/py-ansible-compat/Makefile
+++ b/sysutils/py-ansible-compat/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	ansible-compat
-PORTVERSION=	3.0.2
+PORTVERSION=	4.0.1
 CATEGORIES=	sysutils python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,7 +12,8 @@ LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=61.0.0:devel/py-setuptools@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}setuptools_scm>=6.4.2:devel/py-setuptools_scm@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}setuptools_scm7>=7.0.0:devel/py-setuptools_scm7@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ansible-core>=2.12:sysutils/py-ansible-core@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
@@ -24,12 +25,15 @@ TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-plus>0:devel/py-pytest-plus@${PY_FLAVOR}
 
-USES=		python:3.8+
-USE_PYTHON=	autoplist distutils pytest
+USES=		python:3.9+
+USE_PYTHON=	autoplist pep517 pytest
 
 NO_ARCH=	yes
 
-post-patch:
-	@${CP} ${FILESDIR}/setup.py ${WRKSRC}/
+.include <bsd.port.pre.mk>
 
-.include <bsd.port.mk>
+.if ${PYTHON_REL} < 31000
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.5.0:devel/py-typing-extensions@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/py-ansible-compat/distinfo b/sysutils/py-ansible-compat/distinfo
index c19674918ff7..48ca1369e232 100644
--- a/sysutils/py-ansible-compat/distinfo
+++ b/sysutils/py-ansible-compat/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1681462841
-SHA256 (ansible-compat-3.0.2.tar.gz) = a10ea191f9efe08590ff64cb46a31af1f8142c08618db1a4bc827ed257c68230
-SIZE (ansible-compat-3.0.2.tar.gz) = 63328
+TIMESTAMP = 1683009211
+SHA256 (ansible-compat-4.0.1.tar.gz) = a4aad3cc04dfd0fa9cd9e464556c38c6f7833f1815c9e95985c4d1633099ba9b
+SIZE (ansible-compat-4.0.1.tar.gz) = 63728
diff --git a/sysutils/py-ansible-compat/files/setup.py b/sysutils/py-ansible-compat/files/setup.py
deleted file mode 100644
index 606849326a40..000000000000
--- a/sysutils/py-ansible-compat/files/setup.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from setuptools import setup
-
-setup()