Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-regressions/
Date: Thu, 28 Jan 2021 08:35:32
Message-Id: 1611822920.31eb3aec5615a80b1fcbf8ad15b36190b02f3e31.mgorny@gentoo
1 commit: 31eb3aec5615a80b1fcbf8ad15b36190b02f3e31
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 28 07:57:29 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 28 08:35:20 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31eb3aec
7
8 dev-python/pytest-regressions: Bump to 2.2.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pytest-regressions/Manifest | 1 +
13 .../pytest-regressions-2.2.0.ebuild | 43 ++++++++++++++++++++++
14 2 files changed, 44 insertions(+)
15
16 diff --git a/dev-python/pytest-regressions/Manifest b/dev-python/pytest-regressions/Manifest
17 index 59a56456553..b4562fbb63b 100644
18 --- a/dev-python/pytest-regressions/Manifest
19 +++ b/dev-python/pytest-regressions/Manifest
20 @@ -1 +1,2 @@
21 DIST pytest-regressions-2.1.1.tar.gz 97596 BLAKE2B a0c62ec1a0c1f66d0539780008a99bcf7fb0f9bd6d73198154c9a1ebe9830679d4fb57f989a2ac03c19cce7ac617db26c07857581d2bf753fbe18358a9edcecc SHA512 488bf42502ad18995c1f1e7f32677c500d14869cc0e2655400610bf18b73f48538025c08fc23758737ebb92deba61b130a1f6f82a75f71d93f03181ccd74a9c4
22 +DIST pytest-regressions-2.2.0.tar.gz 98162 BLAKE2B d87b331a35a988e8da6a6c827b594eea6ac64adb17a5b4a054ff0e9526d8d0153d84e0f59ffc805f76a96c1b100961ae12d05849fe2dd35ff4c18f42e235b3b0 SHA512 a4c91590f6e3825eef97da4fb21c1b852b68b60d6dc61ca9e1581737c0cb02831b091ae215aa16a5c50d06d413dabf243de4e98ebd01ce2af7fd2ddbaedec3fb
23
24 diff --git a/dev-python/pytest-regressions/pytest-regressions-2.2.0.ebuild b/dev-python/pytest-regressions/pytest-regressions-2.2.0.ebuild
25 new file mode 100644
26 index 00000000000..3e11d5accfd
27 --- /dev/null
28 +++ b/dev-python/pytest-regressions/pytest-regressions-2.2.0.ebuild
29 @@ -0,0 +1,43 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{7..9} )
36 +
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="Easy to use fixtures to write regression tests"
40 +HOMEPAGE="https://github.com/ESSS/pytest-regressions"
41 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
42 +
43 +LICENSE="MIT"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +
47 +RDEPEND="
48 + dev-python/pytest[${PYTHON_USEDEP}]
49 + dev-python/pytest-datadir[${PYTHON_USEDEP}]
50 + dev-python/pyyaml[${PYTHON_USEDEP}]
51 +"
52 +
53 +BDEPEND="
54 + test? (
55 + dev-python/matplotlib[${PYTHON_USEDEP}]
56 + dev-python/numpy[${PYTHON_USEDEP}]
57 + dev-python/pandas[${PYTHON_USEDEP}]
58 + dev-python/pillow[${PYTHON_USEDEP}]
59 + dev-python/tox[${PYTHON_USEDEP}]
60 + )"
61 +
62 +distutils_enable_tests --install pytest
63 +distutils_enable_sphinx doc dev-python/sphinx_rtd_theme
64 +
65 +python_prepare_all() {
66 + # Does not work with the panda's version in ::gentoo
67 + sed -i -e 's:test_non_numeric_data:_&:' \
68 + -e 's:test_non_pandas_dataframe:_&:' \
69 + tests/test_dataframe_regression.py || die
70 +
71 + distutils-r1_python_prepare_all
72 +}