git: ed3808ba91c4 - main - devel/py-pytest-asyncio: update 0.23.8 → 1.1.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 05 Sep 2025 09:07:43 UTC
The branch main has been updated by yuri:

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

commit ed3808ba91c46e4122d7d6cb569719e24d266bd0
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-09-05 08:13:27 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-09-05 09:07:37 +0000

    devel/py-pytest-asyncio: update 0.23.8 → 1.1.0
---
 devel/py-pytest-asyncio/Makefile                   | 22 ++++++++++++----------
 devel/py-pytest-asyncio/distinfo                   |  6 +++---
 devel/py-pytest-asyncio/files/patch-pyproject.toml | 22 ++++++++++++++++++++++
 3 files changed, 37 insertions(+), 13 deletions(-)

diff --git a/devel/py-pytest-asyncio/Makefile b/devel/py-pytest-asyncio/Makefile
index 14fd94ae7c33..c037ef1be84b 100644
--- a/devel/py-pytest-asyncio/Makefile
+++ b/devel/py-pytest-asyncio/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	pytest-asyncio
-DISTVERSION=	0.23.8
-PORTREVISION=	1
+DISTVERSION=	1.1.0
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -8,21 +7,24 @@ DISTNAME=	pytest_asyncio-${DISTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Py.test plugin providing fixtures and markers for asyncio
-WWW=		https://pypi.org/project/pytest-asyncio/
+WWW=		https://pytest-asyncio.readthedocs.io/en/stable/ \
+		https://github.com/pytest-dev/pytest-asyncio
 
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-# note that the next version requires pytest 8.2.0, while ports still only have 8.1.1 ATOW
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=6.1.0:devel/py-pytest@${PY_FLAVOR}
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=6.1.0:devel/py-pytest@${PY_FLAVOR}
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hypothesis>=5.7.1:devel/py-hypothesis@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=8.2:devel/py-setuptools-scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=8.0:devel/py-pytest@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}coverage>=6.2:devel/py-coverage@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}hypothesis>=5.7.1:devel/py-hypothesis@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	autoplist distutils pytest
+USE_PYTHON=	pep517 autoplist pytest
+
 NO_ARCH=	yes
 
-post-patch:
-	@${ECHO_CMD} 'from setuptools import setup; setup()' > ${WRKSRC}/setup.py
+# tests as of 1.1.0: 23 failed, 145 passed in 214.54s (0:03:34), see https://github.com/pytest-dev/pytest-asyncio/issues/1227
 
 .include <bsd.port.mk>
diff --git a/devel/py-pytest-asyncio/distinfo b/devel/py-pytest-asyncio/distinfo
index 3954ac929c5e..9989f8ef730a 100644
--- a/devel/py-pytest-asyncio/distinfo
+++ b/devel/py-pytest-asyncio/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1721655462
-SHA256 (pytest_asyncio-0.23.8.tar.gz) = 759b10b33a6dc61cce40a8bd5205e302978bbbcc00e279a8b61d9a6a3c82e4d3
-SIZE (pytest_asyncio-0.23.8.tar.gz) = 46920
+TIMESTAMP = 1757057362
+SHA256 (pytest_asyncio-1.1.0.tar.gz) = 796aa822981e01b68c12e4827b8697108f7205020f24b5793b3c41555dab68ea
+SIZE (pytest_asyncio-1.1.0.tar.gz) = 46652
diff --git a/devel/py-pytest-asyncio/files/patch-pyproject.toml b/devel/py-pytest-asyncio/files/patch-pyproject.toml
new file mode 100644
index 000000000000..d0998d710688
--- /dev/null
+++ b/devel/py-pytest-asyncio/files/patch-pyproject.toml
@@ -0,0 +1,22 @@
+--- pyproject.toml.orig	2025-07-16 04:22:08 UTC
++++ pyproject.toml
+@@ -1,7 +1,7 @@ requires = [
+ [build-system]
+ build-backend = "setuptools.build_meta"
+ requires = [
+-  "setuptools>=77",
++  "setuptools",
+   "setuptools-scm[toml]>=6.2",
+ ]
+ 
+@@ -10,10 +10,6 @@ readme.file = "README.rst"
+ description = "Pytest support for asyncio"
+ readme.content-type = "text/x-rst"
+ readme.file = "README.rst"
+-license = "Apache-2.0"
+-license-files = [
+-  "LICENSE",
+-]
+ maintainers = [
+   { name = "Michael Seifert", email = "m.seifert@digitalernachschub.de" },
+ ]