git: 2dde972e0c66 - main - devel/py-pytest-httpx: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 18 Feb 2024 12:03:53 UTC
The branch main has been updated by grembo: URL: https://cgit.FreeBSD.org/ports/commit/?id=2dde972e0c66c104b180430e3dcb6c076680e16b commit 2dde972e0c66c104b180430e3dcb6c076680e16b Author: Michael Gmelin <grembo@FreeBSD.org> AuthorDate: 2024-02-12 14:27:37 +0000 Commit: Michael Gmelin <grembo@FreeBSD.org> CommitDate: 2024-02-18 12:03:01 +0000 devel/py-pytest-httpx: New port Send responses to py-httpx using pytest --- devel/Makefile | 1 + devel/py-pytest-httpx/Makefile | 29 +++++++++++++++++++++++++++++ devel/py-pytest-httpx/distinfo | 3 +++ devel/py-pytest-httpx/pkg-descr | 4 ++++ 4 files changed, 37 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 4b4b8840fe45..00b47b2f905c 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5408,6 +5408,7 @@ SUBDIR += py-pytest-html SUBDIR += py-pytest-httpbin SUBDIR += py-pytest-httpserver + SUBDIR += py-pytest-httpx SUBDIR += py-pytest-isort SUBDIR += py-pytest-jupyter SUBDIR += py-pytest-lazy-fixture diff --git a/devel/py-pytest-httpx/Makefile b/devel/py-pytest-httpx/Makefile new file mode 100644 index 000000000000..7e8d5af8805b --- /dev/null +++ b/devel/py-pytest-httpx/Makefile @@ -0,0 +1,29 @@ +PORTNAME= pytest-httpx +PORTVERSION= 0.29.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION} + +MAINTAINER= grembo@FreeBSD.org +COMMENT= Send responses to py-httpx using pytest +WWW= https://colin-b.github.io/pytest_httpx/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httpx>0:www/py-httpx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0:devel/py-pytest-asyncio@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist distutils + +TEST_ENV= PYTHONPATH=${WRKSRC}/src + +NO_ARCH= yes + +do-test: + cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts= + +.include <bsd.port.mk> diff --git a/devel/py-pytest-httpx/distinfo b/devel/py-pytest-httpx/distinfo new file mode 100644 index 000000000000..94084ec8b970 --- /dev/null +++ b/devel/py-pytest-httpx/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1707746509 +SHA256 (pytest_httpx-0.29.0.tar.gz) = ed08ed802e2b315b83cdd16f0b26cbb2b836c29e0fde5c18bc3105f1073e0332 +SIZE (pytest_httpx-0.29.0.tar.gz) = 34103 diff --git a/devel/py-pytest-httpx/pkg-descr b/devel/py-pytest-httpx/pkg-descr new file mode 100644 index 000000000000..fd187bce1880 --- /dev/null +++ b/devel/py-pytest-httpx/pkg-descr @@ -0,0 +1,4 @@ +Send responses to HTTPX using pytest + +Once installed, httpx_mock fixture will make sure every httpx +request will be replied to with user provided responses.