Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/sanic/
Date: Thu, 27 May 2021 14:48:22
Message-Id: 1622126897.9fa3f60c38d0f215bf148b9be2d84348cd4b2afb.Alessandro-Barbieri@gentoo
1 commit: 9fa3f60c38d0f215bf148b9be2d84348cd4b2afb
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Thu May 27 14:47:31 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Thu May 27 14:48:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9fa3f60c
7
8 dev-python/sanic: add 21.3.4
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 dev-python/sanic/Manifest | 1 +
13 dev-python/sanic/sanic-21.3.4.ebuild | 57 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 58 insertions(+)
15
16 diff --git a/dev-python/sanic/Manifest b/dev-python/sanic/Manifest
17 index c240b52dd..ee74883b9 100644
18 --- a/dev-python/sanic/Manifest
19 +++ b/dev-python/sanic/Manifest
20 @@ -1 +1,2 @@
21 DIST sanic-20.9.1.tar.gz 214560 BLAKE2B 2df6127d9a4b0cc8fc60e2aafe47b4e10f1474b3bee5b3974265be8c5edcfd2f7fdccb4d2b3f977d2f51ff0a2d0dc33c2d120c7d858fae56d845f6b22261eb7e SHA512 4c19fa2731b98eeb843c272856a2e6a4d25817b29d490dfa9c7e4f086ca91b5a8f4c38488673029ca21d125858d6095f40a960284c487b2601bef2c1fdedca28
22 +DIST sanic-21.3.4.tar.gz 234229 BLAKE2B a24941777099d5a09dd020a7f0a9fe39ae0ab89436fe27e2e4bbb418b684583002b9249e46438787d07bae6114ee1a0fd27e24e4e29983e8499f766f238e07d9 SHA512 15596f37b5389073d6a2b5e2d2bf5871d9a31ba29bf4e2eac9fb91df29e76035b02f7d892bb8edd5ffde75f05acdcebdb2c8f5ddf7224f40c5391c8f058f5c97
23
24 diff --git a/dev-python/sanic/sanic-21.3.4.ebuild b/dev-python/sanic/sanic-21.3.4.ebuild
25 new file mode 100644
26 index 000000000..bc79bf25f
27 --- /dev/null
28 +++ b/dev-python/sanic/sanic-21.3.4.ebuild
29 @@ -0,0 +1,57 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="7"
34 +
35 +PYTHON_COMPAT=( python3_{7,8,9} )
36 +DISTUTILS_USE_SETUPTOOLS=rdepend
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/multidict-6.0[${PYTHON_USEDEP}]
56 + >=dev-python/sanic-routing-0.0.10[${PYTHON_USEDEP}]
57 + dev-python/ujson[${PYTHON_USEDEP}]
58 + dev-python/uvloop[${PYTHON_USEDEP}]
59 + >=dev-python/websockets-8.1[${PYTHON_USEDEP}]
60 + <dev-python/websockets-9.0[${PYTHON_USEDEP}]
61 +"
62 +DEPEND="
63 + ${RDEPEND}
64 + test? (
65 + dev-python/beautifulsoup[${PYTHON_USEDEP}]
66 + >=dev-python/httpcore-0.3.0[${PYTHON_USEDEP}]
67 + >=dev-python/pytest-5.2.1[${PYTHON_USEDEP}]
68 + dev-python/pytest-benchmark[${PYTHON_USEDEP}]
69 + dev-python/pytest-sanic[${PYTHON_USEDEP}]
70 + dev-python/sanic-testing[${PYTHON_USEDEP}]
71 + dev-python/uvicorn[${PYTHON_USEDEP}]
72 + www-servers/gunicorn[${PYTHON_USEDEP}]
73 + )
74 +"
75 +
76 +distutils_enable_tests pytest
77 +distutils_enable_sphinx docs \
78 + dev-python/docutils \
79 + dev-python/pygments \
80 + dev-python/sphinx_rtd_theme \
81 + dev-python/recommonmark \
82 + www-servers/gunicorn
83 +
84 +python_test() {
85 + pytest -vv --deselect tests/test_unix_socket.py::test_zero_downtime || die
86 +}