From nobody Sun Nov 10 20:46:23 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 4Xml8H5s0Sz5cFXB; Sun, 10 Nov 2024 20:46:23 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xml8H4RLYz4ZDN; Sun, 10 Nov 2024 20:46:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731271583; 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=3sftlSeiD18FfmBtLJ3s6QaiZuy2XjSpSNjlZWmkbVg=; b=s4khQnqtgVEmrObQHnSGoh1hKIJC0p7RikgHCxCmFyi9B6NJ/cdLOtxLDTMyRkL/ZfUNUE 8Bt/mI2UCE03KeBxoyT50QcKdyQPhutD77aSTW7qnPVfm2QH4O2Dp0T3vZ4oioEEY4pfeb AqqYVzfXO21YgqY3nj4IBJC9THHhGNfGv5JsMopnDtcoF1lskiDB8efEkYo6JDez11QjG7 ttAPoSsbueWHSZAQQbXw6f31cJf/5YP3wNiZ0nw/JZN5P7ovCKTvi2TkVOuRxuKlsgoeA0 yVECPQCnHYr1t3wlSuJYleirBmk9BkC/OtzVT3xRwUHcQEN7xLo65NsMCQDvog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731271583; 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=3sftlSeiD18FfmBtLJ3s6QaiZuy2XjSpSNjlZWmkbVg=; b=DYukRUYR1VKjrFvP8b8yFoYp9vjucfQxLnLPt2ucyRzvssi3rHRs+UQ4eeZtGP+lAXmned KxG0HFILfaB9PYuRAYooR5tr0jKQl8X/1+VJOvyQdLNCwJIfJE6GyDTVust0yNdizZP3nb 5d8gxYdqqFcq0MSW6q3O/dp4baCmwNl4vqtuUHThwniTThodmLNYZXeMLQmNCYnZ+t5jQ1 KiD7/xiMP5jwlW+s6KdoUbSefcYIItqC4AqxqyqgkR/wiXHSAYv/uyI2sbst3SLFAzruCc wCM5Kbnmm6jslSlcPh3YQpNHNM0zLyIp3x5SB1+b+qv/xOMHM4G50c9SlnnyWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731271583; a=rsa-sha256; cv=none; b=p4cTe4l+nrM56esEyDXtz6bS7ELQ6PPve0tw6b4F6jzKhbBFCwUpj43O9PmLWyHKWje/ug I8r5MISUy2phJU0OV6aCoogj0WFJ4mo6gQinaSE5otaQ/Dt8+yen8cgc3oeHNu2B+qECe5 Vmo7SkTd/xJbskrL21s/bJ+aQHNxFLVBeyNnqoWbn0RvUsUNu6HWx7SiDU5/IOZFc4qAzO 57wmTfXTXPuNL6uE5ZI8903V3giXUj29Ikzt/UPu7GeVYXcl9B0saq/BR01Bx/qYqOvehP 4whv6y2MZiafphDDVT/anjl8kxxxBEing9Bw0a4jT+8WIswBBxn/azmaEdieOw== 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 4Xml8H3lBmzwtR; Sun, 10 Nov 2024 20:46:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AAKkNjR058134; Sun, 10 Nov 2024 20:46:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AAKkNl4058130; Sun, 10 Nov 2024 20:46:23 GMT (envelope-from git) Date: Sun, 10 Nov 2024 20:46:23 GMT Message-Id: <202411102046.4AAKkNl4058130@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 34388df3fda0 - main - devel/py-pytest-recording: New port: Pytest Plugin that allows recording network interactions via VCR.py 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 34388df3fda0e9439fc2bfca80763e82d627e622 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=34388df3fda0e9439fc2bfca80763e82d627e622 commit 34388df3fda0e9439fc2bfca80763e82d627e622 Author: Yuri Victorovich AuthorDate: 2024-11-10 20:45:45 +0000 Commit: Yuri Victorovich CommitDate: 2024-11-10 20:46:19 +0000 devel/py-pytest-recording: New port: Pytest Plugin that allows recording network interactions via VCR.py --- devel/Makefile | 1 + devel/py-pytest-recording/Makefile | 27 +++++++++++++++++++++++++++ devel/py-pytest-recording/distinfo | 3 +++ devel/py-pytest-recording/pkg-descr | 7 +++++++ 4 files changed, 38 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 5c18075e2dfc..8eabc936adaf 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5654,6 +5654,7 @@ SUBDIR += py-pytest-random-order SUBDIR += py-pytest-randomly SUBDIR += py-pytest-recorder + SUBDIR += py-pytest-recording SUBDIR += py-pytest-regressions SUBDIR += py-pytest-regtest SUBDIR += py-pytest-relaxed diff --git a/devel/py-pytest-recording/Makefile b/devel/py-pytest-recording/Makefile new file mode 100644 index 000000000000..035666ad7019 --- /dev/null +++ b/devel/py-pytest-recording/Makefile @@ -0,0 +1,27 @@ +PORTNAME= pytest-recording +DISTVERSION= 0.13.2 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Pytest Plugin that allows recording network interactions via VCR.py +WWW= https://github.com/kiwicom/pytest-recording + +LICENSE= MIT + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}vcrpy>=2.0.1:devel/py-vcrpy@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist pytest + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +NO_ARCH= yes + +# tests as of 0.13.2: 30 failed, 29 passed, 6 skipped in 42.49s, see https://github.com/kiwicom/pytest-recording/issues/154 + +.include diff --git a/devel/py-pytest-recording/distinfo b/devel/py-pytest-recording/distinfo new file mode 100644 index 000000000000..a3d402e432dd --- /dev/null +++ b/devel/py-pytest-recording/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1731270780 +SHA256 (pytest_recording-0.13.2.tar.gz) = 000c3babbb466681457fd65b723427c1779a0c6c17d9e381c3142a701e124877 +SIZE (pytest_recording-0.13.2.tar.gz) = 25270 diff --git a/devel/py-pytest-recording/pkg-descr b/devel/py-pytest-recording/pkg-descr new file mode 100644 index 000000000000..e5cdf53399f0 --- /dev/null +++ b/devel/py-pytest-recording/pkg-descr @@ -0,0 +1,7 @@ +Pytest plugin that allows recording network interactions via VCR.py + +Features: +* Straightforward pytest.mark.vcr, that reflects VCR.use_cassettes API +* Combining multiple VCR cassettes +* Network access blocking +* The rewrite recording mode that rewrites cassettes from scratch