Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/uvicorn/
Date: Wed, 16 Jun 2021 18:57:15
Message-Id: 1623869817.4da936898504bb823dd637553a2e5678a3cfea47.mgorny@gentoo
1 commit: 4da936898504bb823dd637553a2e5678a3cfea47
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 16 17:36:48 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 16 18:56:57 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4da93689
7
8 dev-python/uvicorn: Add missing test-dep on python-dotenv
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/uvicorn/uvicorn-0.14.0-r1.ebuild | 45 +++++++++++++++++++++++++++++
13 1 file changed, 45 insertions(+)
14
15 diff --git a/dev-python/uvicorn/uvicorn-0.14.0-r1.ebuild b/dev-python/uvicorn/uvicorn-0.14.0-r1.ebuild
16 new file mode 100644
17 index 00000000000..3901bfce5fe
18 --- /dev/null
19 +++ b/dev-python/uvicorn/uvicorn-0.14.0-r1.ebuild
20 @@ -0,0 +1,45 @@
21 +# Copyright 2021 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=7
25 +
26 +PYTHON_COMPAT=( python3_{8..9} )
27 +inherit distutils-r1
28 +
29 +DESCRIPTION="Lightning-fast ASGI server implementation"
30 +HOMEPAGE="https://www.uvicorn.org/"
31 +SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
32 +
33 +LICENSE="BSD"
34 +SLOT="0"
35 +KEYWORDS="~amd64 ~arm64 ~x86"
36 +
37 +RDEPEND="
38 + >=dev-python/asgiref-3.3.4[${PYTHON_USEDEP}]
39 + >=dev-python/click-7[${PYTHON_USEDEP}]
40 + >=dev-python/h11-0.8[${PYTHON_USEDEP}]
41 + $(python_gen_cond_dep 'dev-python/typing-extensions[${PYTHON_USEDEP}]' python3_7)
42 +"
43 +BDEPEND="
44 + test? (
45 + dev-python/cryptography[${PYTHON_USEDEP}]
46 + dev-python/httpx[${PYTHON_USEDEP}]
47 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
48 + dev-python/pytest-mock[${PYTHON_USEDEP}]
49 + dev-python/python-dotenv[${PYTHON_USEDEP}]
50 + dev-python/pyyaml[${PYTHON_USEDEP}]
51 + dev-python/trustme[${PYTHON_USEDEP}]
52 + >=dev-python/websockets-9.1[${PYTHON_USEDEP}]
53 + dev-python/wsproto[${PYTHON_USEDEP}]
54 + )
55 +"
56 +
57 +distutils_enable_tests pytest
58 +
59 +python_prepare_all() {
60 + # watchgod is not in the tree
61 + sed -e '/^from uvicorn.supervisors.watchgodreload/d' \
62 + -e 's/, WatchGodReload//' \
63 + -i tests/supervisors/test_reload.py
64 + distutils-r1_python_prepare_all
65 +}