1 |
commit: aa09f71c879fe132b8148b7ce2e500d8914094da |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 11 13:35:16 2021 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 11 13:40:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa09f71c |
7 |
|
8 |
dev-python/pytest-verbose-parametrize: initial import |
9 |
|
10 |
The test suite doesn't work properly (even when run manually) but fails |
11 |
in exactly the same way for all three supported Python implementations. |
12 |
|
13 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
14 |
|
15 |
dev-python/pytest-verbose-parametrize/Manifest | 1 + |
16 |
...verbose-parametrize-1.7.0_collections-abc.patch | 8 +++++ |
17 |
dev-python/pytest-verbose-parametrize/metadata.xml | 13 ++++++++ |
18 |
.../pytest-verbose-parametrize-1.7.0.ebuild | 35 ++++++++++++++++++++++ |
19 |
4 files changed, 57 insertions(+) |
20 |
|
21 |
diff --git a/dev-python/pytest-verbose-parametrize/Manifest b/dev-python/pytest-verbose-parametrize/Manifest |
22 |
new file mode 100644 |
23 |
index 00000000000..c5d68a72892 |
24 |
--- /dev/null |
25 |
+++ b/dev-python/pytest-verbose-parametrize/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST pytest-verbose-parametrize-1.7.0.tar.gz 12301 BLAKE2B 908d8c9d82861783931dc25c6b522e13f252e4b04e01a2f6a0e646cd63720816242ef143041abf0aa6b67fb574d5f84d05029edd11e589728b0e5b63f92f898e SHA512 ac81cdf002d60b4af916c4beb4c832c9c39dc9dcfa3eea7385b093f9ea18391cbf968a4e908abdb23523a7cb1e294dce2017083414e61eef6762f157319e2cf4 |
28 |
|
29 |
diff --git a/dev-python/pytest-verbose-parametrize/files/pytest-verbose-parametrize-1.7.0_collections-abc.patch b/dev-python/pytest-verbose-parametrize/files/pytest-verbose-parametrize-1.7.0_collections-abc.patch |
30 |
new file mode 100644 |
31 |
index 00000000000..f4b0720c360 |
32 |
--- /dev/null |
33 |
+++ b/dev-python/pytest-verbose-parametrize/files/pytest-verbose-parametrize-1.7.0_collections-abc.patch |
34 |
@@ -0,0 +1,8 @@ |
35 |
+--- a/pytest_verbose_parametrize.py |
36 |
++++ b/pytest_verbose_parametrize.py |
37 |
+@@ -1,4 +1,4 @@ |
38 |
+-from collections import Iterable |
39 |
++from collections.abc import Iterable |
40 |
+ from six import string_types, text_type |
41 |
+ |
42 |
+ |
43 |
|
44 |
diff --git a/dev-python/pytest-verbose-parametrize/metadata.xml b/dev-python/pytest-verbose-parametrize/metadata.xml |
45 |
new file mode 100644 |
46 |
index 00000000000..3f5893e2c50 |
47 |
--- /dev/null |
48 |
+++ b/dev-python/pytest-verbose-parametrize/metadata.xml |
49 |
@@ -0,0 +1,13 @@ |
50 |
+<?xml version="1.0" encoding="UTF-8"?> |
51 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
52 |
+<pkgmetadata> |
53 |
+ <maintainer type="person"> |
54 |
+ <email>marecki@g.o</email> |
55 |
+ <name>Marek Szuba</name> |
56 |
+ </maintainer> |
57 |
+ <stabilize-allarches/> |
58 |
+ <upstream> |
59 |
+ <remote-id type="github">man-group/pytest-plugins</remote-id> |
60 |
+ <remote-id type="pypi">pytest-verbose-parametrize</remote-id> |
61 |
+ </upstream> |
62 |
+</pkgmetadata> |
63 |
|
64 |
diff --git a/dev-python/pytest-verbose-parametrize/pytest-verbose-parametrize-1.7.0.ebuild b/dev-python/pytest-verbose-parametrize/pytest-verbose-parametrize-1.7.0.ebuild |
65 |
new file mode 100644 |
66 |
index 00000000000..eca528e9161 |
67 |
--- /dev/null |
68 |
+++ b/dev-python/pytest-verbose-parametrize/pytest-verbose-parametrize-1.7.0.ebuild |
69 |
@@ -0,0 +1,35 @@ |
70 |
+# Copyright 1999-2021 Gentoo Authors |
71 |
+# Distributed under the terms of the GNU General Public License v2 |
72 |
+ |
73 |
+EAPI=7 |
74 |
+ |
75 |
+PYTHON_COMPAT=( python3_{8..10} ) |
76 |
+ |
77 |
+inherit distutils-r1 |
78 |
+ |
79 |
+DESCRIPTION="More descriptive parametrized-test IDs for py.test" |
80 |
+HOMEPAGE="https://github.com/man-group/pytest-plugins https://pypi.org/project/pytest-verbose-parametrize/" |
81 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
82 |
+ |
83 |
+LICENSE="MIT" |
84 |
+SLOT="0" |
85 |
+KEYWORDS="~amd64" |
86 |
+ |
87 |
+# The test suite is borked, some of the tests are extremely sensitive to Python |
88 |
+# verbosity level whereas others act differently depending on whether the package |
89 |
+# has previously been installed or not. |
90 |
+RESTRICT="test" |
91 |
+ |
92 |
+RDEPEND="dev-python/pytest[${PYTHON_USEDEP}] |
93 |
+ dev-python/six[${PYTHON_USEDEP}]" |
94 |
+BDEPEND="test? ( |
95 |
+ dev-python/coverage[${PYTHON_USEDEP}] |
96 |
+ dev-python/mock[${PYTHON_USEDEP}] |
97 |
+ dev-python/pytest-virtualenv[${PYTHON_USEDEP}] |
98 |
+)" |
99 |
+ |
100 |
+PATCHES=( |
101 |
+ "${FILESDIR}"/${PN}-1.7.0_collections-abc.patch |
102 |
+) |
103 |
+ |
104 |
+distutils_enable_tests pytest |