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: Fri, 20 Sep 2019 07:34:58
Message-Id: 1568964880.fad1357ba6791ddc10a8b6fb563b1d134b873356.mgorny@gentoo
1 commit: fad1357ba6791ddc10a8b6fb563b1d134b873356
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 20 06:02:24 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 20 07:34:40 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fad1357b
7
8 dev-python/aiohttp: Bump to 3.6.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.6.1.ebuild | 80 +++++++++++++++++++++++++++++++++
14 2 files changed, 81 insertions(+)
15
16 diff --git a/dev-python/aiohttp/Manifest b/dev-python/aiohttp/Manifest
17 index 66c1600d99e..20b9051bc8c 100644
18 --- a/dev-python/aiohttp/Manifest
19 +++ b/dev-python/aiohttp/Manifest
20 @@ -1,3 +1,4 @@
21 DIST aiohttp-2.3.10.tar.gz 848324 BLAKE2B c32a7be3f3d9ba0bd1308c5bea779a10e177b9c018a03fb3cf95d1a1392180f3b4ea294dc23e2e946cc1065d16d212a169ec262a79034ae94b3a5067fbaf362c SHA512 e4ea725bbd3d7d749f2ec21eea1ff9f5c836fbeaa17ad72f77e378c69b008448e57503175bee6adff86110f65edc915cb6368df3011d1d9d61cf47718b086be0
22 DIST aiohttp-3.5.4.tar.gz 1097647 BLAKE2B 27d3631cf33cc5052deecfeca23f6c052fce344d9a889b0c0c0e68d9dcc19eb56e2ef2496f025c795dea4f906a59ae579ecd489188f8c56bc41255b4f450f4bf SHA512 9bc31457029f7db5bbfe1e213c1f428bf90ac96d83b6d2c8838261a3910ab9f7632a4299618377acb1bed04b0cbb4b4f6d9ee814495c05f210ed9bb4f4c61714
23 DIST aiohttp-3.6.0.tar.gz 1110800 BLAKE2B 30c583c5d9079dcc3481b917b51c09e40572228a2df3acab468036f22a75fbb21963805bc37d353c82cc81fddc6da85e9ae9fa6b4a0eb0c305de5428f48a05b2 SHA512 90a0c55b5f20fc7cc14d138fca93206a7b64ac069fbd81c77b5373985236c0c09b44bd167be58129ce2e4f2bdefe59891d6d52938f9fe04c462d4aea6af67d9d
24 +DIST aiohttp-3.6.1.tar.gz 1113678 BLAKE2B cfdf1c650ec52c7b6423f7afd40060ccd1631a407f126bf64c2a353c51f09c31bae3912b8ce9397c0c8350a2e82a98724ae58335998d1ab08ae46a49abce0251 SHA512 4939b89d45abcd655ef212ff87f66a83882fb12dffb87d62ae57afcd9517725af61f46f9b7428112e2dcd72d3a4027524967461270ede34348ff3ead47d14c9b
25
26 diff --git a/dev-python/aiohttp/aiohttp-3.6.1.ebuild b/dev-python/aiohttp/aiohttp-3.6.1.ebuild
27 new file mode 100644
28 index 00000000000..42c6b0667c2
29 --- /dev/null
30 +++ b/dev-python/aiohttp/aiohttp-3.6.1.ebuild
31 @@ -0,0 +1,80 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{5,6,7} )
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 -> ${P}.tar.gz"
44 +
45 +LICENSE="Apache-2.0"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
48 +IUSE="doc test"
49 +RESTRICT="!test? ( test )"
50 +
51 +CDEPEND="
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 + $(python_gen_cond_dep 'dev-python/typing-extensions[${PYTHON_USEDEP}]' \
59 + python3_{5,6})
60 +"
61 +DEPEND="
62 + dev-python/setuptools[${PYTHON_USEDEP}]
63 + dev-python/cython[${PYTHON_USEDEP}]
64 + doc? (
65 + >=dev-python/alabaster-0.6.2[${PYTHON_USEDEP}]
66 + dev-python/sphinxcontrib-asyncio[${PYTHON_USEDEP}]
67 + dev-python/sphinxcontrib-blockdiag[${PYTHON_USEDEP}]
68 + dev-python/sphinxcontrib-newsfeed[${PYTHON_USEDEP}]
69 + dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}]
70 + dev-python/sphinx[${PYTHON_USEDEP}]
71 + dev-python/sphinx-aiohttp-theme[${PYTHON_USEDEP}]
72 + )
73 + test? (
74 + ${CDEPEND}
75 + dev-python/async_generator[${PYTHON_USEDEP}]
76 + dev-python/brotlipy[${PYTHON_USEDEP}]
77 + >=dev-python/pytest-3.4.0[${PYTHON_USEDEP}]
78 + dev-python/pytest-mock[${PYTHON_USEDEP}]
79 + dev-python/pytest-timeout[${PYTHON_USEDEP}]
80 + dev-python/trustme[${PYTHON_USEDEP}]
81 + www-servers/gunicorn[${PYTHON_USEDEP}]
82 + )
83 +"
84 +RDEPEND="${CDEPEND}"
85 +
86 +DOCS=( CHANGES.rst CONTRIBUTING.rst CONTRIBUTORS.txt HISTORY.rst README.rst )
87 +
88 +python_prepare_all() {
89 + # FIXME
90 + rm tests/test_pytest_plugin.py || die
91 + sed -i -e 's:test_testcase_no_app:_&:' tests/test_test_utils.py || die
92 +
93 + # remove pointless dep on pytest-cov
94 + sed -i -e '/addopts/s/--cov=aiohttp//' pytest.ini || die
95 +
96 + distutils-r1_python_prepare_all
97 +}
98 +
99 +python_compile_all() {
100 + use doc && emake -C docs html
101 +}
102 +
103 +python_test() {
104 + pytest -vv || die "Tests fail with ${EPYTHON}"
105 +}
106 +
107 +python_install_all() {
108 + use doc && local HTML_DOCS=( docs/_build/html/. )
109 +
110 + distutils-r1_python_install_all
111 +}