1 |
commit: d60b2ff1e30f2cf31c8879e9854e0aefd1d1922b |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Jul 5 01:20:16 2021 +0000 |
4 |
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me> |
5 |
CommitDate: Mon Jul 5 01:20:16 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d60b2ff1 |
7 |
|
8 |
dev-python/hypercorn: ebuild maintenance |
9 |
|
10 |
Closes: https://bugs.gentoo.org/784044 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
13 |
|
14 |
.../hypercorn/files/hypercorn-0.11.2-no-coverage.patch | 9 +++++++++ |
15 |
dev-python/hypercorn/hypercorn-0.11.2.ebuild | 18 ++++++------------ |
16 |
2 files changed, 15 insertions(+), 12 deletions(-) |
17 |
|
18 |
diff --git a/dev-python/hypercorn/files/hypercorn-0.11.2-no-coverage.patch b/dev-python/hypercorn/files/hypercorn-0.11.2-no-coverage.patch |
19 |
new file mode 100644 |
20 |
index 000000000..8c3f4210a |
21 |
--- /dev/null |
22 |
+++ b/dev-python/hypercorn/files/hypercorn-0.11.2-no-coverage.patch |
23 |
@@ -0,0 +1,9 @@ |
24 |
+--- a/setup.cfg |
25 |
++++ b/setup.cfg |
26 |
+@@ -43,5 +43,5 @@ |
27 |
+ ignore_missing_imports = True |
28 |
+ |
29 |
+ [tool:pytest] |
30 |
+-addopts = --no-cov-on-fail --showlocals |
31 |
++addopts = --showlocals |
32 |
+ testpaths = tests |
33 |
|
34 |
diff --git a/dev-python/hypercorn/hypercorn-0.11.2.ebuild b/dev-python/hypercorn/hypercorn-0.11.2.ebuild |
35 |
index 56221e820..181ee3e08 100644 |
36 |
--- a/dev-python/hypercorn/hypercorn-0.11.2.ebuild |
37 |
+++ b/dev-python/hypercorn/hypercorn-0.11.2.ebuild |
38 |
@@ -3,20 +3,20 @@ |
39 |
|
40 |
EAPI=7 |
41 |
|
42 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
43 |
DISTUTILS_USE_SETUPTOOLS=rdepend |
44 |
- |
45 |
DOCS_BUILDER="sphinx" |
46 |
DOCS_DEPEND=" |
47 |
dev-python/sphinxcontrib-napoleon |
48 |
dev-python/pydata-sphinx-theme |
49 |
" |
50 |
DOCS_DIR="${S}/docs" |
51 |
+PYTHON_COMPAT=( python3_{8..9} ) |
52 |
|
53 |
inherit distutils-r1 docs optfeature |
54 |
|
55 |
DESCRIPTION="ASGI Server based on Hyper libraries and inspired by Gunicorn" |
56 |
HOMEPAGE=" |
57 |
+ https://pgjones.gitlab.io/hypercorn |
58 |
https://gitlab.com/pgjones/hypercorn |
59 |
https://github.com/pgjones/hypercorn |
60 |
https://pypi.org/project/Hypercorn |
61 |
@@ -33,29 +33,23 @@ RDEPEND=" |
62 |
dev-python/priority[${PYTHON_USEDEP}] |
63 |
dev-python/toml[${PYTHON_USEDEP}] |
64 |
>=dev-python/wsproto-0.14.0[${PYTHON_USEDEP}] |
65 |
- $(python_gen_cond_dep 'dev-python/typing-extensions[${PYTHON_USEDEP}]' python3_7) |
66 |
" |
67 |
BDEPEND=" |
68 |
test? ( |
69 |
dev-python/hypothesis[${PYTHON_USEDEP}] |
70 |
>=dev-python/mock-4[${PYTHON_USEDEP}] |
71 |
- <dev-python/pytest-6[${PYTHON_USEDEP}] |
72 |
dev-python/pytest-asyncio[${PYTHON_USEDEP}] |
73 |
dev-python/pytest-trio[${PYTHON_USEDEP}] |
74 |
dev-python/trio[${PYTHON_USEDEP}] |
75 |
) |
76 |
" |
77 |
|
78 |
-distutils_enable_tests pytest |
79 |
- |
80 |
-python_prepare_all() { |
81 |
- # do not install LICENSE to /usr/ |
82 |
- sed -i -e '/data_files/d' setup.py || die |
83 |
+PATCHES=( "${FILESDIR}/${P}-no-coverage.patch" ) |
84 |
|
85 |
- # Remove pytest-cov dep |
86 |
- sed -i -e '/addopts/d' setup.cfg || die |
87 |
+distutils_enable_tests pytest |
88 |
|
89 |
- distutils-r1_python_prepare_all |
90 |
+python_test() { |
91 |
+ epytest -vv --deselect tests/trio/test_keep_alive.py::test_http1_keep_alive_pre_request || die |
92 |
} |
93 |
|
94 |
pkg_postinst() { |