1 |
commit: 33003df781401e8c87cc4e0495b843aa5caee22c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 27 01:27:27 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 27 02:03:51 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33003df7 |
7 |
|
8 |
dev-python/starlette: Bump to 0.21.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/starlette/Manifest | 1 + |
13 |
dev-python/starlette/starlette-0.21.0.ebuild | 69 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 70 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/starlette/Manifest b/dev-python/starlette/Manifest |
17 |
index 7b54e175d022..8d70855a72a5 100644 |
18 |
--- a/dev-python/starlette/Manifest |
19 |
+++ b/dev-python/starlette/Manifest |
20 |
@@ -1,3 +1,4 @@ |
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 |
+DIST starlette-0.21.0.gh.tar.gz 2830353 BLAKE2B 7ff818d4687757ec8699dcd0e2582af78211787b7a0f2110da045eb4f7a8760262cf144b0af7dc9f72140b5dae1e65f7a4207ee3b165db4091c5139ce0bfcc85 SHA512 c246862604ba807141313857321d898d996eaa771ccb197546d0928a75cbb69f0e485fe90d2c817e70323146077c487436516384e1401d815c59c0ac75845e2b |
25 |
|
26 |
diff --git a/dev-python/starlette/starlette-0.21.0.ebuild b/dev-python/starlette/starlette-0.21.0.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..b8f1200acd8f |
29 |
--- /dev/null |
30 |
+++ b/dev-python/starlette/starlette-0.21.0.ebuild |
31 |
@@ -0,0 +1,69 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+DISTUTILS_USE_PEP517=hatchling |
38 |
+PYTHON_COMPAT=( python3_{8..11} ) |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+DESCRIPTION="The little ASGI framework that shines" |
43 |
+HOMEPAGE=" |
44 |
+ https://www.starlette.io/ |
45 |
+ https://github.com/encode/starlette/ |
46 |
+ https://pypi.org/project/starlette/ |
47 |
+" |
48 |
+SRC_URI=" |
49 |
+ https://github.com/encode/starlette/archive/${PV}.tar.gz |
50 |
+ -> ${P}.gh.tar.gz |
51 |
+" |
52 |
+ |
53 |
+LICENSE="BSD" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~amd64 ~x86" |
56 |
+ |
57 |
+# TODO: package python-multipart |
58 |
+RDEPEND=" |
59 |
+ <dev-python/anyio-5[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/anyio-3.4.0[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/httpx-0.22.0[${PYTHON_USEDEP}] |
62 |
+ dev-python/itsdangerous[${PYTHON_USEDEP}] |
63 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
64 |
+ $(python_gen_cond_dep ' |
65 |
+ >=dev-python/typing-extensions-3.10.0[${PYTHON_USEDEP}] |
66 |
+ ' 3.8 3.9) |
67 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
68 |
+" |
69 |
+# brotli needed for consistent test output |
70 |
+BDEPEND=" |
71 |
+ test? ( |
72 |
+ || ( |
73 |
+ dev-python/brotlicffi[${PYTHON_USEDEP}] |
74 |
+ app-arch/brotli[python,${PYTHON_USEDEP}] |
75 |
+ ) |
76 |
+ dev-python/trio[${PYTHON_USEDEP}] |
77 |
+ ) |
78 |
+" |
79 |
+ |
80 |
+EPYTEST_IGNORE=( |
81 |
+ # Unpackaged 'databases' dependency |
82 |
+ tests/test_database.py |
83 |
+ |
84 |
+ # Unpackaged 'multipart' dependency |
85 |
+ tests/test_formparsers.py |
86 |
+) |
87 |
+ |
88 |
+EPYTEST_DESELECT=( |
89 |
+ # Unpackaged 'multipart' dependency |
90 |
+ tests/test_requests.py::test_request_form_urlencoded |
91 |
+) |
92 |
+ |
93 |
+distutils_enable_tests pytest |
94 |
+ |
95 |
+src_prepare() { |
96 |
+ # fix accept-encoding, as new support was added with newer versions |
97 |
+ sed -e '/accept-encoding/s/",/, br&/' -i tests/test_{websockets,requests}.py || die |
98 |
+ |
99 |
+ distutils-r1_src_prepare |
100 |
+} |