Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Aug 2024 10:08:16 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 743f7631d773 - main - devel/py-pytest-dependency: New port: Pytest plugin to manage dependencies of tests
Message-ID:  <202408221008.47MA8GjU070443@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=743f7631d7735fdd8aa75979bd611ec1c6f70307

commit 743f7631d7735fdd8aa75979bd611ec1c6f70307
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-08-22 10:06:58 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-08-22 10:08:14 +0000

    devel/py-pytest-dependency: New port: Pytest plugin to manage dependencies of tests
---
 devel/Makefile                       |  1 +
 devel/py-pytest-dependency/Makefile  | 23 +++++++++++++++++++++++
 devel/py-pytest-dependency/distinfo  |  3 +++
 devel/py-pytest-dependency/pkg-descr |  4 ++++
 4 files changed, 31 insertions(+)

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408221008.47MA8GjU070443>