Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jan 2024 14:53:46 GMT
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 3f1c1f734dfc - main - devel/py-pytest-drop-dup-tests: Pytest plugin to drop duplicated tests during collection.
Message-ID:  <202401191453.40JErkrr055683@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=3f1c1f734dfc4eb07a5e67216792115606a19634

commit 3f1c1f734dfc4eb07a5e67216792115606a19634
Author:     Alastair Hogge <agh@riseup.net>
AuthorDate: 2024-01-19 14:46:31 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-01-19 14:52:25 +0000

    devel/py-pytest-drop-dup-tests: Pytest plugin to drop duplicated tests during collection.
    
    Differential Revision: https://reviews.freebsd.org/D43484
---
 devel/Makefile                           |  1 +
 devel/py-pytest-drop-dup-tests/Makefile  | 22 ++++++++++++++++++++++
 devel/py-pytest-drop-dup-tests/distinfo  |  3 +++
 devel/py-pytest-drop-dup-tests/pkg-descr |  5 +++++
 4 files changed, 31 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 5ed6a5ffcd63..3c24621696ab 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5377,6 +5377,7 @@
     SUBDIR += py-pytest-cpp
     SUBDIR += py-pytest-datadir
     SUBDIR += py-pytest-django
+    SUBDIR += py-pytest-drop-dup-tests
     SUBDIR += py-pytest-enabler
     SUBDIR += py-pytest-env
     SUBDIR += py-pytest-factoryboy
diff --git a/devel/py-pytest-drop-dup-tests/Makefile b/devel/py-pytest-drop-dup-tests/Makefile
new file mode 100644
index 000000000000..d187fa87e4d4
--- /dev/null
+++ b/devel/py-pytest-drop-dup-tests/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	pytest-drop-dup-tests
+DISTVERSION=	0.3.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	agh@riseup.net
+COMMENT=	Pytest plugin to drop duplicated tests during collection
+WWW=		https://github.com/nicoddemus/pytest-drop-dup-tests
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR}
+
+USES=		cpe python
+USE_PYTHON=	autoplist concurrent pep517 pytest
+
+.include <bsd.port.mk>
diff --git a/devel/py-pytest-drop-dup-tests/distinfo b/devel/py-pytest-drop-dup-tests/distinfo
new file mode 100644
index 000000000000..cd72fac69647
--- /dev/null
+++ b/devel/py-pytest-drop-dup-tests/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1705534918
+SHA256 (pytest-drop-dup-tests-0.3.0.tar.gz) = 6ef9b3dd19171136b1b5e970a3d80593ccbc51e3684b1b72f1054a16656bc563
+SIZE (pytest-drop-dup-tests-0.3.0.tar.gz) = 5322
diff --git a/devel/py-pytest-drop-dup-tests/pkg-descr b/devel/py-pytest-drop-dup-tests/pkg-descr
new file mode 100644
index 000000000000..4e7e4b2bb42f
--- /dev/null
+++ b/devel/py-pytest-drop-dup-tests/pkg-descr
@@ -0,0 +1,5 @@
+Pytest plugin to drop duplicated tests during collection. Pytest by default
+will collect all tests from directories or files given configured by the
+Project, or passed on the command line. The plugin aims to reduce test work by
+executing tests/unit first, followed by the remaining tests under tests,
+however, without duplicates.



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