1 |
commit: 2a3d27c98ca429625ab6e7eac0f0b0f9fc124581 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Tue Apr 28 17:23:14 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Tue Apr 28 17:23:14 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2a3d27c9 |
7 |
|
8 |
dev-python/pytest-toolbox: Numerous useful plugins for pytest |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
12 |
|
13 |
dev-python/pytest-toolbox/Manifest | 1 + |
14 |
dev-python/pytest-toolbox/metadata.xml | 13 +++++++ |
15 |
.../pytest-toolbox/pytest-toolbox-0.4.ebuild | 41 ++++++++++++++++++++++ |
16 |
3 files changed, 55 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/pytest-toolbox/Manifest b/dev-python/pytest-toolbox/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..2bb1bbe |
21 |
--- /dev/null |
22 |
+++ b/dev-python/pytest-toolbox/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST pytest-toolbox-0.4.tar.gz 8594 BLAKE2B fb1f19513e9e4b191c3eb995cc5e9445bc9f19affef87350d925c5465210c4de945b91120f86664c1dcf02a638595a7725cf88e3244e377ae77558c70d65643a SHA512 ed27700ff77cd607be808142cc310cd2b7461e55b3f8352d304ef8ca6c5e6c060c67a63238a1025407868ab8e229c4a16eaaa56aa75000159762001accb67752 |
25 |
|
26 |
diff --git a/dev-python/pytest-toolbox/metadata.xml b/dev-python/pytest-toolbox/metadata.xml |
27 |
new file mode 100644 |
28 |
index 0000000..2bea565 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pytest-toolbox/metadata.xml |
31 |
@@ -0,0 +1,13 @@ |
32 |
+<?xml version="1.0" encoding="UTF-8"?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+ |
35 |
+<pkgmetadata> |
36 |
+ <maintainer type="person"> |
37 |
+ <email>andrewammerlaan@××××××.net</email> |
38 |
+ <name>Andrew Ammerlaan</name> |
39 |
+ </maintainer> |
40 |
+ <upstream> |
41 |
+ <remote-id type="github">samuelcolvin/pytest-toolbox</remote-id> |
42 |
+ <remote-id type="pypi">pytest-toolbox</remote-id> |
43 |
+ </upstream> |
44 |
+</pkgmetadata> |
45 |
|
46 |
diff --git a/dev-python/pytest-toolbox/pytest-toolbox-0.4.ebuild b/dev-python/pytest-toolbox/pytest-toolbox-0.4.ebuild |
47 |
new file mode 100644 |
48 |
index 0000000..8a85945 |
49 |
--- /dev/null |
50 |
+++ b/dev-python/pytest-toolbox/pytest-toolbox-0.4.ebuild |
51 |
@@ -0,0 +1,41 @@ |
52 |
+# Copyright 1999-2020 Gentoo Authors |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI=7 |
56 |
+ |
57 |
+PYTHON_COMPAT=( python3_{6,7} ) |
58 |
+ |
59 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
60 |
+ |
61 |
+inherit distutils-r1 |
62 |
+ |
63 |
+DESCRIPTION="Numerous useful plugins for pytest" |
64 |
+HOMEPAGE="https://github.com/samuelcolvin/pytest-toolbox" |
65 |
+SRC_URI="https://github.com/samuelcolvin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
66 |
+ |
67 |
+LICENSE="MIT" |
68 |
+KEYWORDS="~amd64 ~x86" |
69 |
+SLOT="0" |
70 |
+ |
71 |
+distutils_enable_tests pytest |
72 |
+ |
73 |
+DEPEND="test? ( |
74 |
+ dev-python/isort[${PYTHON_USEDEP}] |
75 |
+ dev-python/pydantic[${PYTHON_USEDEP}] |
76 |
+ dev-python/pytest-isort[${PYTHON_USEDEP}] |
77 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
78 |
+)" |
79 |
+ |
80 |
+RDEPEND=" |
81 |
+ >=dev-python/pytest-3.5.0[${PYTHON_USEDEP}] |
82 |
+ <=dev-python/pytest-5[${PYTHON_USEDEP}] |
83 |
+" |
84 |
+ |
85 |
+python_prepare_all() { |
86 |
+ # pytest.warning_types.PytestAssertRewriteWarning: asserting the value None, please use "assert is None" |
87 |
+ sed -i -e 's:test_is_uuid_false:_&:' \ |
88 |
+ -e 's:test_any_int_false:_&:' \ |
89 |
+ tests/test_comparison.py || die |
90 |
+ |
91 |
+ distutils-r1_python_prepare_all |
92 |
+} |