git: 33be47ea47dd - main - devel/py-pytest-run-parallel: Add py-pytest-run-parallel 0.3.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 17 Feb 2025 08:44:17 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=33be47ea47ddf0f07bf470a854927e41f6337dab

commit 33be47ea47ddf0f07bf470a854927e41f6337dab
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-02-17 08:11:30 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-02-17 08:11:30 +0000

    devel/py-pytest-run-parallel: Add py-pytest-run-parallel 0.3.1
    
    pytest-run-parallel is a simple pytest plugin to run tests concurrently.
    
    This pytest plugin takes a set of tests that would be normally be run serially
    and execute them in parallel.
    
    The main goal of pytest-run-parallel is to discover thread-safety issues that
    could exist when using C libraries, this is of vital importance after PEP703,
    which provides a path for a CPython implementation without depending on the
    Global Interpreter Lock (GIL), thus allowing for proper parallelism in programs
    that make use of the CPython interpreter.
---
 devel/Makefile                         |  1 +
 devel/py-pytest-run-parallel/Makefile  | 24 ++++++++++++++++++++++++
 devel/py-pytest-run-parallel/distinfo  |  3 +++
 devel/py-pytest-run-parallel/pkg-descr | 10 ++++++++++
 4 files changed, 38 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 06e8b7c04787..dcda64106651 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5704,6 +5704,7 @@
     SUBDIR += py-pytest-repeat
     SUBDIR += py-pytest-rerunfailures
     SUBDIR += py-pytest-ruff
+    SUBDIR += py-pytest-run-parallel
     SUBDIR += py-pytest-runner
     SUBDIR += py-pytest-services
     SUBDIR += py-pytest-shutil
diff --git a/devel/py-pytest-run-parallel/Makefile b/devel/py-pytest-run-parallel/Makefile
new file mode 100644
index 000000000000..af3acfd1a950
--- /dev/null
+++ b/devel/py-pytest-run-parallel/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	pytest-run-parallel
+PORTVERSION=	0.3.1
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	pytest_run_parallel-${PORTVERSION}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Simple pytest plugin to run tests concurrently
+WWW=		https://github.com/Quansight-Labs/pytest-run-parallel
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=61.0.0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=6.2.0,1:devel/py-pytest@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-pytest-run-parallel/distinfo b/devel/py-pytest-run-parallel/distinfo
new file mode 100644
index 000000000000..1c4bb84847dc
--- /dev/null
+++ b/devel/py-pytest-run-parallel/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1739116666
+SHA256 (pytest_run_parallel-0.3.1.tar.gz) = 636306d3ed6838898d8d42b3cd379dac7b327ce6d68df1bcc30d55a208d5081e
+SIZE (pytest_run_parallel-0.3.1.tar.gz) = 14142
diff --git a/devel/py-pytest-run-parallel/pkg-descr b/devel/py-pytest-run-parallel/pkg-descr
new file mode 100644
index 000000000000..6dfdc34c14bc
--- /dev/null
+++ b/devel/py-pytest-run-parallel/pkg-descr
@@ -0,0 +1,10 @@
+pytest-run-parallel is a simple pytest plugin to run tests concurrently.
+
+This pytest plugin takes a set of tests that would be normally be run serially
+and execute them in parallel.
+
+The main goal of pytest-run-parallel is to discover thread-safety issues that
+could exist when using C libraries, this is of vital importance after PEP703,
+which provides a path for a CPython implementation without depending on the
+Global Interpreter Lock (GIL), thus allowing for proper parallelism in programs
+that make use of the CPython interpreter.