git: 4863bdde6ebd - main - devel/py-pytest-benchmark: Add ASPECT option

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 23 Mar 2024 15:01:11 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4863bdde6ebd1c43e96e248acb4ac96f00f54cef

commit 4863bdde6ebd1c43e96e248acb4ac96f00f54cef
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-03-23 14:21:27 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-03-23 14:49:23 +0000

    devel/py-pytest-benchmark: Add ASPECT option
    
    - Add missing TEST_DEPENDS
    - Remove TESTING_UNSAFE
---
 devel/py-pytest-benchmark/Makefile | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/devel/py-pytest-benchmark/Makefile b/devel/py-pytest-benchmark/Makefile
index f346b9d1f160..dea8abc1c6d1 100644
--- a/devel/py-pytest-benchmark/Makefile
+++ b/devel/py-pytest-benchmark/Makefile
@@ -13,7 +13,11 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}py-cpuinfo>=0:sysutils/py-py-cpuinfo@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest>=3.8:devel/py-pytest@${PY_FLAVOR}
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}elasticsearch>=0:textproc/py-elasticsearch@${PY_FLAVOR} \
+TEST_DEPENDS=	git:devel/git \
+		hg:devel/mercurial \
+		${PYTHON_PKGNAMEPREFIX}aspectlib>=0:devel/py-aspectlib@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}elasticsearch>=0:textproc/py-elasticsearch@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}freezegun>=0:devel/py-freezegun@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-xdist>=0,1:devel/py-pytest-xdist@${PY_FLAVOR}
 
 USES=		python
@@ -22,11 +26,11 @@ USE_PYTHON=	autoplist concurrent distutils pytest
 NO_ARCH=	yes
 TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
 
-OPTIONS_DEFINE=	ELASTICSEARCH
+OPTIONS_DEFINE=	ASPECT ELASTICSEARCH
+ASPECT_DESC=	Aspect support
 ELASTICSEARCH_DESC=	Elasticsearch support
 
+ASPECT_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aspectlib>=0:devel/py-aspectlib@${PY_FLAVOR}
 ELASTICSEARCH_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}elasticsearch>=0:textproc/py-elasticsearch@${PY_FLAVOR}
 
-TESTING_UNSAFE=	ModuleNotFoundError: No module named 'freezegun'
-
 .include <bsd.port.mk>