1 |
commit: c09a2622f9ea123899e7c94811279a41af146ae6 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 31 11:17:56 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 31 11:20:05 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c09a2622 |
7 |
|
8 |
dev-python/pytest-httpserver: new package, add 1.0.4 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/795165 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
dev-python/pytest-httpserver/Manifest | 1 + |
14 |
dev-python/pytest-httpserver/metadata.xml | 13 ++++++++ |
15 |
.../pytest-httpserver-1.0.4.ebuild | 35 ++++++++++++++++++++++ |
16 |
3 files changed, 49 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/pytest-httpserver/Manifest b/dev-python/pytest-httpserver/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000000..817f1cc47e15 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/pytest-httpserver/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST pytest-httpserver-1.0.4.gh.tar.gz 78911 BLAKE2B 425f72438797b55a84662f580dd9bfc1d6dd8a0513587e72b6e1de7e669eee75c777fdd6c2cfcbc92273737dd47568b48a22f12e8a40952f82a599f30705a604 SHA512 e80754910117736fd172d7bd5e5fc41721fab8adc705b72f0ee4cd866c878ed267ad3819645fd567e3af2c9e53deecb3749f1a873d72ff9e234c4fdd7f7cabea |
25 |
|
26 |
diff --git a/dev-python/pytest-httpserver/metadata.xml b/dev-python/pytest-httpserver/metadata.xml |
27 |
new file mode 100644 |
28 |
index 000000000000..7c1d1a182b30 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pytest-httpserver/metadata.xml |
31 |
@@ -0,0 +1,13 @@ |
32 |
+<?xml version="1.0" encoding="UTF-8"?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+<pkgmetadata> |
35 |
+ <maintainer type="project"> |
36 |
+ <email>python@g.o</email> |
37 |
+ <name>Python</name> |
38 |
+ </maintainer> |
39 |
+ <stabilize-allarches/> |
40 |
+ <upstream> |
41 |
+ <remote-id type="pypi">pytest-httpserver</remote-id> |
42 |
+ <remote-id type="github">csernazs/pytest-httpserver</remote-id> |
43 |
+ </upstream> |
44 |
+</pkgmetadata> |
45 |
|
46 |
diff --git a/dev-python/pytest-httpserver/pytest-httpserver-1.0.4.ebuild b/dev-python/pytest-httpserver/pytest-httpserver-1.0.4.ebuild |
47 |
new file mode 100644 |
48 |
index 000000000000..73fe95f10f4b |
49 |
--- /dev/null |
50 |
+++ b/dev-python/pytest-httpserver/pytest-httpserver-1.0.4.ebuild |
51 |
@@ -0,0 +1,35 @@ |
52 |
+# Copyright 1999-2022 Gentoo Authors |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI=8 |
56 |
+ |
57 |
+DISTUTILS_USE_PEP517=poetry |
58 |
+PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
59 |
+ |
60 |
+inherit distutils-r1 |
61 |
+ |
62 |
+DESCRIPTION="HTTP server for pytest to test HTTP clients" |
63 |
+HOMEPAGE="https://github.com/csernazs/pytest-httpserver" |
64 |
+SRC_URI="https://github.com/csernazs/pytest-httpserver/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" |
65 |
+ |
66 |
+LICENSE="MIT" |
67 |
+SLOT="0" |
68 |
+KEYWORDS="~amd64" |
69 |
+ |
70 |
+BDEPEND=" |
71 |
+ test? ( |
72 |
+ dev-python/requests[${PYTHON_USEDEP}] |
73 |
+ ) |
74 |
+" |
75 |
+ |
76 |
+distutils_enable_tests pytest |
77 |
+ |
78 |
+python_prepare_all() { |
79 |
+ sed -i -e '/tests\//d' pyproject.toml || die |
80 |
+ |
81 |
+ distutils-r1_python_prepare_all |
82 |
+} |
83 |
+ |
84 |
+python_test() { |
85 |
+ epytest -p no:localserver |
86 |
+} |