Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Aug 2022 06:01:52 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 3f3f7a26800c - main - devel/py-pytest-mpl: New port: Pytest plugin to facilitate image comparison for Matplotlib figures
Message-ID:  <202208220601.27M61qxg078617@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

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

commit 3f3f7a26800cf77f964ba9e96f9800dc050305aa
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-22 06:00:56 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-22 06:01:48 +0000

    devel/py-pytest-mpl: New port: Pytest plugin to facilitate image comparison for Matplotlib figures
---
 devel/Makefile                |  1 +
 devel/py-pytest-mpl/Makefile  | 26 ++++++++++++++++++++++++++
 devel/py-pytest-mpl/distinfo  |  3 +++
 devel/py-pytest-mpl/pkg-descr |  4 ++++
 4 files changed, 34 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index e7049c5222d2..ffda1059c384 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5106,6 +5106,7 @@
     SUBDIR += py-pytest-markdown
     SUBDIR += py-pytest-metadata
     SUBDIR += py-pytest-mock
+    SUBDIR += py-pytest-mpl
     SUBDIR += py-pytest-mutagen
     SUBDIR += py-pytest-mypy
     SUBDIR += py-pytest-nunit
diff --git a/devel/py-pytest-mpl/Makefile b/devel/py-pytest-mpl/Makefile
new file mode 100644
index 000000000000..35caf8d80241
--- /dev/null
+++ b/devel/py-pytest-mpl/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	pytest-mpl
+DISTVERSION=	0.16.1
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Pytest plugin to facilitate image comparison for Matplotlib figures
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}packaging>=20.0:devel/py-packaging@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
+
+USES=		python:3.8+
+USE_PYTHON=	distutils autoplist pytest # 4 tests fail, see https://github.com/matplotlib/pytest-mpl/issues/179
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-pytest-mpl/distinfo b/devel/py-pytest-mpl/distinfo
new file mode 100644
index 000000000000..4e5aecb57d59
--- /dev/null
+++ b/devel/py-pytest-mpl/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1661129725
+SHA256 (pytest-mpl-0.16.1.tar.gz) = 2d571681124e8ff5f4e2b9c0d047d37d0499d6b6d8f2f49a1b50cdd993104469
+SIZE (pytest-mpl-0.16.1.tar.gz) = 663585
diff --git a/devel/py-pytest-mpl/pkg-descr b/devel/py-pytest-mpl/pkg-descr
new file mode 100644
index 000000000000..62d429274e51
--- /dev/null
+++ b/devel/py-pytest-mpl/pkg-descr
@@ -0,0 +1,4 @@
+pytest-mpl is a plugin to facilitate image comparison for Matplotlib figures
+in pytest.
+
+WWW: https://github.com/matplotlib/pytest-mpl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208220601.27M61qxg078617>