Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/uvicorn/
Date: Wed, 15 Sep 2021 07:14:00
Message-Id: 1631690023.0fff04302b514ff1813a43da6253985addc8d3f9.arthurzam@gentoo
1 commit: 0fff04302b514ff1813a43da6253985addc8d3f9
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 15 07:10:59 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 15 07:13:43 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fff0430
7
8 dev-python/uvicorn: add 0.15.0_p20210913, enable py3.10
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/uvicorn/Manifest | 1 +
13 dev-python/uvicorn/uvicorn-0.15.0_p20210913.ebuild | 47 ++++++++++++++++++++++
14 2 files changed, 48 insertions(+)
15
16 diff --git a/dev-python/uvicorn/Manifest b/dev-python/uvicorn/Manifest
17 index 91ae5b8f29b..1a16cb70d4e 100644
18 --- a/dev-python/uvicorn/Manifest
19 +++ b/dev-python/uvicorn/Manifest
20 @@ -1,2 +1,3 @@
21 DIST uvicorn-0.13.4.tar.gz 505858 BLAKE2B 486436c0b4c717741c11b7da6a979dc9fe977baa2dbc3e2538ce28551d2dee593076b670b16c099056165624c149f96974f64d2847e38234122ec93b65b31cda SHA512 5332494e0b43b4e87f9d6742be679527b1ec2bc4d2e061768594d44b1fd1d6961a2bd1fa23469fca6c530ef36d6123e453306c2bb664cb27b0cd6145b9a70fd7
22 DIST uvicorn-0.14.0.tar.gz 511593 BLAKE2B 9f7aee0001874c128e44d31945aaa0ca92237e594debb6fea3c6c6d0f283c96cfad5248578b0e1c170fe2fde96a6b17c56ecf2436783fcae135b8eab1997b701 SHA512 f41a7f01ac6893ceaf4d1f06a4bccd7355e319eee11d6aa290b0d316fb356eb807c926941157ec64f1fc6b7c4601930cfbe271075d6c4cf684bd7e175617390f
23 +DIST uvicorn-0.15.0_p20210913.gh.tar.gz 542385 BLAKE2B 1e551ffccac6f92981b0ef62cc80fb494b57dc19bddf8430c54b8a06801ee81cdc31a3167a56e90dd8e0f318cc84dfc71443f74beb39dc68ccc252bc6d6c1042 SHA512 865fe148900c8c00847017bab3ef17a9514e7ef7878ad6220633e2bd6d89b2e65a79a82fdabb8beec83841346a175f0c20807bea07536071a06a884c74418e0d
24
25 diff --git a/dev-python/uvicorn/uvicorn-0.15.0_p20210913.ebuild b/dev-python/uvicorn/uvicorn-0.15.0_p20210913.ebuild
26 new file mode 100644
27 index 00000000000..96cceb3f9ce
28 --- /dev/null
29 +++ b/dev-python/uvicorn/uvicorn-0.15.0_p20210913.ebuild
30 @@ -0,0 +1,47 @@
31 +# Copyright 2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +inherit distutils-r1
38 +
39 +COMMIT="99acac598682b45be98094216f7db223c1fdf5f2"
40 +
41 +DESCRIPTION="Lightning-fast ASGI server implementation"
42 +HOMEPAGE="https://www.uvicorn.org/"
43 +SRC_URI="https://github.com/encode/${PN}/archive/${COMMIT}.tar.gz -> ${P}.gh.tar.gz"
44 +S="${WORKDIR}/${PN}-${COMMIT}"
45 +
46 +LICENSE="BSD"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +
50 +RDEPEND="
51 + >=dev-python/asgiref-3.4.0[${PYTHON_USEDEP}]
52 + >=dev-python/click-7.0[${PYTHON_USEDEP}]
53 + >=dev-python/h11-0.8[${PYTHON_USEDEP}]
54 +"
55 +BDEPEND="
56 + test? (
57 + dev-python/cryptography[${PYTHON_USEDEP}]
58 + dev-python/httpx[${PYTHON_USEDEP}]
59 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
60 + dev-python/pytest-mock[${PYTHON_USEDEP}]
61 + dev-python/python-dotenv[${PYTHON_USEDEP}]
62 + dev-python/pyyaml[${PYTHON_USEDEP}]
63 + dev-python/trustme[${PYTHON_USEDEP}]
64 + >=dev-python/websockets-10.0[${PYTHON_USEDEP}]
65 + dev-python/watchgod[${PYTHON_USEDEP}]
66 + dev-python/wsproto[${PYTHON_USEDEP}]
67 + )
68 +"
69 +
70 +distutils_enable_tests pytest
71 +
72 +EPYTEST_DESELECT=(
73 + # too long path for unix socket
74 + tests/test_config.py::test_bind_unix_socket_works_with_reload_or_workers
75 + # need unpackaged httptools
76 + "tests/middleware/test_logging.py::test_trace_logging_on_http_protocol[httptools]"
77 +)