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