aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2024-08-22 10:06:58 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2024-08-22 10:08:14 +0000
commit743f7631d7735fdd8aa75979bd611ec1c6f70307 (patch)
tree6667abfdf7aa8288ab01aea471c044390a2573f3
parent1b976d7094fad34859061bf5c7cf8f0eda086466 (diff)
devel/py-pytest-dependency: New port: Pytest plugin to manage dependencies of tests
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-pytest-dependency/Makefile23
-rw-r--r--devel/py-pytest-dependency/distinfo3
-rw-r--r--devel/py-pytest-dependency/pkg-descr4
4 files changed, 31 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index fd23aff137af..f773bdd98487 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5549,6 +5549,7 @@
SUBDIR += py-pytest-cov
SUBDIR += py-pytest-cpp
SUBDIR += py-pytest-datadir
+ SUBDIR += py-pytest-dependency
SUBDIR += py-pytest-django
SUBDIR += py-pytest-doctestplus
SUBDIR += py-pytest-drop-dup-tests
diff --git a/devel/py-pytest-dependency/Makefile b/devel/py-pytest-dependency/Makefile
new file mode 100644
index 000000000000..d0d19c906a6a
--- /dev/null
+++ b/devel/py-pytest-dependency/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= pytest-dependency
+DISTVERSION= 0.6.0
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Pytest plugin to manage dependencies of tests
+WWW= https://github.com/RKrahl/pytest-dependency
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=3.7.0:devel/py-pytest@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= distutils autoplist pytest
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-pytest-dependency/distinfo b/devel/py-pytest-dependency/distinfo
new file mode 100644
index 000000000000..e0c4e3901a55
--- /dev/null
+++ b/devel/py-pytest-dependency/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1724320686
+SHA256 (pytest-dependency-0.6.0.tar.gz) = 934b0e6a39d95995062c193f7eaeed8a8ffa06ff1bcef4b62b0dc74a708bacc1
+SIZE (pytest-dependency-0.6.0.tar.gz) = 19499
diff --git a/devel/py-pytest-dependency/pkg-descr b/devel/py-pytest-dependency/pkg-descr
new file mode 100644
index 000000000000..c42170c0f2e7
--- /dev/null
+++ b/devel/py-pytest-dependency/pkg-descr
@@ -0,0 +1,4 @@
+This module is a plugin for the popular Python testing framework pytest.
+It manages dependencies of tests: you may mark some tests as dependent from
+other tests. These tests will then be skipped if any of the dependencies
+did fail or has been skipped.