git: cb8efe9d2fcf - main - devel/py-pytest-console-scripts: Add py-pytest-console-scripts 1.3.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 19 Nov 2022 08:16:42 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=cb8efe9d2fcfd80b302ec64e054c1f8cfc002df8
commit cb8efe9d2fcfd80b302ec64e054c1f8cfc002df8
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-11-19 08:09:55 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
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 <bsd.port.mk>
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.