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: Fri, 14 Jan 2022 18:28:36
Message-Id: 1642184904.85c85ad7d5e244fd8d4f40fb9241b29b70c5ab7f.arthurzam@gentoo
1 commit: 85c85ad7d5e244fd8d4f40fb9241b29b70c5ab7f
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 14 18:03:55 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 14 18:28:24 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85c85ad7
7
8 dev-python/uvicorn: add 0.17.0
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/uvicorn/Manifest | 1 +
13 dev-python/uvicorn/uvicorn-0.17.0.ebuild | 44 ++++++++++++++++++++++++++++++++
14 2 files changed, 45 insertions(+)
15
16 diff --git a/dev-python/uvicorn/Manifest b/dev-python/uvicorn/Manifest
17 index c2a67564576d..b24b2e9bb0d1 100644
18 --- a/dev-python/uvicorn/Manifest
19 +++ b/dev-python/uvicorn/Manifest
20 @@ -1,2 +1,3 @@
21 DIST uvicorn-0.15.0_p20210913.gh.tar.gz 542385 BLAKE2B 1e551ffccac6f92981b0ef62cc80fb494b57dc19bddf8430c54b8a06801ee81cdc31a3167a56e90dd8e0f318cc84dfc71443f74beb39dc68ccc252bc6d6c1042 SHA512 865fe148900c8c00847017bab3ef17a9514e7ef7878ad6220633e2bd6d89b2e65a79a82fdabb8beec83841346a175f0c20807bea07536071a06a884c74418e0d
22 DIST uvicorn-0.16.0.tar.gz 707858 BLAKE2B 604aa23f8eac6409396ed603c89a524ce61630e3edd354cfe86950c535f3829aa1ececc8a91a8eeb8164d125e2b20add14f457ba0b23a0d0efd085c168739bee SHA512 68eb5daeb72b457a43fa89e352bfe281c79c1057ad9616ba083f96c1392aeb56759f13a3ee7e9eb90749f92df137f1db2bf8c90256751513d770d6679e971003
23 +DIST uvicorn-0.17.0.tar.gz 708241 BLAKE2B 77f87f0ecb911bb19d599fd48d6ea51105c19432f3bee59b3ccefca002fd7ca9e791ed20f1d92ba3ea755461d494cda3e6c26e08d628038594367c7fa7b6238d SHA512 dc67bc7f881cc98a753e1ee494d48860f5174a21c662673398f8c385897fc1a14f389b30e91f8a2d2ff71e0da1beba682315c83a588321f98fe87fa1e1ff7974
24
25 diff --git a/dev-python/uvicorn/uvicorn-0.17.0.ebuild b/dev-python/uvicorn/uvicorn-0.17.0.ebuild
26 new file mode 100644
27 index 000000000000..9b5c9de03b7b
28 --- /dev/null
29 +++ b/dev-python/uvicorn/uvicorn-0.17.0.ebuild
30 @@ -0,0 +1,44 @@
31 +# Copyright 2021-2022 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 +DESCRIPTION="Lightning-fast ASGI server implementation"
40 +HOMEPAGE="https://www.uvicorn.org/"
41 +SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="BSD"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
46 +
47 +RDEPEND="
48 + >=dev-python/asgiref-3.4.0[${PYTHON_USEDEP}]
49 + >=dev-python/click-7.0[${PYTHON_USEDEP}]
50 + >=dev-python/h11-0.8[${PYTHON_USEDEP}]
51 +"
52 +BDEPEND="
53 + test? (
54 + dev-python/cryptography[${PYTHON_USEDEP}]
55 + dev-python/httpx[${PYTHON_USEDEP}]
56 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
57 + dev-python/pytest-mock[${PYTHON_USEDEP}]
58 + dev-python/python-dotenv[${PYTHON_USEDEP}]
59 + dev-python/pyyaml[${PYTHON_USEDEP}]
60 + dev-python/trustme[${PYTHON_USEDEP}]
61 + >=dev-python/websockets-10.0[${PYTHON_USEDEP}]
62 + dev-python/watchgod[${PYTHON_USEDEP}]
63 + dev-python/wsproto[${PYTHON_USEDEP}]
64 + )
65 +"
66 +
67 +distutils_enable_tests pytest
68 +
69 +EPYTEST_DESELECT=(
70 + # too long path for unix socket
71 + tests/test_config.py::test_bind_unix_socket_works_with_reload_or_workers
72 + # need unpackaged httptools
73 + "tests/middleware/test_logging.py::test_trace_logging_on_http_protocol[httptools]"
74 +)