1 |
commit: d1786223293e7b2f945a681ad17122214b3e9d42 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 28 18:42:31 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 28 18:49:35 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1786223 |
7 |
|
8 |
dev-python/starlette: add 0.20.4 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/starlette/Manifest | 1 + |
13 |
dev-python/starlette/starlette-0.20.4.ebuild | 65 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 66 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/starlette/Manifest b/dev-python/starlette/Manifest |
17 |
index 984e9fd34a99..7b54e175d022 100644 |
18 |
--- a/dev-python/starlette/Manifest |
19 |
+++ b/dev-python/starlette/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST starlette-0.18.0.gh.tar.gz 408097 BLAKE2B ddc85690d9eb962a8d82544a1667d17316025330c8fda0c79dc21422399bcff01ccf5baf85eda7941f40aac5845d18fdcefaa23ba8ba442d30f0b9e194f7287c SHA512 521d39c1eec818250da3f2dc24cd2fb08393b76e6314a9bd5f3e520bdfa4652ae4ace5876b7e7f3a7ddc5540160e1086997a40b86a1b1bfd694c6aa1abde9106 |
22 |
DIST starlette-0.20.3.gh.tar.gz 417054 BLAKE2B 5564026142cb45075aa3ea3fabbc3e0eb39d4e2d776c6577d79b9c28522befaa92869e5f4211bc77235f6d25102f8d90e3811c972b74bb295abd0d186e29ceef SHA512 fa7f8de299ee452a52bf43ff6c39851fc7985775e1938b38cb564d5cb19705a84fbb173229a090295bca3be87b71214fdf7c80e3db0f870cf018510e1bd06b1b |
23 |
+DIST starlette-0.20.4.gh.tar.gz 2819634 BLAKE2B 265ef6b88ebc5cee4361601198891cbab9e92e354942a06622bdac46dc63d2644557bef952730b455157ee83b15035016039f8a88f17e673487e9a3571d6180c SHA512 481a095ada3140164abae89026da36c90657d8ccabb0a6753094bf7fdf47ce6f789320ed15e94d15dedffaf302691e204cb541c26a4c779848aa6505dfe52b2f |
24 |
|
25 |
diff --git a/dev-python/starlette/starlette-0.20.4.ebuild b/dev-python/starlette/starlette-0.20.4.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..2a2de474dce5 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/starlette/starlette-0.20.4.ebuild |
30 |
@@ -0,0 +1,65 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+PYTHON_COMPAT=( python3_{8..11} ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="The little ASGI framework that shines" |
42 |
+HOMEPAGE=" |
43 |
+ https://www.starlette.io/ |
44 |
+ https://github.com/encode/starlette/ |
45 |
+ https://pypi.org/project/starlette/ |
46 |
+" |
47 |
+SRC_URI=" |
48 |
+ https://github.com/encode/starlette/archive/${PV}.tar.gz |
49 |
+ -> ${P}.gh.tar.gz |
50 |
+" |
51 |
+ |
52 |
+LICENSE="BSD" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64 ~x86" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ <dev-python/anyio-5[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/anyio-3.4.0[${PYTHON_USEDEP}] |
59 |
+ dev-python/itsdangerous[${PYTHON_USEDEP}] |
60 |
+ $(python_gen_cond_dep ' |
61 |
+ dev-python/typing-extensions[${PYTHON_USEDEP}] |
62 |
+ ' 3.8 3.9) |
63 |
+" |
64 |
+# brotli needed for consistent test output |
65 |
+BDEPEND=" |
66 |
+ test? ( |
67 |
+ || ( |
68 |
+ dev-python/brotlicffi[${PYTHON_USEDEP}] |
69 |
+ app-arch/brotli[python,${PYTHON_USEDEP}] |
70 |
+ ) |
71 |
+ dev-python/trio[${PYTHON_USEDEP}] |
72 |
+ ) |
73 |
+" |
74 |
+ |
75 |
+EPYTEST_IGNORE=( |
76 |
+ # Unpackaged 'databases' dependency |
77 |
+ tests/test_database.py |
78 |
+ |
79 |
+ # Unpackaged 'multipart' dependency |
80 |
+ tests/test_formparsers.py |
81 |
+) |
82 |
+ |
83 |
+EPYTEST_DESELECT=( |
84 |
+ # Unpackaged 'multipart' dependency |
85 |
+ tests/test_requests.py::test_request_form_urlencoded |
86 |
+) |
87 |
+ |
88 |
+distutils_enable_tests pytest |
89 |
+ |
90 |
+src_prepare() { |
91 |
+ # fix accept-encoding, as new support was added with newer versions |
92 |
+ sed -e '/accept-encoding/s/",/, br&/' -i tests/test_{websockets,requests}.py || die |
93 |
+ |
94 |
+ distutils-r1_src_prepare |
95 |
+} |