From c64b500689f2c982d37ca99b4980b0c79b3968b5 Mon Sep 17 00:00:00 2001 From: Steve Wills Date: Tue, 21 Jul 2020 02:29:45 +0000 Subject: [PATCH] devel/py-pytest-randomly: create port Pytest plugin to randomly order tests and control random.seed. (Also available for nose). WWW: https://github.com/pytest-dev/pytest-randomly --- devel/Makefile | 1 + devel/py-pytest-randomly/Makefile | 21 +++++++++++++++++++++ devel/py-pytest-randomly/distinfo | 3 +++ devel/py-pytest-randomly/pkg-descr | 4 ++++ 4 files changed, 29 insertions(+) create mode 100644 devel/py-pytest-randomly/Makefile create mode 100644 devel/py-pytest-randomly/distinfo create mode 100644 devel/py-pytest-randomly/pkg-descr diff --git a/devel/Makefile b/devel/Makefile index 88ba0eb30a6f..d5d8372dfab7 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4933,6 +4933,7 @@ SUBDIR += py-pytest-mock SUBDIR += py-pytest-pep8 SUBDIR += py-pytest-pycodestyle + SUBDIR += py-pytest-randomly SUBDIR += py-pytest-relaxed SUBDIR += py-pytest-rerunfailures SUBDIR += py-pytest-runner diff --git a/devel/py-pytest-randomly/Makefile b/devel/py-pytest-randomly/Makefile new file mode 100644 index 000000000000..7969fad72015 --- /dev/null +++ b/devel/py-pytest-randomly/Makefile @@ -0,0 +1,21 @@ +# $FreeBSD$ + +PORTNAME= pytest-randomly +PORTVERSION= 3.4.1 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= swills@FreeBSD.org +COMMENT= Pytest plugin to randomly order tests and control random.seed + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-metadata@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= autoplist distutils + +.include diff --git a/devel/py-pytest-randomly/distinfo b/devel/py-pytest-randomly/distinfo new file mode 100644 index 000000000000..40cda7d997a5 --- /dev/null +++ b/devel/py-pytest-randomly/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1595297035 +SHA256 (pytest-randomly-3.4.1.tar.gz) = 5fd0dbeeb218a7ce029690a8100453cd8d6a7972cf9d8e657690352692e92c69 +SIZE (pytest-randomly-3.4.1.tar.gz) = 31652 diff --git a/devel/py-pytest-randomly/pkg-descr b/devel/py-pytest-randomly/pkg-descr new file mode 100644 index 000000000000..b5f952a0b88a --- /dev/null +++ b/devel/py-pytest-randomly/pkg-descr @@ -0,0 +1,4 @@ +Pytest plugin to randomly order tests and control random.seed. (Also available +for nose). + +WWW: https://github.com/pytest-dev/pytest-randomly