git: 1d2cee2e61eb - main - devel/py-flaky: Update to 3.8.1

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Sun, 28 Apr 2024 14:07:21 UTC
The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1d2cee2e61ebffe2d842656964c59b52d27a2705

commit 1d2cee2e61ebffe2d842656964c59b52d27a2705
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2024-04-28 13:59:48 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2024-04-28 14:06:38 +0000

    devel/py-flaky: Update to 3.8.1
    
    * Update test suite and switch to USE_PYTHON=pytest while I'm here.
    
    Changelog since 3.7.0:
    
    https://github.com/box/flaky/blob/v3.8.1/HISTORY.rst
---
 devel/py-flaky/Makefile | 19 ++++++++-----------
 devel/py-flaky/distinfo |  6 +++---
 2 files changed, 11 insertions(+), 14 deletions(-)

diff --git a/devel/py-flaky/Makefile b/devel/py-flaky/Makefile
index 143863e4c8b2..24b6daecaf90 100644
--- a/devel/py-flaky/Makefile
+++ b/devel/py-flaky/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	flaky
-DISTVERSION=	3.7.0
+DISTVERSION=	3.8.1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,27 +11,24 @@ WWW=		https://github.com/box/flaky
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}genty>0:devel/py-genty@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	distutils autoplist
+USE_PYTHON=	autoplist distutils pytest
+
+TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 
 NO_ARCH=	yes
 
+# Tests were taken from https://github.com/box/flaky/blob/v3.8.1/tox.ini#L17
+# The "--no-flaky-report" parameter has also been added to make the output
+# a little clearer.
 do-test:
 	cd ${WRKSRC} && \
-		${PYTHON_CMD} -m nose -v --no-flaky-report \
-	       		--with-flaky --exclude="test_nose_options_example" test/test_nose/ && \
 		${PYTHON_CMD} -m pytest -v -rs --no-flaky-report \
 			-k 'example and not options' -n 1 test/test_pytest && \
 		${PYTHON_CMD} -m pytest -v -rs \
 	       		-p no:flaky test/test_pytest/test_flaky_pytest_plugin.py && \
-		${PYTHON_CMD} -m nose -v --no-flaky-report \
-	       		--with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py && \
 		${PYTHON_CMD} -m pytest -v -rs --no-flaky-report \
 			--force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py
 
diff --git a/devel/py-flaky/distinfo b/devel/py-flaky/distinfo
index aebc03149217..3a1b72d4362d 100644
--- a/devel/py-flaky/distinfo
+++ b/devel/py-flaky/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1606940385
-SHA256 (flaky-3.7.0.tar.gz) = 3ad100780721a1911f57a165809b7ea265a7863305acb66708220820caf8aa0d
-SIZE (flaky-3.7.0.tar.gz) = 29591
+TIMESTAMP = 1714289386
+SHA256 (flaky-3.8.1.tar.gz) = 47204a81ec905f3d5acfbd61daeabcada8f9d4031616d9bcb0618461729699f5
+SIZE (flaky-3.8.1.tar.gz) = 25248