git: 4f15adc8fb84 - main - devel/py-pytest-checkdocs: Update to 2.9.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 19 Nov 2022 08:17:32 UTC
The branch main has been updated by sunpoet:

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

commit 4f15adc8fb841c7517d683fc00aac81c6154dcfb
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-11-19 08:12:08 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-11-19 08:12:08 +0000

    devel/py-pytest-checkdocs: Update to 2.9.0
    
    Changes:        https://github.com/jaraco/pytest-checkdocs/blob/main/CHANGES.rst
---
 devel/py-pytest-checkdocs/Makefile | 13 +++++++++----
 devel/py-pytest-checkdocs/distinfo |  6 +++---
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/devel/py-pytest-checkdocs/Makefile b/devel/py-pytest-checkdocs/Makefile
index 6e1ded9298de..7b4da46362ee 100644
--- a/devel/py-pytest-checkdocs/Makefile
+++ b/devel/py-pytest-checkdocs/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	pytest-checkdocs
-PORTVERSION=	2.8.1
+PORTVERSION=	2.9.0
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,8 +13,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>=3.4.1:devel/py-setuptools_scm@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}build>=0:devel/py-build@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}docutils>=0.15,1:textproc/py-docutils@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}importlib-metadata>=4:devel/py-importlib-metadata@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}docutils>=0.15,1:textproc/py-docutils@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest-black>=0.3.7:devel/py-pytest-black@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-enabler>=1.3.0:devel/py-pytest-enabler@${PY_FLAVOR} \
@@ -27,7 +26,13 @@ USE_PYTHON=	autoplist concurrent distutils pytest
 
 NO_ARCH=	yes
 
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31000
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=4:devel/py-importlib-metadata@${PY_FLAVOR}
+.endif
+
 post-patch:
 	@${CP} ${FILESDIR}/setup.py ${WRKSRC}/
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/py-pytest-checkdocs/distinfo b/devel/py-pytest-checkdocs/distinfo
index 542a5d9a8205..cc479baffb77 100644
--- a/devel/py-pytest-checkdocs/distinfo
+++ b/devel/py-pytest-checkdocs/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1664767946
-SHA256 (pytest-checkdocs-2.8.1.tar.gz) = 9fdf57c96213d3cdddd86b09b4a4fc31ce295821091cf1f37d92ecbcfbbe5276
-SIZE (pytest-checkdocs-2.8.1.tar.gz) = 7932
+TIMESTAMP = 1665647505
+SHA256 (pytest-checkdocs-2.9.0.tar.gz) = 54b3d1357a289e3f6336d31d4ceb72e99afe0fa4f552990f1b1f015f1925543b
+SIZE (pytest-checkdocs-2.9.0.tar.gz) = 8024