1 |
commit: 9527f313d1e32b433b8b6fd68c243994c846f176 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 1 18:27:55 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 1 18:30:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9527f313 |
7 |
|
8 |
dev-python/pytest-helpers-namespace: add 2021.3.24, enable py3.10, EAPI=8 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/pytest-helpers-namespace/Manifest | 1 + |
13 |
...pers-namespace-2021.3.24-remove-extra-dep.patch | 48 ++++++++++++++++++++++ |
14 |
.../pytest-helpers-namespace-2021.3.24.ebuild | 41 ++++++++++++++++++ |
15 |
3 files changed, 90 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pytest-helpers-namespace/Manifest b/dev-python/pytest-helpers-namespace/Manifest |
18 |
index 89648fcfe50..0ee533612a2 100644 |
19 |
--- a/dev-python/pytest-helpers-namespace/Manifest |
20 |
+++ b/dev-python/pytest-helpers-namespace/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
+DIST pytest-helpers-namespace-2021.3.24.gh.tar.gz 25881 BLAKE2B d13e82eebf09b4acb1d8fb9d3609f8814a49bfd0df56f23fe6f3fe3fa1508c4f1ac338b3f75e1e97ae90f71cae548dd100548d23cdbaa6c4bdb76cdb6e3d4a41 SHA512 1914427a4805a168d4067cd5db5663d28e3ff680f612e70a169a7efbc6c2c7ba0e2dc74132595aa70e13b651886bd10a6947e56558edf22b871618c967537073 |
23 |
DIST pytest-helpers-namespace-v2019.1.8.tar.gz 10274 BLAKE2B 1d232817e99909738f7f37466ba22fbeadf75f4fbfdd9b61790dd79418bedbce4ee219e5102ee2db1709ba991e323ce6edffc68c4e3a657c58cb628b505de098 SHA512 d5f4db3ece8b0e1719c4d1213a5e07a3c53257b089d3d74f90cf86f21a7951983a95286c7753f5e9486acc7e482d79c2a95d5a7b8eb22e19c7048db99fa3c421 |
24 |
|
25 |
diff --git a/dev-python/pytest-helpers-namespace/files/pytest-helpers-namespace-2021.3.24-remove-extra-dep.patch b/dev-python/pytest-helpers-namespace/files/pytest-helpers-namespace-2021.3.24-remove-extra-dep.patch |
26 |
new file mode 100644 |
27 |
index 00000000000..5bde4bccd53 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pytest-helpers-namespace/files/pytest-helpers-namespace-2021.3.24-remove-extra-dep.patch |
30 |
@@ -0,0 +1,48 @@ |
31 |
+--- a/pyproject.toml |
32 |
++++ b/pyproject.toml |
33 |
+@@ -1,7 +1,3 @@ |
34 |
+ [build-system] |
35 |
+ requires = ["setuptools>=50.3.2", "wheel", "setuptools-declarative-requirements", "setuptools_scm[toml]>=3.4"] |
36 |
+ build-backend = "setuptools.build_meta" |
37 |
+- |
38 |
+-[tool.setuptools_scm] |
39 |
+-write_to = "src/pytest_helpers_namespace/version.py" |
40 |
+-write_to_template = "__version__ = \"{version}\"" |
41 |
+--- a/setup.cfg |
42 |
++++ b/setup.cfg |
43 |
+@@ -1,4 +1,5 @@ |
44 |
+ [metadata] |
45 |
++version = @PV@ |
46 |
+ name = pytest-helpers-namespace |
47 |
+ description = Pytest Helpers Namespace Plugin |
48 |
+ long_description = file: README.rst |
49 |
+@@ -34,21 +35,12 @@ packages = find: |
50 |
+ python_requires = >= 3.5 |
51 |
+ setup_requires = |
52 |
+ setuptools>=50.3.2 |
53 |
+- setuptools_scm[toml]>=3.4 |
54 |
+- setuptools-declarative-requirements |
55 |
+ |
56 |
+ [options.packages.find] |
57 |
+ where = src |
58 |
+ exclude = |
59 |
+ tests |
60 |
+ |
61 |
+-[requirements-files] |
62 |
+-install_requires = requirements/base.txt |
63 |
+-extras_require = |
64 |
+- docs = requirements/docs.txt |
65 |
+- lint = requirements/lint.txt |
66 |
+- tests = requirements/tests.txt |
67 |
+- |
68 |
+ [options.entry_points] |
69 |
+ pytest11 = |
70 |
+ helpers_namespace = pytest_helpers_namespace.plugin |
71 |
+--- a/setup.py |
72 |
++++ b/setup.py |
73 |
+@@ -2,4 +2,4 @@ |
74 |
+ import setuptools |
75 |
+ |
76 |
+ if __name__ == "__main__": |
77 |
+- setuptools.setup(use_scm_version=True) |
78 |
++ setuptools.setup() |
79 |
|
80 |
diff --git a/dev-python/pytest-helpers-namespace/pytest-helpers-namespace-2021.3.24.ebuild b/dev-python/pytest-helpers-namespace/pytest-helpers-namespace-2021.3.24.ebuild |
81 |
new file mode 100644 |
82 |
index 00000000000..68c0ee8e685 |
83 |
--- /dev/null |
84 |
+++ b/dev-python/pytest-helpers-namespace/pytest-helpers-namespace-2021.3.24.ebuild |
85 |
@@ -0,0 +1,41 @@ |
86 |
+# Copyright 1999-2021 Gentoo Authors |
87 |
+# Distributed under the terms of the GNU General Public License v2 |
88 |
+ |
89 |
+EAPI=8 |
90 |
+ |
91 |
+PYTHON_COMPAT=( python3_{8..10} ) |
92 |
+inherit distutils-r1 |
93 |
+ |
94 |
+DESCRIPTION="Provides a helpers pytest namespace" |
95 |
+HOMEPAGE="https://github.com/saltstack/pytest-helpers-namespace" |
96 |
+SRC_URI=" |
97 |
+ https://github.com/saltstack/${PN}/archive/v${PV}.tar.gz |
98 |
+ -> ${P}.gh.tar.gz |
99 |
+" |
100 |
+ |
101 |
+LICENSE="Apache-2.0" |
102 |
+SLOT="0" |
103 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
104 |
+ |
105 |
+RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]" |
106 |
+BDEPEND=" |
107 |
+ test? ( |
108 |
+ dev-python/pytest-forked[${PYTHON_USEDEP}] |
109 |
+ ) |
110 |
+" |
111 |
+ |
112 |
+PATCHES=( |
113 |
+ "${FILESDIR}/${P}-remove-extra-dep.patch" |
114 |
+) |
115 |
+ |
116 |
+distutils_enable_tests pytest |
117 |
+ |
118 |
+python_prepare_all() { |
119 |
+ distutils-r1_python_prepare_all |
120 |
+ sed -e "s/@PV@/${PV}/" -i setup.cfg || die |
121 |
+} |
122 |
+ |
123 |
+python_test() { |
124 |
+ distutils_install_for_testing |
125 |
+ epytest --forked |
126 |
+} |