1 |
commit: 902bfb43c2c032728c9516d7547437ef426d1f6e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 28 07:37:05 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 28 08:37:34 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=902bfb43 |
7 |
|
8 |
dev-python/aiohttp: Bump to 3.7.2 |
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.7.2.ebuild | 84 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 85 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/aiohttp/Manifest b/dev-python/aiohttp/Manifest |
17 |
index 449285f050a..fdd3a786b04 100644 |
18 |
--- a/dev-python/aiohttp/Manifest |
19 |
+++ b/dev-python/aiohttp/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST aiohttp-3.6.2.tar.gz 1076923 BLAKE2B 14327a0bc5b5fffdf436a4c3525e4c25d80100aa464ed652316f7724c2bea6de4ace6c27e8a2a8cf9d895673ed63ed52e8c958ad611636e1e524a4e40efa4735 SHA512 49bd3089158c05ff6312420190ccd7fed95efb4a18b8aff7497d5507c71c692080d6949801edabdcd95379ca8e6614398408118d72ff1e782399e059e2cfc1a8 |
22 |
DIST aiohttp-3.7.0.tar.gz 1112272 BLAKE2B 73dffecc54e47806a7827ca3f6a18cca2121cece368e691b6ba31495affc66c3a4ef67279f218c7972d4a7e71ac123a329d6b2e9ca22dc0afb3b7373d9ab0726 SHA512 97083c2cf294e7324aaa68c36b2e0e352e588b96cd6856308ce1303b5da2df3f3cabcdcde59dc108b6d70c068901dd14ad6a883ee9e25c6b00738e30e3d8f852 |
23 |
DIST aiohttp-3.7.1.tar.gz 1111777 BLAKE2B 03d16e8c9d64ec407cf7b6dbbf5547a88f528ab23e9e256559c11fc2cb6f568101f79dad89b0e5698fd02a3918051e4bc3c349e3ea4358ecb5de1543fea91708 SHA512 accdd588fdd7ba1792cf5e8fb67c6d5dd3e1c5382d9c9ece14e449d6f4f1c116975809d2dad786e0d472b3bb54e3b8c59722be871401a82cef5eff9c12f3c3f8 |
24 |
+DIST aiohttp-3.7.2.tar.gz 1111049 BLAKE2B faffc582f2c72ff892862b5b782da75b381e59b21b284b1120e4edb16f22b760f8cabe56261061e0049a5dfd041456076e294e942a02309e9b3d6b414facb0cb SHA512 2dd4f0264f1fb0801be366c269b73dd80b542e8e5bfe18a01fbdfadd0210022ccd6e3975be1be416551ccce82f42881e18735d5c6fc68a42b7452ab18e157dc5 |
25 |
|
26 |
diff --git a/dev-python/aiohttp/aiohttp-3.7.2.ebuild b/dev-python/aiohttp/aiohttp-3.7.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..b0820056994 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/aiohttp/aiohttp-3.7.2.ebuild |
31 |
@@ -0,0 +1,84 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{6..9} ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="http client/server for asyncio" |
42 |
+HOMEPAGE="https://pypi.org/project/aiohttp/" |
43 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="Apache-2.0" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="doc test" |
49 |
+RESTRICT="!test? ( test )" |
50 |
+ |
51 |
+COMMON_DEPEND=" |
52 |
+ >=dev-python/async_timeout-3.0.0[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/attrs-17.3.0[${PYTHON_USEDEP}] |
54 |
+ dev-python/chardet[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/multidict-4.5.0[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/yarl-1.0[${PYTHON_USEDEP}] |
57 |
+ dev-python/idna-ssl[${PYTHON_USEDEP}] |
58 |
+" |
59 |
+DEPEND=" |
60 |
+ dev-python/cython[${PYTHON_USEDEP}] |
61 |
+ test? ( |
62 |
+ ${COMMON_DEPEND} |
63 |
+ !!dev-python/pytest-aiohttp |
64 |
+ dev-python/async_generator[${PYTHON_USEDEP}] |
65 |
+ dev-python/brotlipy[${PYTHON_USEDEP}] |
66 |
+ dev-python/freezegun[${PYTHON_USEDEP}] |
67 |
+ www-servers/gunicorn[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/pytest-3.4.0[${PYTHON_USEDEP}] |
69 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
70 |
+ dev-python/pytest-timeout[${PYTHON_USEDEP}] |
71 |
+ dev-python/re-assert[${PYTHON_USEDEP}] |
72 |
+ dev-python/trustme[${PYTHON_USEDEP}] |
73 |
+ ) |
74 |
+" |
75 |
+RDEPEND="${COMMON_DEPEND}" |
76 |
+ |
77 |
+DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst ) |
78 |
+ |
79 |
+distutils_enable_sphinx docs \ |
80 |
+ '>=dev-python/alabaster-0.6.2' \ |
81 |
+ 'dev-python/sphinxcontrib-asyncio' \ |
82 |
+ 'dev-python/sphinxcontrib-blockdiag' \ |
83 |
+ 'dev-python/sphinxcontrib-newsfeed' \ |
84 |
+ 'dev-python/sphinxcontrib-spelling' \ |
85 |
+ 'dev-python/sphinx' \ |
86 |
+ 'dev-python/sphinx-aiohttp-theme' |
87 |
+ |
88 |
+distutils_enable_tests pytest || die "Tests fail with ${EPYTHON}" |
89 |
+ |
90 |
+python_prepare_all() { |
91 |
+ # Fails due to a warning |
92 |
+ sed -e 's:test_read_boundary_with_incomplete_chunk:_&:' \ |
93 |
+ -i tests/test_multipart.py || die |
94 |
+ # with py3.7+ |
95 |
+ sed -e 's:test_aiohttp_request_coroutine:_&:' \ |
96 |
+ -i tests/test_client_functional.py || die |
97 |
+ |
98 |
+ # Fails due to path mismatch |
99 |
+ sed -e 's:test_static:_&:' \ |
100 |
+ -i tests/test_route_def.py || die |
101 |
+ |
102 |
+ # Internet |
103 |
+ sed -e 's:test_mark_formdata_as_processed:_&:' \ |
104 |
+ -i tests/test_formdata.py || die |
105 |
+ |
106 |
+ distutils-r1_python_prepare_all |
107 |
+} |
108 |
+ |
109 |
+python_test() { |
110 |
+ pushd "${BUILD_DIR}/lib" >/dev/null || die |
111 |
+ ln -snf "${S}"/{LICENSE.txt,tests} . || die |
112 |
+ pytest -vv tests || die "Tests fail with ${EPYTHON}" |
113 |
+ rm -rf .pytest_cache tests || die |
114 |
+ popd >/dev/null || die |
115 |
+} |