1 |
commit: fb5265600bc89fcb4c79fc4195550bd380d85a77 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 4 21:36:04 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 4 21:46:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb526560 |
7 |
|
8 |
dev-python/pytest-regressions: add 2.3.0 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/pytest-regressions/Manifest | 1 + |
13 |
.../pytest-regressions-2.3.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 e9d8ef35a55f..acf371ff2dc5 100644 |
18 |
--- a/dev-python/pytest-regressions/Manifest |
19 |
+++ b/dev-python/pytest-regressions/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pytest-regressions-2.2.0.tar.gz 98162 BLAKE2B d87b331a35a988e8da6a6c827b594eea6ac64adb17a5b4a054ff0e9526d8d0153d84e0f59ffc805f76a96c1b100961ae12d05849fe2dd35ff4c18f42e235b3b0 SHA512 a4c91590f6e3825eef97da4fb21c1b852b68b60d6dc61ca9e1581737c0cb02831b091ae215aa16a5c50d06d413dabf243de4e98ebd01ce2af7fd2ddbaedec3fb |
22 |
+DIST pytest-regressions-2.3.0.tar.gz 109181 BLAKE2B 1b47d437c46c134b76b724859b6ebdca6aabee9932a7d63b64f3ee1561a2d84dca9c09b5d7fe7847af97814570cfa85a1eb26ef6c0e6bc14f9ce5684cca0874d SHA512 6013f468c522711eade949d814917ffcd77ef2f3505926d9529a8cfea6c8ee33b5520fa48369160767efdd70e6c54230fc8c77a4c5105c783339a3d7fca93bf7 |
23 |
|
24 |
diff --git a/dev-python/pytest-regressions/pytest-regressions-2.3.0.ebuild b/dev-python/pytest-regressions/pytest-regressions-2.3.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..8a4c7910c67a |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pytest-regressions/pytest-regressions-2.3.0.ebuild |
29 |
@@ -0,0 +1,43 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..10} ) |
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 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~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 |
+} |