devel/py-pytest-repeat: New port: Pytest plugin for repeating tests

This commit is contained in:
Yuri Victorovich 2024-12-19 08:09:02 -07:00
parent 314d904399
commit e1838c21a2
4 changed files with 33 additions and 0 deletions

View File

@ -5690,6 +5690,7 @@
SUBDIR += py-pytest-regtest
SUBDIR += py-pytest-relaxed
SUBDIR += py-pytest-remotedata
SUBDIR += py-pytest-repeat
SUBDIR += py-pytest-rerunfailures
SUBDIR += py-pytest-ruff
SUBDIR += py-pytest-runner

View File

@ -0,0 +1,27 @@
PORTNAME= pytest-repeat
DISTVERSION= 0.9.3
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:S/-/_/g}-${PORTVERSION}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Pytest plugin for repeating tests
WWW= https://github.com/pytest-dev/pytest-repeat
LICENSE= MPL20
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-vcs>0:devel/py-hatch-vcs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
USES= python
USE_PYTHON= pep517 autoplist pytest
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
NO_ARCH= yes
# tests as of 0.9.3: 16 passed in 3.79s
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1734640588
SHA256 (pytest_repeat-0.9.3.tar.gz) = ffd3836dfcd67bb270bec648b330e20be37d2966448c4148c4092d1e8aba8185
SIZE (pytest_repeat-0.9.3.tar.gz) = 6272

View File

@ -0,0 +1,2 @@
pytest-repeat is a plugin for pytest that makes it easy to repeat a single test,
or multiple tests, a specific number of times.