git: b7e212657dca - main - devel/py-pytest-profiling: Add py-pytest-profiling 1.7.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 27 Aug 2022 10:30:42 UTC
The branch main has been updated by sunpoet:

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

commit b7e212657dca2afc5ab6232923ac7a60aa842e69
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-08-27 10:10:26 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-08-27 10:10:26 +0000

    devel/py-pytest-profiling: Add py-pytest-profiling 1.7.0
    
    Profiling plugin for pytest, with tabular and heat graph output.
    
    Tests are profiled with cProfile and analysed with pstats; heat graphs are
    generated using gprof2dot and dot.
    
    WWW: https://github.com/man-group/pytest-plugins/tree/master/pytest-profiling
---
 devel/Makefile                      |  1 +
 devel/py-pytest-profiling/Makefile  | 23 +++++++++++++++++++++++
 devel/py-pytest-profiling/distinfo  |  3 +++
 devel/py-pytest-profiling/pkg-descr |  6 ++++++
 4 files changed, 33 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 15116d65e815..07b33620493a 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5118,6 +5118,7 @@
     SUBDIR += py-pytest-nunit
     SUBDIR += py-pytest-pep8
     SUBDIR += py-pytest-plus
+    SUBDIR += py-pytest-profiling
     SUBDIR += py-pytest-pycodestyle
     SUBDIR += py-pytest-randomly
     SUBDIR += py-pytest-regressions
diff --git a/devel/py-pytest-profiling/Makefile b/devel/py-pytest-profiling/Makefile
new file mode 100644
index 000000000000..afd568851fb1
--- /dev/null
+++ b/devel/py-pytest-profiling/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	pytest-profiling
+PORTVERSION=	1.7.0
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Profiling plugin for py.test
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools-git>=0:devel/py-setuptools-git@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gprof2dot>=0:graphics/py-gprof2dot@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest>=0,1:devel/py-pytest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-pytest-profiling/distinfo b/devel/py-pytest-profiling/distinfo
new file mode 100644
index 000000000000..48e8619a9dc7
--- /dev/null
+++ b/devel/py-pytest-profiling/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660576684
+SHA256 (pytest-profiling-1.7.0.tar.gz) = 93938f147662225d2b8bd5af89587b979652426a8a6ffd7e73ec4a23e24b7f29
+SIZE (pytest-profiling-1.7.0.tar.gz) = 30985
diff --git a/devel/py-pytest-profiling/pkg-descr b/devel/py-pytest-profiling/pkg-descr
new file mode 100644
index 000000000000..6b5170e51c71
--- /dev/null
+++ b/devel/py-pytest-profiling/pkg-descr
@@ -0,0 +1,6 @@
+Profiling plugin for pytest, with tabular and heat graph output.
+
+Tests are profiled with cProfile and analysed with pstats; heat graphs are
+generated using gprof2dot and dot.
+
+WWW: https://github.com/man-group/pytest-plugins/tree/master/pytest-profiling