1 |
commit: a6009517c78c301912070be4e11a70c1cbb64aa9 |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Sat Jan 8 21:59:07 2022 +0000 |
4 |
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
5 |
CommitDate: Sun Jan 9 00:01:11 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a6009517 |
7 |
|
8 |
dev-python/pytest-steps: initial import |
9 |
|
10 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
|
12 |
dev-python/pytest-steps/Manifest | 1 + |
13 |
dev-python/pytest-steps/metadata.xml | 17 ++++++++ |
14 |
dev-python/pytest-steps/pytest-steps-1.8.0.ebuild | 48 +++++++++++++++++++++++ |
15 |
3 files changed, 66 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pytest-steps/Manifest b/dev-python/pytest-steps/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000..371f81725 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/pytest-steps/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST pytest-steps-1.8.0.tar.gz 77136 BLAKE2B 7066cb7b586db6cc12fdc0f0da61c3207c32b9eef4dd667694d4db81fde849632dadf679bf44769cb307fcf5ab54b0878a9ad571c958f53dcb1ce6217c9a1651 SHA512 a8e159ba322c7d85dad1cc063781d79fec5a3ae3b135f341db2a254034fdbd004495bac6e5252f192771d3b34638a1abf24492594a612754d50be2d4a21e236e |
24 |
|
25 |
diff --git a/dev-python/pytest-steps/metadata.xml b/dev-python/pytest-steps/metadata.xml |
26 |
new file mode 100644 |
27 |
index 000000000..e8349094a |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pytest-steps/metadata.xml |
30 |
@@ -0,0 +1,17 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="person"> |
35 |
+ <email>cyber+gentoo@×××××.in</email> |
36 |
+ <name>Anna</name> |
37 |
+ </maintainer> |
38 |
+ <upstream> |
39 |
+ <remote-id type="pypi">pytest-steps</remote-id> |
40 |
+ <remote-id type="github">smarie/python-pytest-steps</remote-id> |
41 |
+ <doc>https://smarie.github.io/python-pytest-steps/</doc> |
42 |
+ <maintainer> |
43 |
+ <email>sylvain.marie@××××××××××××××××××.com</email> |
44 |
+ <name>Sylvain Marie</name> |
45 |
+ </maintainer> |
46 |
+ </upstream> |
47 |
+</pkgmetadata> |
48 |
|
49 |
diff --git a/dev-python/pytest-steps/pytest-steps-1.8.0.ebuild b/dev-python/pytest-steps/pytest-steps-1.8.0.ebuild |
50 |
new file mode 100644 |
51 |
index 000000000..5140e90f1 |
52 |
--- /dev/null |
53 |
+++ b/dev-python/pytest-steps/pytest-steps-1.8.0.ebuild |
54 |
@@ -0,0 +1,48 @@ |
55 |
+# Copyright 2022 Gentoo Authors |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+ |
58 |
+EAPI=8 |
59 |
+ |
60 |
+PYTHON_COMPAT=( python3_{8..10} ) |
61 |
+DOCS_BUILDER="mkdocs" |
62 |
+DOCS_DEPEND="dev-python/mkdocs-material" |
63 |
+DOCS_DIR="docs" |
64 |
+inherit distutils-r1 docs |
65 |
+ |
66 |
+DESCRIPTION="Create step-wise / incremental tests in pytest" |
67 |
+HOMEPAGE="https://pypi.org/project/pytest-steps/ https://github.com/smarie/python-pytest-steps" |
68 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
69 |
+ |
70 |
+LICENSE="BSD" |
71 |
+SLOT="0" |
72 |
+KEYWORDS="~amd64" |
73 |
+ |
74 |
+RDEPEND=" |
75 |
+ >=dev-python/makefun-1.5[${PYTHON_USEDEP}] |
76 |
+ dev-python/wrapt[${PYTHON_USEDEP}] |
77 |
+" |
78 |
+BDEPEND=" |
79 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
80 |
+ test? ( |
81 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
82 |
+ dev-python/pandas[${PYTHON_USEDEP}] |
83 |
+ dev-python/pytest-cases[${PYTHON_USEDEP}] |
84 |
+ dev-python/pytest-harvest[${PYTHON_USEDEP}] |
85 |
+ dev-python/tabulate[${PYTHON_USEDEP}] |
86 |
+ ) |
87 |
+" |
88 |
+ |
89 |
+distutils_enable_tests pytest |
90 |
+ |
91 |
+python_prepare_all() { |
92 |
+ sed "/pytest-runner/d" -i setup.cfg || die |
93 |
+ distutils-r1_python_prepare_all |
94 |
+} |
95 |
+ |
96 |
+python_compile_all() { |
97 |
+ docs_compile |
98 |
+} |
99 |
+ |
100 |
+python_test() { |
101 |
+ epytest pytest_steps/tests --doctest-modules |
102 |
+} |