Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/aiohttp-cors/
Date: Sun, 27 Jan 2019 15:06:06
Message-Id: 1548601516.e9b2ee522e690cab109e071db5d744f6bec5bce1.pacho@gentoo
1 commit: e9b2ee522e690cab109e071db5d744f6bec5bce1
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 27 15:05:16 2019 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 27 15:05:16 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b2ee52
7
8 dev-python/aiohttp-cors: One 0.5 version needed for gns3-server
9
10 Package-Manager: Portage-2.3.58, Repoman-2.3.12
11 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
12
13 dev-python/aiohttp-cors/Manifest | 1 +
14 dev-python/aiohttp-cors/aiohttp-cors-0.5.3.ebuild | 41 +++++++++++++++++++++++
15 2 files changed, 42 insertions(+)
16
17 diff --git a/dev-python/aiohttp-cors/Manifest b/dev-python/aiohttp-cors/Manifest
18 index 0befccb4462..ff5076ab3fd 100644
19 --- a/dev-python/aiohttp-cors/Manifest
20 +++ b/dev-python/aiohttp-cors/Manifest
21 @@ -1 +1,2 @@
22 +DIST aiohttp-cors-0.5.3.tar.gz 40266 BLAKE2B 701886b291a1b89f88a704ae04e3264cf2afc51f63f03ddd4464d40ba7bd3a1c6b5fe3f095b634e8c6c36c5a967e9a6b9b88335ff23988fc8bcd726c037fbd1c SHA512 0813ea48de714c85e361dfdaeef1a69526f7446dcc4ce637139cd333dedea58c635f85cfad1c3ccfb0df6e573f0351f282fdbd9726211d5915ed2ba120206b09
23 DIST aiohttp-cors-0.6.0.tar.gz 42507 BLAKE2B 7b63916b983d3dc208058c8b04445a30762eebc4999135ae802d1ceeeccc476a335eae66126bb3fd16f938af3649e8b9096433c2df09e82bf4e5d4ba8e38c42c SHA512 75453ebbc074d5f25cc8efc46ffdb76fc90b0a96a9e6fce0eee5a5f28dba31cb50301289cac3b36c70ccdbc10c8f4ba9e362d8e9f350ba7f9dfacd06e6f5e699
24
25 diff --git a/dev-python/aiohttp-cors/aiohttp-cors-0.5.3.ebuild b/dev-python/aiohttp-cors/aiohttp-cors-0.5.3.ebuild
26 new file mode 100644
27 index 00000000000..5448c38b7cd
28 --- /dev/null
29 +++ b/dev-python/aiohttp-cors/aiohttp-cors-0.5.3.ebuild
30 @@ -0,0 +1,41 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +PYTHON_COMPAT=( python3_4 python3_5 python3_6 )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Implements CORS support for aiohttp asyncio-powered asynchronous HTTP server"
41 +HOMEPAGE="https://github.com/aio-libs/aiohttp-cors"
42 +SRC_URI="https://github.com/aio-libs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 +EGIT_REPO_URI="https://github.com/aio-libs/aiohttp-cors"
44 +
45 +LICENSE="Apache-2.0"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE="test"
49 +
50 +RDEPEND=">=dev-python/aiohttp-1.1.1[${PYTHON_USEDEP}]
51 + $(python_gen_cond_dep 'dev-python/typing[${PYTHON_USEDEP}]' python3_4)"
52 +DEPEND="${RDEPEND}
53 + dev-python/setuptools[${PYTHON_USEDEP}]
54 + test? (
55 + dev-python/pytest[${PYTHON_USEDEP}]
56 + dev-python/pytest-cov[${PYTHON_USEDEP}]
57 + dev-python/pytest-pylint[${PYTHON_USEDEP}]
58 + dev-python/pytest-runner[${PYTHON_USEDEP}]
59 + dev-python/selenium[${PYTHON_USEDEP}]
60 + )"
61 +
62 +python_prepare_all() {
63 + # for some reason, it is installed by 'setup.py test' on py!=3.4
64 + # TODO: investigate
65 + sed -i -e '/typing/d' setup.py || die
66 + distutils-r1_python_prepare_all
67 +}
68 +
69 +python_test() {
70 + esetup.py test
71 +}