diff options
Diffstat (limited to 'devel/py-pytest-asyncio/Makefile')
-rw-r--r-- | devel/py-pytest-asyncio/Makefile | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/devel/py-pytest-asyncio/Makefile b/devel/py-pytest-asyncio/Makefile index 14fd94ae7c33..8d928922b116 100644 --- a/devel/py-pytest-asyncio/Makefile +++ b/devel/py-pytest-asyncio/Makefile @@ -1,28 +1,34 @@ PORTNAME= pytest-asyncio -DISTVERSION= 0.23.8 -PORTREVISION= 1 +PORTVERSION= 1.2.0 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -DISTNAME= pytest_asyncio-${DISTVERSION} +DISTNAME= pytest_asyncio-${PORTVERSION} -MAINTAINER= ports@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 -# 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= ${PYTHON_PKGNAMEPREFIX}setuptools>=61: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:3.11+ +USE_PYTHON= autoplist concurrent pep517 pytest -USES= python -USE_PYTHON= autoplist distutils pytest NO_ARCH= yes -post-patch: - @${ECHO_CMD} 'from setuptools import setup; setup()' > ${WRKSRC}/setup.py +.include <bsd.port.pre.mk> + +.if ${PYTHON_REL} < 31300 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.12:devel/py-typing-extensions@${PY_FLAVOR} +.endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |