From nobody Sun Feb 18 12:03:53 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Td4896xmZz541jQ; Sun, 18 Feb 2024 12:03:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Td4896QdZz4b5F; Sun, 18 Feb 2024 12:03:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708257833; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SkAuULId/OFq4wpjKVJm48IqORuyi2/RFUK68syfmA8=; b=TvTRfkMDQEHWJmZBxz+vyvJou3SfTa1a5MlCZEkvkKPnSS0HKgZ27fjRQl2irpazFKjBTd eKqat+XJWAXihqctmOcujYyKexqcBsg6DA6av+zWuYPaJmGmRr1/LCpmRH3aJ+oAPC19R3 zW7mZOtQCEW2k29+4x5Ra2qMogWxEkQXVr6NFKjl0Lv+O//Ogu1oCmOjHrgHNAIyoEDKid JbqYAdGyViUjc+y9tlb7lDl0uPZz4MV52DQ7jeqy1ilXidGUEIrnk7F6/pjIGf7o69GQOZ xTxgGIs+npe7A2EKYl8kB4xKfHuOsL7eGg6h6jkrgM4mlA0eYy6kKpO2zfPsXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708257833; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SkAuULId/OFq4wpjKVJm48IqORuyi2/RFUK68syfmA8=; b=sNNloa4d6YFEdtBzogURknQDx4TgmNa1rq6mP2O3Wc7gnAi8Yiy/LwuBI7AtEbSQTXvU33 QgRHqN58wNFQxO9VRI4QKTJFkV4UPCLH+udCbehFXuwIvbBDOt2mOzr+3D66UFmtE16OZj PzPOwROccQIy/isOyUpvQIZzdGh1gUVrRiHdjNrbrpah7daaRFlpYIT6yifIvP0npDWiB+ je34obdzXAxZCOtALHsv1o9fqAB49ktzAoGbN1M2xxjva/gI6AuDcL1gXX6Aha8P9emBCc +oHca67LjPlB/6/dOkPgllnxW2bzaQFARB8ndnz0WWaIPOcJaoYQGDKveLiSFg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708257833; a=rsa-sha256; cv=none; b=P4hBkrB3fCrQbWaietMbId/a4d+qdh+6zBq13rPZFhh1HMYzz3hg1NSXbqReQDpQFGdkFV 5QD4vE3lzKgOCWXdnretjsLLCCR4RgIjDh4Pzsoypm+9R6BxLzINZOr07mLQGWomylmHef QVtfP4EexlmDnQAjwL2nOcspCyuYOxadGzYDlAPl1nG0coXffq279eXZrUv13Db9c2iq5G WwMtbKbPTFdSVzPIHGKILmJUD0vazsbWGyazVYyahGnn8vRMP0jZlGhffE9Vx0gWNsnhAk YYR5iTchu8szFZBS8VURpP3+b/tinvY1cFAVJVxFHiAQUzXWIbSUrSIgMjgv+w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Td48958dBzqmr; Sun, 18 Feb 2024 12:03:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41IC3r30088103; Sun, 18 Feb 2024 12:03:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41IC3ruC088100; Sun, 18 Feb 2024 12:03:53 GMT (envelope-from git) Date: Sun, 18 Feb 2024 12:03:53 GMT Message-Id: <202402181203.41IC3ruC088100@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Michael Gmelin Subject: git: 2dde972e0c66 - main - devel/py-pytest-httpx: New port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: grembo X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2dde972e0c66c104b180430e3dcb6c076680e16b Auto-Submitted: auto-generated The branch main has been updated by grembo: URL: https://cgit.FreeBSD.org/ports/commit/?id=2dde972e0c66c104b180430e3dcb6c076680e16b commit 2dde972e0c66c104b180430e3dcb6c076680e16b Author: Michael Gmelin AuthorDate: 2024-02-12 14:27:37 +0000 Commit: Michael Gmelin 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 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.