summaryrefslogtreecommitdiff
path: root/devel/py-pytest-asyncio
diff options
context:
space:
mode:
Diffstat (limited to 'devel/py-pytest-asyncio')
-rw-r--r--devel/py-pytest-asyncio/Makefile24
-rw-r--r--devel/py-pytest-asyncio/distinfo6
-rw-r--r--devel/py-pytest-asyncio/files/patch-pyproject.toml22
3 files changed, 37 insertions, 15 deletions
diff --git a/devel/py-pytest-asyncio/Makefile b/devel/py-pytest-asyncio/Makefile
index faf3613bbd3f..9f02c32b083c 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,23 +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
-CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}pytest4-asyncio
-
-# 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>0: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" },
+ ]