commit: 1723109a53660bbdc417ec9e8ecb58449195a0a6 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Jan 10 20:03:59 2025 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Jan 10 20:43:51 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1723109a
dev-python/pytest-regressions: Bump to 2.7.0 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/pytest-regressions/Manifest | 1 + .../pytest-regressions-2.7.0.ebuild | 61 ++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/dev-python/pytest-regressions/Manifest b/dev-python/pytest-regressions/Manifest index 1184b602a6e0..f9b834b83b95 100644 --- a/dev-python/pytest-regressions/Manifest +++ b/dev-python/pytest-regressions/Manifest @@ -1 +1,2 @@ DIST pytest_regressions-2.6.0.tar.gz 116150 BLAKE2B c6a5cfec055ef5a2ed0e615aff5211083633a542d08f48af6fdfd453c9a9c2992bb47e0d8a634ded1d1a753ae362dcf3a84db26f07a3d169635b286ea6af8760 SHA512 57248a851179c0f0cb840618cc529289b80d94a537b9e49f4a322405c92f8fd0baadb67472a577fe5fad2d3c22e44339663e86b1005cc831bb26e4b380d51fb1 +DIST pytest_regressions-2.7.0.tar.gz 116270 BLAKE2B 90d589081db352e2acbb58b8b56445ba86c92e4eec1ac588b573b27e979a9d5cbd942b8ba8cf978c9c372364176517e76376c3b33775297df5300fe2ce225bc9 SHA512 b4702850470d03e3f1759b7abda003ff930cfffa9e70c95097778fd4efa634ee62e955f2abbec5e0eaac840c0918b7257b747509c8bf3819af0234a15f80fecd diff --git a/dev-python/pytest-regressions/pytest-regressions-2.7.0.ebuild b/dev-python/pytest-regressions/pytest-regressions-2.7.0.ebuild new file mode 100644 index 000000000000..4df817581afd --- /dev/null +++ b/dev-python/pytest-regressions/pytest-regressions-2.7.0.ebuild @@ -0,0 +1,61 @@ +# 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_{10..13} pypy3 ) + +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[${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 + + epytest +}