From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C4DDB158095 for ; Fri, 7 Oct 2022 19:58:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 736ACE09E9; Fri, 7 Oct 2022 19:58:12 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 52C67E09E8 for ; Fri, 7 Oct 2022 19:58:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2D214340CCB for ; Fri, 7 Oct 2022 19:58:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8E266605 for ; Fri, 7 Oct 2022 19:58:09 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1665172647.646fae2fa6825c00143fce1143cf4daeed9a7737.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-mpl/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytest-mpl/Manifest dev-python/pytest-mpl/metadata.xml dev-python/pytest-mpl/pytest-mpl-0.16.1.ebuild X-VCS-Directories: dev-python/pytest-mpl/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 646fae2fa6825c00143fce1143cf4daeed9a7737 X-VCS-Branch: master Date: Fri, 7 Oct 2022 19:58:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 20a77540-a62e-49cc-9f4f-b254624c55f5 X-Archives-Hash: 3d0548a744b1d90f4c4edc0cd8e71bdf commit: 646fae2fa6825c00143fce1143cf4daeed9a7737 Author: Sam James gentoo org> AuthorDate: Fri Oct 7 19:53:52 2022 +0000 Commit: Sam James gentoo org> CommitDate: Fri Oct 7 19:57:27 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=646fae2f dev-python/pytest-mpl: new package, add 0.16.1 Signed-off-by: Sam James gentoo.org> dev-python/pytest-mpl/Manifest | 1 + dev-python/pytest-mpl/metadata.xml | 13 ++++++++ dev-python/pytest-mpl/pytest-mpl-0.16.1.ebuild | 44 ++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) diff --git a/dev-python/pytest-mpl/Manifest b/dev-python/pytest-mpl/Manifest new file mode 100644 index 000000000000..1b363eb582cb --- /dev/null +++ b/dev-python/pytest-mpl/Manifest @@ -0,0 +1 @@ +DIST pytest-mpl-0.16.1.tar.gz 663585 BLAKE2B aad171260a10417aab15e7e55115c2fe02aa33dcf8336634281e1a1dad4d1c5ff08293fd9a67be025ec6cbb18c42bc9eb7ccb86275c0fcc7f4bf33a035fc0927 SHA512 64c1689f1698f9223082bc5c6817a1d4f9b413cb193894c23b1e0302254a6358cb3e354ac92ec47677acf460a41d05b2b527c834fd0fbbde04c070b0af8f46e1 diff --git a/dev-python/pytest-mpl/metadata.xml b/dev-python/pytest-mpl/metadata.xml new file mode 100644 index 000000000000..c9b79fa5f81b --- /dev/null +++ b/dev-python/pytest-mpl/metadata.xml @@ -0,0 +1,13 @@ + + + + + python@gentoo.org + Python + + + + pytest-mpl + matplotlib/pytest-mpl + + diff --git a/dev-python/pytest-mpl/pytest-mpl-0.16.1.ebuild b/dev-python/pytest-mpl/pytest-mpl-0.16.1.ebuild new file mode 100644 index 000000000000..9db1c3e57234 --- /dev/null +++ b/dev-python/pytest-mpl/pytest-mpl-0.16.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) + +inherit distutils-r1 + +DESCRIPTION="Facilitate image comparison for Matplotlib figures" +HOMEPAGE=" + https://pypi.org/project/pytest-mpl/ + https://github.com/matplotlib/pytest-mpl +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/jinja[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] +" + +EPYTEST_DESELECT=( + tests/subtests/test_subtest.py::test_default + tests/subtests/test_subtest.py::test_html_images_only +) + +distutils_enable_tests pytest + +python_test() { + # disable autoloading plugins in nested pytest calls + #local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + # since we disabled autoloading, force loading necessary plugins + #local -x PYTEST_PLUGINS=xdist.plugin,xdist.looponfail,pytest_forked + + epytest +}