From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C02251580E0 for ; Sat, 31 May 2025 05:17:53 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id AA3323430F2 for ; Sat, 31 May 2025 05:17:53 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 35D361104B0; Sat, 31 May 2025 05:17:39 +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)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 27CDA1104A5 for ; Sat, 31 May 2025 05:17:39 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D1FD03430DD for ; Sat, 31 May 2025 05:17:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DBC6F28F8 for ; Sat, 31 May 2025 05:17:35 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1748668210.b7194dc19b47f4656de7971bfdf7949b41b66a7d.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-regressions/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytest-regressions/Manifest dev-python/pytest-regressions/pytest-regressions-2.8.0.ebuild X-VCS-Directories: dev-python/pytest-regressions/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: b7194dc19b47f4656de7971bfdf7949b41b66a7d X-VCS-Branch: master Date: Sat, 31 May 2025 05:17:35 +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: 735cd99e-d49f-4b92-8400-31cdf1a7ad78 X-Archives-Hash: d0b8fba65479f068a4a25b770e0908ae commit: b7194dc19b47f4656de7971bfdf7949b41b66a7d Author: Michał Górny gentoo org> AuthorDate: Sat May 31 04:21:57 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat May 31 05:10:10 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7194dc1 dev-python/pytest-regressions: Bump to 2.8.0 Signed-off-by: Michał Górny gentoo.org> dev-python/pytest-regressions/Manifest | 1 + .../pytest-regressions-2.8.0.ebuild | 68 ++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/dev-python/pytest-regressions/Manifest b/dev-python/pytest-regressions/Manifest index f571d6cd24d5..2f17ee95bb24 100644 --- a/dev-python/pytest-regressions/Manifest +++ b/dev-python/pytest-regressions/Manifest @@ -1 +1,2 @@ DIST pytest_regressions-2.7.0.tar.gz 116270 BLAKE2B 90d589081db352e2acbb58b8b56445ba86c92e4eec1ac588b573b27e979a9d5cbd942b8ba8cf978c9c372364176517e76376c3b33775297df5300fe2ce225bc9 SHA512 b4702850470d03e3f1759b7abda003ff930cfffa9e70c95097778fd4efa634ee62e955f2abbec5e0eaac840c0918b7257b747509c8bf3819af0234a15f80fecd +DIST pytest_regressions-2.8.0.tar.gz 116454 BLAKE2B 3ebe0590ae794a83ea2be5372c318fe9ff16c59b2093ad221961a39f472c35daa0974e192e82cdb100fb20d4a7a24574d6b057854c2246c7f6f97f1fcf016a9e SHA512 dcb7b2aa7e80d59e86f1c6e12cb736fe9ecbf043d61dd462575b5a24b71c88325b13631cdd0052444087b8e61490fd21153867299c19b03dc465d7f9d07cdff9 diff --git a/dev-python/pytest-regressions/pytest-regressions-2.8.0.ebuild b/dev-python/pytest-regressions/pytest-regressions-2.8.0.ebuild new file mode 100644 index 000000000000..2b6e9ebc4cd9 --- /dev/null +++ b/dev-python/pytest-regressions/pytest-regressions-2.8.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..14} pypy3_11 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Easy to use fixtures to write regression tests" +HOMEPAGE=" + https://github.com/ESSS/pytest-regressions/ + https://pypi.org/project/pytest-regressions/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-python/pytest[${PYTHON_USEDEP}] + >=dev-python/pytest-datadir-1.7.0[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest +distutils_enable_sphinx doc dev-python/sphinx-rtd-theme + +python_test() { + local EPYTEST_DESELECT=() + local EPYTEST_IGNORE=() + if ! has_version "dev-python/matplotlib[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + tests/test_image_regression.py::test_image_regression + ) + fi + if ! has_version "dev-python/numpy[${PYTHON_USEDEP}]"; then + EPYTEST_IGNORE+=( + tests/test_ndarrays_regression.py + ) + fi + if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + tests/test_filenames.py::test_foo + tests/test_filenames.py::TestClass::test_foo + tests/test_filenames.py::TestClassWithIgnoredName::test_foo + ) + EPYTEST_IGNORE+=( + tests/test_dataframe_regression.py + tests/test_num_regression.py + ) + fi + if ! has_version "dev-python/pillow[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + tests/test_image_regression.py + ) + fi + + if [[ ${EPYTHON} == python3.14* ]] ; then + EPYTEST_DESELECT+=( + # Sensitive to warnings + tests/test_data_regression.py::test_regen_all + ) + fi + + epytest +}