commit:     fcaced337ca4e8e0cb70ff83eff2674a9a970306
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May  3 07:23:25 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May  3 08:26:01 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcaced33

dev-python/starlette: Bump to 0.20.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/starlette/Manifest                |  1 +
 dev-python/starlette/starlette-0.20.0.ebuild | 65 ++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)

diff --git a/dev-python/starlette/Manifest b/dev-python/starlette/Manifest
index 83ff1614cda5..59deacd92d09 100644
--- a/dev-python/starlette/Manifest
+++ b/dev-python/starlette/Manifest
@@ -1,2 +1,3 @@
 DIST starlette-0.18.0.gh.tar.gz 408097 BLAKE2B 
ddc85690d9eb962a8d82544a1667d17316025330c8fda0c79dc21422399bcff01ccf5baf85eda7941f40aac5845d18fdcefaa23ba8ba442d30f0b9e194f7287c
 SHA512 
521d39c1eec818250da3f2dc24cd2fb08393b76e6314a9bd5f3e520bdfa4652ae4ace5876b7e7f3a7ddc5540160e1086997a40b86a1b1bfd694c6aa1abde9106
 DIST starlette-0.19.1.gh.tar.gz 415049 BLAKE2B 
15842a521b9cef2ed823e857f984d7d8db7a9fb4c0fb06d811fe29336a104c600b9c4f0a14b535ad1a84743cb4a1452d87f3ff0ae9245270b765af89254be86e
 SHA512 
3fd721e4a8accfd4f0c1c87b4b0eb62b559066aeeb7ddd31dcacb73c2b4e8619fe727b10f2e3053199e710a561063ef7bbd73ad65294d0ce5db778d458ffbd91
+DIST starlette-0.20.0.gh.tar.gz 414497 BLAKE2B 
47c6ef632a600bd18075c8ea65811ed18e08c285ed01cb34e5f74c00b2349430703ac041beacb35b91d941501001d2b93b79b777b403f5b6bef4682f6c13b02a
 SHA512 
f28aff53732ec5950b2432ea644667d408e80cb4b51a177652a9bfe6731c6fa1208cba644fcaa84405bf51ef00f500a277c86e48f5446e2014369c1d1edda357

diff --git a/dev-python/starlette/starlette-0.20.0.ebuild 
b/dev-python/starlette/starlette-0.20.0.ebuild
new file mode 100644
index 000000000000..2d29021cef28
--- /dev/null
+++ b/dev-python/starlette/starlette-0.20.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="The little ASGI framework that shines"
+HOMEPAGE="
+       https://www.starlette.io/
+       https://github.com/encode/starlette/
+       https://pypi.org/project/starlette/
+"
+SRC_URI="
+       https://github.com/encode/starlette/archive/${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+       <dev-python/anyio-5[${PYTHON_USEDEP}]
+       >=dev-python/anyio-3.4.0[${PYTHON_USEDEP}]
+       dev-python/itsdangerous[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep '
+               dev-python/typing-extensions[${PYTHON_USEDEP}]
+       ' 3.8 3.9)
+"
+# brotli needed for consistent test output
+BDEPEND="
+       test? (
+               || (
+                       dev-python/brotlicffi[${PYTHON_USEDEP}]
+                       app-arch/brotli[python,${PYTHON_USEDEP}]
+               )
+               dev-python/trio[${PYTHON_USEDEP}]
+       )
+"
+
+EPYTEST_IGNORE=(
+       # Unpackaged 'databases' dependency
+       tests/test_database.py
+
+       # Unpackaged 'multipart' dependency
+       tests/test_formparsers.py
+)
+
+EPYTEST_DESELECT=(
+       # Unpackaged 'multipart' dependency
+       tests/test_requests.py::test_request_form_urlencoded
+)
+
+distutils_enable_tests pytest
+
+src_prepare() {
+       # fix accept-encoding, as new support was added with newer versions
+       sed -e '/accept-encoding/s/",/, br&/' -i 
tests/test_{websockets,requests}.py || die
+
+       distutils-r1_src_prepare
+}

Reply via email to