Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/sanic/
Date: Mon, 28 Jun 2021 10:59:07
Message-Id: 1624834956.f35e3e5388825acd84b8f5ecdca7685e4942c1ed.flow@gentoo
1 commit: f35e3e5388825acd84b8f5ecdca7685e4942c1ed
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sun Jun 27 23:02:36 2021 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 27 23:02:36 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f35e3e53
7
8 dev-python/sanic: add 21.6.0
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 dev-python/sanic/Manifest | 1 +
13 dev-python/sanic/sanic-21.6.0.ebuild | 55 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 56 insertions(+)
15
16 diff --git a/dev-python/sanic/Manifest b/dev-python/sanic/Manifest
17 index a7ceefe58..0a0fb36f3 100644
18 --- a/dev-python/sanic/Manifest
19 +++ b/dev-python/sanic/Manifest
20 @@ -1 +1,2 @@
21 DIST sanic-21.3.4.tar.gz 234229 BLAKE2B a24941777099d5a09dd020a7f0a9fe39ae0ab89436fe27e2e4bbb418b684583002b9249e46438787d07bae6114ee1a0fd27e24e4e29983e8499f766f238e07d9 SHA512 15596f37b5389073d6a2b5e2d2bf5871d9a31ba29bf4e2eac9fb91df29e76035b02f7d892bb8edd5ffde75f05acdcebdb2c8f5ddf7224f40c5391c8f058f5c97
22 +DIST sanic-21.6.0.tar.gz 243159 BLAKE2B 2b0dfe59493a709be0059c06400723f7405ae032853bca25356e4c4296ff1bc512d9f885c77f48161de06917676bcef248952a7dd2751857e2f36a96389b2cf1 SHA512 fa6214e24d85cb2c5b059b7df9c818d58232f13de6e188c222f1ae441ece78167437464714097d1cab0432b2ca68b9f3ffd62f14c98dabfa8127cea29685b85b
23
24 diff --git a/dev-python/sanic/sanic-21.6.0.ebuild b/dev-python/sanic/sanic-21.6.0.ebuild
25 new file mode 100644
26 index 000000000..aea862df5
27 --- /dev/null
28 +++ b/dev-python/sanic/sanic-21.6.0.ebuild
29 @@ -0,0 +1,55 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="8"
34 +
35 +DISTUTILS_USE_SETUPTOOLS=rdepend
36 +PYTHON_COMPAT=( python3_{8..9} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Async Python 3.6+ web server/framework | Build fast. Run fast."
41 +HOMEPAGE="
42 + https://pypi.python.org/pypi/sanic
43 + https://github.com/huge-success/sanic
44 +"
45 +SRC_URI="https://github.com/huge-success/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +KEYWORDS="~amd64"
50 +
51 +RDEPEND="
52 + >=dev-python/aiofiles-0.6.0[${PYTHON_USEDEP}]
53 + >=dev-python/httptools-0.0.10[${PYTHON_USEDEP}]
54 + >=dev-python/multidict-5.0[${PYTHON_USEDEP}]
55 + >=dev-python/sanic-routing-0.0.10[${PYTHON_USEDEP}]
56 + dev-python/ujson[${PYTHON_USEDEP}]
57 + dev-python/uvloop[${PYTHON_USEDEP}]
58 + >=dev-python/websockets-8.1[${PYTHON_USEDEP}]
59 +"
60 +DEPEND="
61 + ${RDEPEND}
62 + test? (
63 + dev-python/beautifulsoup[${PYTHON_USEDEP}]
64 + >=dev-python/httpcore-0.3.0[${PYTHON_USEDEP}]
65 + >=dev-python/pytest-5.2.1[${PYTHON_USEDEP}]
66 + dev-python/pytest-benchmark[${PYTHON_USEDEP}]
67 + dev-python/pytest-sanic[${PYTHON_USEDEP}]
68 + dev-python/sanic-testing[${PYTHON_USEDEP}]
69 + dev-python/uvicorn[${PYTHON_USEDEP}]
70 + www-servers/gunicorn[${PYTHON_USEDEP}]
71 + )
72 +"
73 +
74 +distutils_enable_tests pytest
75 +distutils_enable_sphinx docs \
76 + dev-python/docutils \
77 + dev-python/pygments \
78 + dev-python/sphinx_rtd_theme \
79 + dev-python/recommonmark \
80 + www-servers/gunicorn
81 +
82 +#python_test() {
83 +# pytest -vv --deselect tests/test_unix_socket.py::test_zero_downtime tests/test_keep_alive_timeout.py::test_keep_alive_client_timeout || die
84 +#}