1 |
commit: 320b8fba60f8469b023f3291ce56f3491982f1ef |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 1 11:31:09 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 1 11:40:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=320b8fba |
7 |
|
8 |
dev-python/aiohttp: Bump to 3.8.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/aiohttp/Manifest | 1 + |
13 |
dev-python/aiohttp/aiohttp-3.8.0.ebuild | 94 ++++++++++++++++++++++ |
14 |
.../aiohttp/files/aiohttp-3.8.0-examples.patch | 27 +++++++ |
15 |
3 files changed, 122 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/aiohttp/Manifest b/dev-python/aiohttp/Manifest |
18 |
index c5a16a92aa4..8ee6cae8dde 100644 |
19 |
--- a/dev-python/aiohttp/Manifest |
20 |
+++ b/dev-python/aiohttp/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST aiohttp-3.7.4.tar.gz 1114533 BLAKE2B dcae3e66e13df8264d731a3ca65b4718feca8d0e6e1baeb6608dcb9bfb4bd4baaed6bd34297ed5ece78d01189bf9a0b9860845cae4e2b93cc2ba463cc35cfb77 SHA512 66fcc837b388020dc998cbaa2db31e48ecec75bcfaa8af9108e2ea265588dafa5684ca96a8fe3ad6759b22e09a4ae6d4efd8653fb76126eccdc826c15cbbe2e6 |
23 |
+DIST aiohttp-3.8.0.tar.gz 7323268 BLAKE2B e3d8f6ec7c4b2de685a261171bc8e29db82b5b4677d0d4d0b103898c71184deda700f4859fff49746ace3079f09714c39d06c7d837cdc7fb26c8ebc4b29da915 SHA512 beb711812ccaab6d820c39e663e4aaba9106e270ab28ccdb8f35b74bc68509876dc30061f3df390e514e6ff8d24ede2e77e3355986ca2c5ee860eba940d72f5b |
24 |
|
25 |
diff --git a/dev-python/aiohttp/aiohttp-3.8.0.ebuild b/dev-python/aiohttp/aiohttp-3.8.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..a5d3ec99226 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/aiohttp/aiohttp-3.8.0.ebuild |
30 |
@@ -0,0 +1,94 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
37 |
+ |
38 |
+inherit distutils-r1 multiprocessing |
39 |
+ |
40 |
+DESCRIPTION="http client/server for asyncio" |
41 |
+HOMEPAGE=" |
42 |
+ https://pypi.org/project/aiohttp/ |
43 |
+ https://github.com/aio-libs/aiohttp/" |
44 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="Apache-2.0" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ app-arch/brotli[python,${PYTHON_USEDEP}] |
52 |
+ >=dev-python/aiosignal-1.1.2[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/async_timeout-4.0.0_alpha3[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/attrs-17.3.0[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/charset_normalizer-2.0[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/frozenlist-1.1.1[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/multidict-4.5.0[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/yarl-1.0[${PYTHON_USEDEP}] |
59 |
+ $(python_gen_cond_dep ' |
60 |
+ >=dev-python/pypy3-7.3.6 |
61 |
+ ' pypy3) |
62 |
+" |
63 |
+BDEPEND=" |
64 |
+ test? ( |
65 |
+ app-arch/brotli[python,${PYTHON_USEDEP}] |
66 |
+ dev-python/async_generator[${PYTHON_USEDEP}] |
67 |
+ dev-python/freezegun[${PYTHON_USEDEP}] |
68 |
+ www-servers/gunicorn[${PYTHON_USEDEP}] |
69 |
+ dev-python/pytest-forked[${PYTHON_USEDEP}] |
70 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
71 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
72 |
+ dev-python/re-assert[${PYTHON_USEDEP}] |
73 |
+ dev-python/trustme[${PYTHON_USEDEP}] |
74 |
+ ) |
75 |
+" |
76 |
+ |
77 |
+DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst ) |
78 |
+ |
79 |
+distutils_enable_tests pytest |
80 |
+distutils_enable_sphinx docs \ |
81 |
+ '>=dev-python/alabaster-0.6.2' \ |
82 |
+ 'dev-python/sphinxcontrib-asyncio' \ |
83 |
+ 'dev-python/sphinxcontrib-blockdiag' \ |
84 |
+ 'dev-python/sphinxcontrib-newsfeed' \ |
85 |
+ 'dev-python/sphinxcontrib-spelling' \ |
86 |
+ 'dev-python/sphinx' \ |
87 |
+ 'dev-python/sphinx-aiohttp-theme' |
88 |
+ |
89 |
+# TODO: re-cythonize modules? |
90 |
+ |
91 |
+src_prepare() { |
92 |
+ local PATCHES=( |
93 |
+ "${FILESDIR}"/${P}-examples.patch |
94 |
+ ) |
95 |
+ |
96 |
+ # xfail_strict fails on py3.10 |
97 |
+ sed -i -e '/--cov/d' -e '/xfail_strict/d' setup.cfg || die |
98 |
+ distutils-r1_src_prepare |
99 |
+} |
100 |
+ |
101 |
+python_test() { |
102 |
+ local EPYTEST_IGNORE=( |
103 |
+ # proxy is not packaged |
104 |
+ tests/test_proxy_functional.py |
105 |
+ ) |
106 |
+ |
107 |
+ local EPYTEST_DESELECT=( |
108 |
+ # runtime warnings |
109 |
+ 'tests/test_client_functional.py::test_aiohttp_request_coroutine[pyloop]' |
110 |
+ # Internet |
111 |
+ tests/test_client_session.py::test_client_session_timeout_zero |
112 |
+ ) |
113 |
+ |
114 |
+ [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=( |
115 |
+ # C extensions are not used on PyPy3 |
116 |
+ tests/test_http_parser.py::test_c_parser_loaded |
117 |
+ ) |
118 |
+ |
119 |
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |
120 |
+ local -x PYTEST_PLUGINS=pytest_mock,xdist.plugin,pytest_forked |
121 |
+ mv aiohttp aiohttp.hidden || die |
122 |
+ epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" --forked |
123 |
+ mv aiohttp.hidden aiohttp || die |
124 |
+} |
125 |
|
126 |
diff --git a/dev-python/aiohttp/files/aiohttp-3.8.0-examples.patch b/dev-python/aiohttp/files/aiohttp-3.8.0-examples.patch |
127 |
new file mode 100644 |
128 |
index 00000000000..ed3f38f68fe |
129 |
--- /dev/null |
130 |
+++ b/dev-python/aiohttp/files/aiohttp-3.8.0-examples.patch |
131 |
@@ -0,0 +1,27 @@ |
132 |
+From bc142f906b3e7c63f0b1492fe3eacb7f00e9fb89 Mon Sep 17 00:00:00 2001 |
133 |
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
134 |
+Date: Mon, 1 Nov 2021 12:37:40 +0100 |
135 |
+Subject: [PATCH] Fix setup.cfg not to install "examples" top-level package |
136 |
+ |
137 |
+--- |
138 |
+ setup.cfg | 4 ++++ |
139 |
+ 1 file changed, 4 insertions(+) |
140 |
+ |
141 |
+diff --git a/setup.cfg b/setup.cfg |
142 |
+index 491df546..fa82b6b4 100644 |
143 |
+--- a/setup.cfg |
144 |
++++ b/setup.cfg |
145 |
+@@ -62,6 +62,10 @@ speedups = |
146 |
+ Brotli |
147 |
+ cchardet |
148 |
+ |
149 |
++[options.packages.find] |
150 |
++exclude = |
151 |
++ examples |
152 |
++ |
153 |
+ [options.package_data] |
154 |
+ # Ref: |
155 |
+ # https://setuptools.readthedocs.io/en/latest/setuptools.html#options |
156 |
+-- |
157 |
+2.33.1 |
158 |
+ |