diff options
Diffstat (limited to 'devel/py-pytest-asyncio')
-rw-r--r-- | devel/py-pytest-asyncio/Makefile | 27 | ||||
-rw-r--r-- | devel/py-pytest-asyncio/distinfo | 6 | ||||
-rw-r--r-- | devel/py-pytest-asyncio/files/patch-pyproject.toml | 22 | ||||
-rw-r--r-- | devel/py-pytest-asyncio/pkg-descr | 8 |
4 files changed, 44 insertions, 19 deletions
diff --git a/devel/py-pytest-asyncio/Makefile b/devel/py-pytest-asyncio/Makefile index 20dd41a35007..1157eaaea0af 100644 --- a/devel/py-pytest-asyncio/Makefile +++ b/devel/py-pytest-asyncio/Makefile @@ -1,29 +1,30 @@ PORTNAME= pytest-asyncio -DISTVERSION= 0.23.8 -PORTREVISION= 1 +DISTVERSION= 1.1.0 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= pytest_asyncio-${DISTVERSION} -MAINTAINER= amdmi3@FreeBSD.org -COMMENT= Py.test plugin providing fixtures and markers for asyncio -WWW= https://pypi.org/project/pytest-asyncio/ +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Pytest support for 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 - -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= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=6.2:devel/py-setuptools-scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=8.2,1<9,1: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= autoplist concurrent pep517 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" }, + ] diff --git a/devel/py-pytest-asyncio/pkg-descr b/devel/py-pytest-asyncio/pkg-descr index 6d11ecea8ff4..73eb827208d7 100644 --- a/devel/py-pytest-asyncio/pkg-descr +++ b/devel/py-pytest-asyncio/pkg-descr @@ -1,3 +1,5 @@ -asyncio code is usually written in the form of coroutines, which makes it -slightly more difficult to test using normal testing tools. pytest-asyncio -provides useful fixtures and markers to make testing easier. +pytest-asyncio is a pytest plugin. It facilitates testing of code that uses the +asyncio library. + +Specifically, pytest-asyncio provides support for coroutines as test functions. +This allows users to await code inside their tests. |