From nobody Sat Nov 19 08:16:42 2022 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 4NDmhV74t9z4jDcZ; Sat, 19 Nov 2022 08:16:42 +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 4NDmhV6dXDz4FHl; Sat, 19 Nov 2022 08:16:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668845802; 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=drRrG9ex4HaZdocyhK5g4V5VNInhzNKB9V8UCggC8XQ=; b=MnP3zHVnjpHd4YXJwyWy+Wn/V1vUNC3Ho6G0ZaO+xU40RRm1tYlD+PLJ8orn6cYOthIhHn ROFQqYxhP/re+ZYZK1RVqUpPoIZs2+sy2ruCtM1dvBi9b2ruqmCAk+eUujJSkDlIxnmPsW S6xd7ME4/ZeHLVo5mGuWNsiGbEdw/m9pcQDwJOdKckpq5rOGhwLo7E+3vpZrfsB+sdDITY Ylv9aCMpPx/8P3k+vs1dmuy12RryLlRdIqkI75rvRW9iRlEFB6MxIWBzPSf2MyFxbvzbkJ AQXr+HemVUZqziIas/LGbRwabtWZ4pxr66RJMKcfuzkI0W0UjOCxBCMH8Ujw5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668845802; 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=drRrG9ex4HaZdocyhK5g4V5VNInhzNKB9V8UCggC8XQ=; b=y0Qa7abUAQgK6qbzdcSqSc3dc0+nvr3PvmsSnZJeiWdk0sqjKp4Mop9MrGHP7pU6xh0nVS qJ6dHrLAIwh2OEr+YEI8L98gmKr0c5JEaBnJbRiqjZykzSWnwAdiXqo2zvaVbDVSAO7dXG G99Y/1KXOqTnbxg+OZzXM3zevVDGk9B1RV+azg4xr4fD9IGGV8nyGV/kgsZ/NdPjzKCrpZ qVNdbgPQXyMSmI0V0Fs2+Y/YhDtpD4XfWiIt38yeWFqA+v713yvoVKyLBDC0cEHbXHWofn bDcZTrIhI2tgudpYkJWa8w/+e5QfHacSnD8QsgHX+QDY/XcVSj7xGpnf0msjzA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668845802; a=rsa-sha256; cv=none; b=thULO6vuCfx4/DyYXMAUeYUMcEEpoUVQc8Da3gZsTJBOpZwYAe5CUkzpJmvvN2w9qxmiYX 2Av9RS1o81EtBce6HZoKRivlmNIuP2YGHrBQg+xnPg+zpY9eSXsdVwGAo0nInLP922WXbt pC7LOrMTvLFIrXVMaHQjeuOHRBnR/k2+0vXFPxsymgEsWFljAltQje8WcUsnGphzkg01N0 Xp+DFQ/NrKxjxDIEJlJwFTUoBpyxI83GdyjETepTT73XGLgxnCi/M/bcUR1NE9Wxh7nPEG Q6icTdHxpGAhLcKG35SSmONQZHtjt/cUJyjpZmJ1hKuWNEPEqV2arJp38H24Gg== 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 4NDmhV5hP5zf1n; Sat, 19 Nov 2022 08:16:42 +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 2AJ8GgBh013032; Sat, 19 Nov 2022 08:16:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AJ8GgeB013031; Sat, 19 Nov 2022 08:16:42 GMT (envelope-from git) Date: Sat, 19 Nov 2022 08:16:42 GMT Message-Id: <202211190816.2AJ8GgeB013031@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: cb8efe9d2fcf - main - devel/py-pytest-console-scripts: Add py-pytest-console-scripts 1.3.1 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: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cb8efe9d2fcfd80b302ec64e054c1f8cfc002df8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=cb8efe9d2fcfd80b302ec64e054c1f8cfc002df8 commit cb8efe9d2fcfd80b302ec64e054c1f8cfc002df8 Author: Po-Chuan Hsieh AuthorDate: 2022-11-19 08:09:55 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-11-19 08:09:55 +0000 devel/py-pytest-console-scripts: Add py-pytest-console-scripts 1.3.1 Pytest-console-scripts is a pytest plugin for running python scripts from within tests. It's quite similar to subprocess.run(), but it also has an in-process mode, where the scripts are executed by the interpreter that's running pytest (using some amount of sandboxing). In-process mode significantly reduces the run time of the test suites that run many external scripts. This is speeds up development. In the CI environment subprocess mode can be used to make sure the scripts also work (and behave the same) when run by a fresh interpreter. --- devel/Makefile | 1 + devel/py-pytest-console-scripts/Makefile | 22 ++++++++++++++++++++++ devel/py-pytest-console-scripts/distinfo | 3 +++ devel/py-pytest-console-scripts/pkg-descr | 9 +++++++++ 4 files changed, 35 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index c9d84159dec2..b4696168455a 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5140,6 +5140,7 @@ SUBDIR += py-pytest-canonical-data SUBDIR += py-pytest-capturelog SUBDIR += py-pytest-checkdocs + SUBDIR += py-pytest-console-scripts SUBDIR += py-pytest-cov SUBDIR += py-pytest-datadir SUBDIR += py-pytest-django diff --git a/devel/py-pytest-console-scripts/Makefile b/devel/py-pytest-console-scripts/Makefile new file mode 100644 index 000000000000..0bb2d19b6e32 --- /dev/null +++ b/devel/py-pytest-console-scripts/Makefile @@ -0,0 +1,22 @@ +PORTNAME= pytest-console-scripts +PORTVERSION= 1.3.1 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Pytest plugin for testing console scripts +WWW= https://github.com/kvas-it/pytest-console-scripts + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=4.0.0,1:devel/py-pytest@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/devel/py-pytest-console-scripts/distinfo b/devel/py-pytest-console-scripts/distinfo new file mode 100644 index 000000000000..8b81d8c03663 --- /dev/null +++ b/devel/py-pytest-console-scripts/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1665651054 +SHA256 (pytest-console-scripts-1.3.1.tar.gz) = 5c6c3daae9cf9fbed0e655072128938600193dc002a5cf1b187248644ba02857 +SIZE (pytest-console-scripts-1.3.1.tar.gz) = 14238 diff --git a/devel/py-pytest-console-scripts/pkg-descr b/devel/py-pytest-console-scripts/pkg-descr new file mode 100644 index 000000000000..125628b54db4 --- /dev/null +++ b/devel/py-pytest-console-scripts/pkg-descr @@ -0,0 +1,9 @@ +Pytest-console-scripts is a pytest plugin for running python scripts from within +tests. It's quite similar to subprocess.run(), but it also has an in-process +mode, where the scripts are executed by the interpreter that's running pytest +(using some amount of sandboxing). + +In-process mode significantly reduces the run time of the test suites that run +many external scripts. This is speeds up development. In the CI environment +subprocess mode can be used to make sure the scripts also work (and behave the +same) when run by a fresh interpreter.