Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/aiohttp/
Date: Sun, 28 Feb 2021 21:41:22
Message-Id: 1614548432.7123d5d2aee72acfa4b2e90fc66331b9948eddc5.mgorny@gentoo
1 commit: 7123d5d2aee72acfa4b2e90fc66331b9948eddc5
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 28 21:40:29 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 28 21:40:32 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7123d5d2
7
8 dev-python/aiohttp: Remove old
9
10 Bug: https://bugs.gentoo.org/772932
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 dev-python/aiohttp/Manifest | 4 -
14 dev-python/aiohttp/aiohttp-3.6.2-r1.ebuild | 156 -----------------------------
15 dev-python/aiohttp/aiohttp-3.7.1-r1.ebuild | 90 -----------------
16 dev-python/aiohttp/aiohttp-3.7.2-r1.ebuild | 91 -----------------
17 dev-python/aiohttp/aiohttp-3.7.3.ebuild | 91 -----------------
18 5 files changed, 432 deletions(-)
19
20 diff --git a/dev-python/aiohttp/Manifest b/dev-python/aiohttp/Manifest
21 index 3bad1e315fa..c5a16a92aa4 100644
22 --- a/dev-python/aiohttp/Manifest
23 +++ b/dev-python/aiohttp/Manifest
24 @@ -1,5 +1 @@
25 -DIST aiohttp-3.6.2.tar.gz 1076923 BLAKE2B 14327a0bc5b5fffdf436a4c3525e4c25d80100aa464ed652316f7724c2bea6de4ace6c27e8a2a8cf9d895673ed63ed52e8c958ad611636e1e524a4e40efa4735 SHA512 49bd3089158c05ff6312420190ccd7fed95efb4a18b8aff7497d5507c71c692080d6949801edabdcd95379ca8e6614398408118d72ff1e782399e059e2cfc1a8
26 -DIST aiohttp-3.7.1.tar.gz 1111777 BLAKE2B 03d16e8c9d64ec407cf7b6dbbf5547a88f528ab23e9e256559c11fc2cb6f568101f79dad89b0e5698fd02a3918051e4bc3c349e3ea4358ecb5de1543fea91708 SHA512 accdd588fdd7ba1792cf5e8fb67c6d5dd3e1c5382d9c9ece14e449d6f4f1c116975809d2dad786e0d472b3bb54e3b8c59722be871401a82cef5eff9c12f3c3f8
27 -DIST aiohttp-3.7.2.tar.gz 1111049 BLAKE2B faffc582f2c72ff892862b5b782da75b381e59b21b284b1120e4edb16f22b760f8cabe56261061e0049a5dfd041456076e294e942a02309e9b3d6b414facb0cb SHA512 2dd4f0264f1fb0801be366c269b73dd80b542e8e5bfe18a01fbdfadd0210022ccd6e3975be1be416551ccce82f42881e18735d5c6fc68a42b7452ab18e157dc5
28 -DIST aiohttp-3.7.3.tar.gz 1113127 BLAKE2B 47d95565db1184c6b55a1e7d7a6df8cda872e4fe621f653e3143608f51dde2c7d30d00835da357dd7ae33f4858ad5778074dfde5261331a3539a5d6776ea1a25 SHA512 d1dbbe3cbdeb1a460f5030a08a251a7bb7ae7ec038ca93ba5187b2da1fe21b80ed6513db647ef382d2d92a3d527a34dffbd37f51aa1e8b65bb36d517304b1812
29 DIST aiohttp-3.7.4.tar.gz 1114533 BLAKE2B dcae3e66e13df8264d731a3ca65b4718feca8d0e6e1baeb6608dcb9bfb4bd4baaed6bd34297ed5ece78d01189bf9a0b9860845cae4e2b93cc2ba463cc35cfb77 SHA512 66fcc837b388020dc998cbaa2db31e48ecec75bcfaa8af9108e2ea265588dafa5684ca96a8fe3ad6759b22e09a4ae6d4efd8653fb76126eccdc826c15cbbe2e6
30
31 diff --git a/dev-python/aiohttp/aiohttp-3.6.2-r1.ebuild b/dev-python/aiohttp/aiohttp-3.6.2-r1.ebuild
32 deleted file mode 100644
33 index ff1ec99c9e6..00000000000
34 --- a/dev-python/aiohttp/aiohttp-3.6.2-r1.ebuild
35 +++ /dev/null
36 @@ -1,156 +0,0 @@
37 -# Copyright 1999-2021 Gentoo Authors
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=7
41 -
42 -PYTHON_COMPAT=( python3_{7..9} )
43 -
44 -inherit distutils-r1
45 -
46 -DESCRIPTION="http client/server for asyncio"
47 -HOMEPAGE="https://pypi.org/project/aiohttp/"
48 -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
49 -
50 -LICENSE="Apache-2.0"
51 -SLOT="0"
52 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86"
53 -IUSE="doc test"
54 -RESTRICT="!test? ( test )"
55 -
56 -COMMON_DEPEND="
57 - >=dev-python/async_timeout-3.0.0[${PYTHON_USEDEP}]
58 - >=dev-python/attrs-17.3.0[${PYTHON_USEDEP}]
59 - dev-python/chardet[${PYTHON_USEDEP}]
60 - >=dev-python/multidict-4.5.0[${PYTHON_USEDEP}]
61 - >=dev-python/yarl-1.0[${PYTHON_USEDEP}]
62 - $(python_gen_cond_dep '
63 - dev-python/idna-ssl[${PYTHON_USEDEP}]
64 - ' python3_6)
65 - dev-python/typing-extensions[${PYTHON_USEDEP}]
66 -"
67 -DEPEND="
68 - dev-python/cython[${PYTHON_USEDEP}]
69 - test? (
70 - ${COMMON_DEPEND}
71 - !!dev-python/pytest-aiohttp
72 - dev-python/async_generator[${PYTHON_USEDEP}]
73 - dev-python/brotlipy[${PYTHON_USEDEP}]
74 - dev-python/freezegun[${PYTHON_USEDEP}]
75 - www-servers/gunicorn[${PYTHON_USEDEP}]
76 - >=dev-python/pytest-3.4.0[${PYTHON_USEDEP}]
77 - dev-python/pytest-mock[${PYTHON_USEDEP}]
78 - dev-python/pytest-timeout[${PYTHON_USEDEP}]
79 - dev-python/trustme[${PYTHON_USEDEP}]
80 - )
81 -"
82 -RDEPEND="${COMMON_DEPEND}"
83 -
84 -DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst )
85 -
86 -distutils_enable_sphinx docs \
87 - '>=dev-python/alabaster-0.6.2' \
88 - 'dev-python/sphinxcontrib-asyncio' \
89 - 'dev-python/sphinxcontrib-blockdiag' \
90 - 'dev-python/sphinxcontrib-newsfeed' \
91 - 'dev-python/sphinxcontrib-spelling' \
92 - 'dev-python/sphinx' \
93 - 'dev-python/sphinx-aiohttp-theme'
94 -
95 -distutils_enable_tests pytest || die "Tests fail with ${EPYTHON}"
96 -
97 -python_prepare_all() {
98 - sed -e 's|^async def test_aiohttp_request_coroutine(|@pytest.mark.xfail\n\0|' \
99 - -e 's|^async def test_handle_keepalive_on_closed_connection(|@pytest.mark.xfail\n\0|' \
100 - -e 's|^async def test_server_close_keepalive_connection(|@pytest.mark.xfail\n\0|' \
101 - -i tests/test_client_functional.py || die
102 -
103 - sed -e 's|^async def test_request_tracing_exception(|@pytest.mark.xfail\n\0|' \
104 - -i tests/test_client_session.py || die
105 -
106 - sed -e 's|^async def test_cleanup2(|@pytest.mark.xfail\n\0|' \
107 - -e 's|^async def test_cleanup3(|@pytest.mark.xfail\n\0|' \
108 - -e 's|^async def test_close(|@pytest.mark.xfail\n\0|' \
109 - -e 's|^async def test_close_abort_closed_transports(|@pytest.mark.xfail\n\0|' \
110 - -e 's|^async def test_close_cancels_cleanup_closed_handle(|@pytest.mark.xfail\n\0|' \
111 - -e 's|^async def test_close_cancels_cleanup_handle(|@pytest.mark.xfail\n\0|' \
112 - -e 's|^async def test_close_during_connect(|@pytest.mark.xfail\n\0|' \
113 - -e 's|^async def test_close_twice(|@pytest.mark.xfail\n\0|' \
114 - -e 's|^async def test_close_with_acquired_connection(|@pytest.mark.xfail\n\0|' \
115 - -e 's|^async def test_connect_queued_operation_tracing(|@pytest.mark.xfail\n\0|' \
116 - -e 's|^async def test_connect_reuseconn_tracing(|@pytest.mark.xfail\n\0|' \
117 - -e 's|^async def test_connect_with_limit(|@pytest.mark.xfail\n\0|' \
118 - -e 's|^async def test_connect_with_limit_and_limit_per_host(|@pytest.mark.xfail\n\0|' \
119 - -e 's|^async def test_connect_with_limit_concurrent(|@pytest.mark.xfail\n\0|' \
120 - -e 's|^async def test_connect_with_no_limit_and_limit_per_host(|@pytest.mark.xfail\n\0|' \
121 - -e 's|^async def test_connect_with_no_limits(|@pytest.mark.xfail\n\0|' \
122 - -e 's|^async def test_get(|@pytest.mark.xfail\n\0|' \
123 - -e 's|^async def test_get_expired(|@pytest.mark.xfail\n\0|' \
124 - -e 's|^async def test_get_expired_ssl(|@pytest.mark.xfail\n\0|' \
125 - -e 's|^async def test_limit_per_host_property(|@pytest.mark.xfail\n\0|' \
126 - -e 's|^async def test_limit_per_host_property_default(|@pytest.mark.xfail\n\0|' \
127 - -e 's|^async def test_limit_property(|@pytest.mark.xfail\n\0|' \
128 - -e 's|^async def test_limit_property_default(|@pytest.mark.xfail\n\0|' \
129 - -e 's|^async def test_release(|@pytest.mark.xfail\n\0|' \
130 - -e 's|^async def test_release_acquired(|@pytest.mark.xfail\n\0|' \
131 - -e 's|^async def test_release_acquired_closed(|@pytest.mark.xfail\n\0|' \
132 - -e 's|^async def test_release_already_closed(|@pytest.mark.xfail\n\0|' \
133 - -e 's|^async def test_release_close_do_not_delete_existing_connections(|@pytest.mark.xfail\n\0|' \
134 - -e 's|^async def test_release_not_started(|@pytest.mark.xfail\n\0|' \
135 - -e 's|^async def test_release_ssl_transport(|@pytest.mark.xfail\n\0|' \
136 - -e 's|^async def test_release_waiter_first_available(|@pytest.mark.xfail\n\0|' \
137 - -e 's|^async def test_release_waiter_no_available(|@pytest.mark.xfail\n\0|' \
138 - -e 's|^async def test_release_waiter_no_limit(|@pytest.mark.xfail\n\0|' \
139 - -e 's|^async def test_release_waiter_per_host(|@pytest.mark.xfail\n\0|' \
140 - -e 's|^async def test_release_waiter_release_first(|@pytest.mark.xfail\n\0|' \
141 - -e 's|^async def test_release_waiter_skip_done_waiter(|@pytest.mark.xfail\n\0|' \
142 - -e 's|^async def test_tcp_connector_dns_throttle_requests_cancelled_when_close(|@pytest.mark.xfail\n\0|' \
143 - -e 's|^async def test_tcp_connector_do_not_raise_connector_ssl_error(|@pytest.mark.xfail\n\0|' \
144 - -e 's|^async def test_tcp_connector_uses_provided_local_addr(|@pytest.mark.xfail\n\0|' \
145 - -i tests/test_connector.py || die
146 -
147 - sed -e 's|^ async def test_read_boundary_with_incomplete_chunk(| @pytest.mark.xfail\n\0|' \
148 - -e 's|^ async def test_read_incomplete_chunk(| @pytest.mark.xfail\n\0|' \
149 - -i tests/test_multipart.py || die
150 -
151 - sed -e 's|^def test_aiohttp_plugin_async_fixture(|@pytest.mark.xfail\n\0|' \
152 - -i tests/test_pytest_plugin.py || die
153 -
154 - sed -e 's|^def test_static(|@pytest.mark.xfail\n\0|' \
155 - -i tests/test_route_def.py || die
156 -
157 - sed -e 's|^async def test_mixed_middleware(|@pytest.mark.xfail\n\0|' \
158 - -e 's|^async def test_new_style_middleware_class(|@pytest.mark.xfail\n\0|' \
159 - -e 's|^async def test_new_style_middleware_method(|@pytest.mark.xfail\n\0|' \
160 - -e 's|^async def test_old_style_middleware(|@pytest.mark.xfail\n\0|' \
161 - -e 's|^async def test_old_style_middleware_class(|@pytest.mark.xfail\n\0|' \
162 - -i tests/test_web_middleware.py || die
163 -
164 - sed -e 's|^async def test_client_disconnect(|@pytest.mark.xfail\n\0|' \
165 - -i tests/test_web_protocol.py || die
166 -
167 - sed -e 's|^async def test_static_file_range(|@pytest.mark.xfail\n\0|' \
168 - -i tests/test_web_sendfile_functional.py || die
169 -
170 - sed -e 's|^async def test_partially_applied_handler(|@pytest.mark.xfail\n\0|' \
171 - -i tests/test_web_urldispatcher.py || die
172 -
173 - # minor breakages on py3.9
174 - sed -e 's:test_iface:_&:' \
175 - -i tests/test_frozenlist.py || die
176 - sed -e 's:test_proxy_https_bad_response:_&:' \
177 - -i tests/test_proxy_functional.py || die
178 -
179 - # newer chardet works too
180 - sed -e 's|chardet>=2.0,<4.0|chardet>=2.0|' \
181 - -i setup.py aiohttp.egg-info/requires.txt || die
182 -
183 - distutils-r1_python_prepare_all
184 -}
185 -
186 -python_test() {
187 - pushd "${BUILD_DIR}/lib" >/dev/null || die
188 - ln -snf "${S}/tests" tests || die
189 - pytest -vv || die "Tests fail with ${EPYTHON}"
190 - rm -rf .pytest_cache tests || die
191 - popd >/dev/null || die
192 -}
193
194 diff --git a/dev-python/aiohttp/aiohttp-3.7.1-r1.ebuild b/dev-python/aiohttp/aiohttp-3.7.1-r1.ebuild
195 deleted file mode 100644
196 index f4b5d82da70..00000000000
197 --- a/dev-python/aiohttp/aiohttp-3.7.1-r1.ebuild
198 +++ /dev/null
199 @@ -1,90 +0,0 @@
200 -# Copyright 1999-2021 Gentoo Authors
201 -# Distributed under the terms of the GNU General Public License v2
202 -
203 -EAPI=7
204 -
205 -PYTHON_COMPAT=( python3_{7..9} )
206 -
207 -inherit distutils-r1 multiprocessing
208 -
209 -DESCRIPTION="http client/server for asyncio"
210 -HOMEPAGE="https://pypi.org/project/aiohttp/"
211 -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
212 -
213 -LICENSE="Apache-2.0"
214 -SLOT="0"
215 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86"
216 -
217 -RDEPEND="
218 - >=dev-python/async_timeout-3.0.0[${PYTHON_USEDEP}]
219 - >=dev-python/attrs-17.3.0[${PYTHON_USEDEP}]
220 - dev-python/chardet[${PYTHON_USEDEP}]
221 - >=dev-python/multidict-4.5.0[${PYTHON_USEDEP}]
222 - >=dev-python/yarl-1.0[${PYTHON_USEDEP}]
223 - $(python_gen_cond_dep '
224 - dev-python/idna-ssl[${PYTHON_USEDEP}]
225 - ' python3_6)
226 - dev-python/typing-extensions[${PYTHON_USEDEP}]
227 -"
228 -BDEPEND="
229 - dev-python/cython[${PYTHON_USEDEP}]
230 - test? (
231 - !!dev-python/pytest-aiohttp
232 - dev-python/async_generator[${PYTHON_USEDEP}]
233 - dev-python/brotlipy[${PYTHON_USEDEP}]
234 - dev-python/freezegun[${PYTHON_USEDEP}]
235 - www-servers/gunicorn[${PYTHON_USEDEP}]
236 - dev-python/pytest-forked[${PYTHON_USEDEP}]
237 - dev-python/pytest-mock[${PYTHON_USEDEP}]
238 - dev-python/pytest-timeout[${PYTHON_USEDEP}]
239 - dev-python/pytest-xdist[${PYTHON_USEDEP}]
240 - dev-python/trustme[${PYTHON_USEDEP}]
241 - )
242 -"
243 -
244 -DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst )
245 -
246 -distutils_enable_tests pytest
247 -distutils_enable_sphinx docs \
248 - '>=dev-python/alabaster-0.6.2' \
249 - 'dev-python/sphinxcontrib-asyncio' \
250 - 'dev-python/sphinxcontrib-blockdiag' \
251 - 'dev-python/sphinxcontrib-newsfeed' \
252 - 'dev-python/sphinxcontrib-spelling' \
253 - 'dev-python/sphinx' \
254 - 'dev-python/sphinx-aiohttp-theme'
255 -
256 -python_prepare_all() {
257 - # Fails due to a warning
258 - sed -e 's:test_read_boundary_with_incomplete_chunk:_&:' \
259 - -i tests/test_multipart.py || die
260 - # with py3.7+
261 - sed -e 's:test_aiohttp_request_coroutine:_&:' \
262 - -i tests/test_client_functional.py || die
263 -
264 - # Fails due to path mismatch
265 - sed -e 's:test_static:_&:' \
266 - -i tests/test_route_def.py || die
267 -
268 - # Internet
269 - sed -e 's:test_mark_formdata_as_processed:_&:' \
270 - -i tests/test_formdata.py || die
271 -
272 - # newer chardet works too
273 - sed -e 's|chardet>=2.0,<4.0|chardet>=2.0|' \
274 - -i setup.py aiohttp.egg-info/requires.txt || die
275 -
276 - # takes a very long time, then fails
277 - rm tests/test_pytest_plugin.py || die
278 -
279 - distutils-r1_python_prepare_all
280 -}
281 -
282 -python_test() {
283 - pushd "${BUILD_DIR}/lib" >/dev/null || die
284 - ln -snf "${S}"/{LICENSE.txt,tests} . || die
285 - pytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" --forked \
286 - -vv tests || die "Tests fail with ${EPYTHON}"
287 - rm -rf .pytest_cache tests || die
288 - popd >/dev/null || die
289 -}
290
291 diff --git a/dev-python/aiohttp/aiohttp-3.7.2-r1.ebuild b/dev-python/aiohttp/aiohttp-3.7.2-r1.ebuild
292 deleted file mode 100644
293 index 0062a7b8e5e..00000000000
294 --- a/dev-python/aiohttp/aiohttp-3.7.2-r1.ebuild
295 +++ /dev/null
296 @@ -1,91 +0,0 @@
297 -# Copyright 1999-2021 Gentoo Authors
298 -# Distributed under the terms of the GNU General Public License v2
299 -
300 -EAPI=7
301 -
302 -PYTHON_COMPAT=( python3_{7..9} )
303 -
304 -inherit distutils-r1 multiprocessing
305 -
306 -DESCRIPTION="http client/server for asyncio"
307 -HOMEPAGE="https://pypi.org/project/aiohttp/"
308 -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
309 -
310 -LICENSE="Apache-2.0"
311 -SLOT="0"
312 -KEYWORDS="amd64 arm arm64 ~ia64 ppc ppc64 sparc ~x86"
313 -
314 -RDEPEND="
315 - >=dev-python/async_timeout-3.0.0[${PYTHON_USEDEP}]
316 - >=dev-python/attrs-17.3.0[${PYTHON_USEDEP}]
317 - dev-python/chardet[${PYTHON_USEDEP}]
318 - >=dev-python/multidict-4.5.0[${PYTHON_USEDEP}]
319 - >=dev-python/yarl-1.0[${PYTHON_USEDEP}]
320 - $(python_gen_cond_dep '
321 - dev-python/idna-ssl[${PYTHON_USEDEP}]
322 - ' python3_6)
323 - dev-python/typing-extensions[${PYTHON_USEDEP}]
324 -"
325 -BDEPEND="
326 - dev-python/cython[${PYTHON_USEDEP}]
327 - test? (
328 - !!dev-python/pytest-aiohttp
329 - dev-python/async_generator[${PYTHON_USEDEP}]
330 - dev-python/brotlipy[${PYTHON_USEDEP}]
331 - dev-python/freezegun[${PYTHON_USEDEP}]
332 - www-servers/gunicorn[${PYTHON_USEDEP}]
333 - dev-python/pytest-forked[${PYTHON_USEDEP}]
334 - dev-python/pytest-mock[${PYTHON_USEDEP}]
335 - dev-python/pytest-timeout[${PYTHON_USEDEP}]
336 - dev-python/pytest-xdist[${PYTHON_USEDEP}]
337 - dev-python/re-assert[${PYTHON_USEDEP}]
338 - dev-python/trustme[${PYTHON_USEDEP}]
339 - )
340 -"
341 -
342 -DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst )
343 -
344 -distutils_enable_tests pytest
345 -distutils_enable_sphinx docs \
346 - '>=dev-python/alabaster-0.6.2' \
347 - 'dev-python/sphinxcontrib-asyncio' \
348 - 'dev-python/sphinxcontrib-blockdiag' \
349 - 'dev-python/sphinxcontrib-newsfeed' \
350 - 'dev-python/sphinxcontrib-spelling' \
351 - 'dev-python/sphinx' \
352 - 'dev-python/sphinx-aiohttp-theme'
353 -
354 -python_prepare_all() {
355 - # Fails due to a warning
356 - sed -e 's:test_read_boundary_with_incomplete_chunk:_&:' \
357 - -i tests/test_multipart.py || die
358 - # with py3.7+
359 - sed -e 's:test_aiohttp_request_coroutine:_&:' \
360 - -i tests/test_client_functional.py || die
361 -
362 - # Fails due to path mismatch
363 - sed -e 's:test_static:_&:' \
364 - -i tests/test_route_def.py || die
365 -
366 - # Internet
367 - sed -e 's:test_mark_formdata_as_processed:_&:' \
368 - -i tests/test_formdata.py || die
369 -
370 - # newer chardet works too
371 - sed -e 's|chardet>=2.0,<4.0|chardet>=2.0|' \
372 - -i setup.py aiohttp.egg-info/requires.txt || die
373 -
374 - # takes a very long time, then fails
375 - rm tests/test_pytest_plugin.py || die
376 -
377 - distutils-r1_python_prepare_all
378 -}
379 -
380 -python_test() {
381 - pushd "${BUILD_DIR}/lib" >/dev/null || die
382 - ln -snf "${S}"/{LICENSE.txt,tests} . || die
383 - pytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" --forked \
384 - -vv tests || die "Tests fail with ${EPYTHON}"
385 - rm -rf .pytest_cache tests || die
386 - popd >/dev/null || die
387 -}
388
389 diff --git a/dev-python/aiohttp/aiohttp-3.7.3.ebuild b/dev-python/aiohttp/aiohttp-3.7.3.ebuild
390 deleted file mode 100644
391 index 3d54ae0d954..00000000000
392 --- a/dev-python/aiohttp/aiohttp-3.7.3.ebuild
393 +++ /dev/null
394 @@ -1,91 +0,0 @@
395 -# Copyright 1999-2021 Gentoo Authors
396 -# Distributed under the terms of the GNU General Public License v2
397 -
398 -EAPI=7
399 -
400 -PYTHON_COMPAT=( python3_{7..9} )
401 -
402 -inherit distutils-r1 multiprocessing
403 -
404 -DESCRIPTION="http client/server for asyncio"
405 -HOMEPAGE="https://pypi.org/project/aiohttp/"
406 -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
407 -
408 -LICENSE="Apache-2.0"
409 -SLOT="0"
410 -KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86"
411 -
412 -RDEPEND="
413 - >=dev-python/async_timeout-3.0.0[${PYTHON_USEDEP}]
414 - >=dev-python/attrs-17.3.0[${PYTHON_USEDEP}]
415 - dev-python/chardet[${PYTHON_USEDEP}]
416 - >=dev-python/multidict-4.5.0[${PYTHON_USEDEP}]
417 - >=dev-python/yarl-1.0[${PYTHON_USEDEP}]
418 - $(python_gen_cond_dep '
419 - dev-python/idna-ssl[${PYTHON_USEDEP}]
420 - ' python3_6)
421 - dev-python/typing-extensions[${PYTHON_USEDEP}]
422 -"
423 -BDEPEND="
424 - dev-python/cython[${PYTHON_USEDEP}]
425 - test? (
426 - !!dev-python/pytest-aiohttp
427 - dev-python/async_generator[${PYTHON_USEDEP}]
428 - dev-python/brotlipy[${PYTHON_USEDEP}]
429 - dev-python/freezegun[${PYTHON_USEDEP}]
430 - www-servers/gunicorn[${PYTHON_USEDEP}]
431 - dev-python/pytest-forked[${PYTHON_USEDEP}]
432 - dev-python/pytest-mock[${PYTHON_USEDEP}]
433 - dev-python/pytest-timeout[${PYTHON_USEDEP}]
434 - dev-python/pytest-xdist[${PYTHON_USEDEP}]
435 - dev-python/re-assert[${PYTHON_USEDEP}]
436 - dev-python/trustme[${PYTHON_USEDEP}]
437 - )
438 -"
439 -
440 -DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst )
441 -
442 -distutils_enable_tests pytest
443 -distutils_enable_sphinx docs \
444 - '>=dev-python/alabaster-0.6.2' \
445 - 'dev-python/sphinxcontrib-asyncio' \
446 - 'dev-python/sphinxcontrib-blockdiag' \
447 - 'dev-python/sphinxcontrib-newsfeed' \
448 - 'dev-python/sphinxcontrib-spelling' \
449 - 'dev-python/sphinx' \
450 - 'dev-python/sphinx-aiohttp-theme'
451 -
452 -python_prepare_all() {
453 - # Fails due to a warning
454 - sed -e 's:test_read_boundary_with_incomplete_chunk:_&:' \
455 - -i tests/test_multipart.py || die
456 - # with py3.7+
457 - sed -e 's:test_aiohttp_request_coroutine:_&:' \
458 - -i tests/test_client_functional.py || die
459 -
460 - # Fails due to path mismatch
461 - sed -e 's:test_static:_&:' \
462 - -i tests/test_route_def.py || die
463 -
464 - # Internet
465 - sed -e 's:test_mark_formdata_as_processed:_&:' \
466 - -i tests/test_formdata.py || die
467 -
468 - # newer chardet works too
469 - sed -e 's|chardet>=2.0,<4.0|chardet>=2.0|' \
470 - -i setup.py aiohttp.egg-info/requires.txt || die
471 -
472 - # takes a very long time, then fails
473 - rm tests/test_pytest_plugin.py || die
474 -
475 - distutils-r1_python_prepare_all
476 -}
477 -
478 -python_test() {
479 - pushd "${BUILD_DIR}/lib" >/dev/null || die
480 - ln -snf "${S}"/{LICENSE.txt,tests} . || die
481 - pytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" --forked \
482 - -vv tests || die "Tests fail with ${EPYTHON}"
483 - rm -rf .pytest_cache tests || die
484 - popd >/dev/null || die
485 -}