From nobody Sat Jun 24 02:54:12 2023 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 4QnzGD4XTPz4h93N; Sat, 24 Jun 2023 02:54:12 +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 4QnzGD48Gfz46cZ; Sat, 24 Jun 2023 02:54:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687575252; 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=fh/54lWAaGmuUEzHxVTnJvV39jBkjrBp9rkr+7rEeJ8=; b=aUztVL4Tle6wjY7mcrVgPEbgcFTRgG8QC9v6bpqX42d2ua9FCLu2IMHWSociD4iml2IeqO s+c7dSM0rR2PcyKgDzvUOPqRrJQdwKA7DV8qyZ4v5Cvz8ZU+pO9vlX6DCPtmL0VXTph1Y4 Ez+cKh0IVBD039DYbudvbcB+CFpA90RzRVeXqKcyDba4tEpWHXnUq38D5roy+ktFb0l8NP AnkoDZSL+IPu3/We1MxGxp9D5J5mdgt9S+C8uZv+ih3waWigdDv6YHQeCWvBNOILcvS7py KjuInndWST+Yl1qwNMgmCBjK6YcM02bgHde1nf4oQZjozvn/W3HKiQdab0ZNlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687575252; 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=fh/54lWAaGmuUEzHxVTnJvV39jBkjrBp9rkr+7rEeJ8=; b=jXcXxgk+GMoc7blMG6y2rwMB8CozCV59rDvcY2romqwv9ymekUbcU6oH+4XMW5g0R8xNk5 KZf860rRjCtoyAhVaKzV0zK1CcxNoFQidKayVvFIGT7a+a8L/ZMuukt8MlEG1bBljkFg9R oKq3IoznxWwiv1JIuEG9nntv69b4dMVgdDhhH7wpqzXWX0wPhCqf0VS3fbi0FB+t08ef6C 0BuU05NIXu5jwybn+AjxR1cLAEtamcVZcmK7DVmiNoSHU5ZZjfOkR4478wBwcwZP60A99l fg6VmeGqLe1Fg4ZamIJB5MrYlmBt82y/0r7GqHLPm/sLgIFxeWj+W48c/WqPdw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687575252; a=rsa-sha256; cv=none; b=wLCn89ykxFWGWyltzgRVr+ToN1hGIAPJn1mVcDBqyVkpnTv2iA3tUs9gNjOPKjv96dF8va XhtJV4RqyDEvXr3bL03bhl+tDKBnEtlakNyyIOr6/PnlNNx3/Cs0wRnIRchLW6ZhWr5ZpB eJoJ+bAGvoo+fbib7Cdm13nCNIBv7a3xwpkQT6c1LNEEczFrK9ublm5zHC0d98QFF9fOX0 XVUWQRi0ygo9J0FpkyJX/si11UswnlvE2wp/kmpQNjVqorHPPAUFUmKEwpT3i/tDzAx7+q Oc+FbD5kx+fERU9QqM5POA9jEV1OrkA6s1XKaryTItVZ9zaW8euF9I3IhB17Qw== 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 4QnzGD3FzSzVYY; Sat, 24 Jun 2023 02:54:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35O2sCCY005044; Sat, 24 Jun 2023 02:54:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35O2sC19005043; Sat, 24 Jun 2023 02:54:12 GMT (envelope-from git) Date: Sat, 24 Jun 2023 02:54:12 GMT Message-Id: <202306240254.35O2sC19005043@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: 1e03bffb9cf2 - main - devel/py-pytest-subprocess: New port: Pytest plugin to fake subprocess for pytest 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: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1e03bffb9cf25614cae79b2ae0d60a8a8a47b1ea Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=1e03bffb9cf25614cae79b2ae0d60a8a8a47b1ea commit 1e03bffb9cf25614cae79b2ae0d60a8a8a47b1ea Author: Yuri Victorovich AuthorDate: 2023-06-24 01:02:44 +0000 Commit: Yuri Victorovich CommitDate: 2023-06-24 02:54:08 +0000 devel/py-pytest-subprocess: New port: Pytest plugin to fake subprocess for pytest --- devel/Makefile | 1 + devel/py-pytest-subprocess/Makefile | 30 ++++++++++++++++++++++++++++++ devel/py-pytest-subprocess/distinfo | 3 +++ devel/py-pytest-subprocess/pkg-descr | 7 +++++++ 4 files changed, 41 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 9d35cae07da4..3968e644239f 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5345,6 +5345,7 @@ SUBDIR += py-pytest-runner SUBDIR += py-pytest-services SUBDIR += py-pytest-shutil + SUBDIR += py-pytest-subprocess SUBDIR += py-pytest-subtests SUBDIR += py-pytest-sugar SUBDIR += py-pytest-timeout diff --git a/devel/py-pytest-subprocess/Makefile b/devel/py-pytest-subprocess/Makefile new file mode 100644 index 000000000000..fe402f99019f --- /dev/null +++ b/devel/py-pytest-subprocess/Makefile @@ -0,0 +1,30 @@ +PORTNAME= pytest-subprocess +DISTVERSION= 1.5.0 +CATEGORIES= devel python +#MASTER_SITES= PYPI # no tests +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Pytest plugin to fake subprocess for pytest +WWW= https://github.com/aklajnert/pytest-subprocess + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=4.0.0:devel/py-pytest@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}anyio>=0:devel/py-anyio@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}coverage>=0:devel/py-coverage@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}docutils>=0.12:textproc/py-docutils@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pygments>=2.0:textproc/py-pygments@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0.15.1:devel/py-pytest-asyncio@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-rerunfailures>=0:devel/py-pytest-rerunfailures@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= distutils autoplist pytest # 2 tests fail, see https://github.com/aklajnert/pytest-subprocess/issues/123 + +USE_GITHUB= yes +GH_ACCOUNT= aklajnert + +NO_ARCH= yes + +.include diff --git a/devel/py-pytest-subprocess/distinfo b/devel/py-pytest-subprocess/distinfo new file mode 100644 index 000000000000..ed51b2147fe9 --- /dev/null +++ b/devel/py-pytest-subprocess/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1687554684 +SHA256 (aklajnert-pytest-subprocess-1.5.0_GH0.tar.gz) = 80172ac95439cd4a237c5ee7f343227a7fd21fb61284bfa0de4b7802502d88dc +SIZE (aklajnert-pytest-subprocess-1.5.0_GH0.tar.gz) = 34771 diff --git a/devel/py-pytest-subprocess/pkg-descr b/devel/py-pytest-subprocess/pkg-descr new file mode 100644 index 000000000000..822bfe917a9a --- /dev/null +++ b/devel/py-pytest-subprocess/pkg-descr @@ -0,0 +1,7 @@ +pytest-subprocess is a pytest plugin to fake subprocess. + +The plugin adds the fake_process fixture (and fp as an alias). It can be used +it to register subprocess results so you won't need to rely on the real +processes. The plugin hooks on the subprocess.Popen(), which is the base for +other subprocess functions. That makes the subprocess.run(), subprocess.call(), +subprocess.check_call() and subprocess.check_output() methods also functional.