diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-06-10 09:20:08 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-06-10 10:25:03 +0200 |
commit | 430129e0ac6502274ea6a91cf369c28e1fb6c685 (patch) | |
tree | efcd266688b949616f0a370622aaf74fb05a8d4a /dev-python/starlette | |
parent | dev-python/pikepdf: Bump to 5.1.5 (diff) | |
download | gentoo-430129e0ac6502274ea6a91cf369c28e1fb6c685.tar.gz gentoo-430129e0ac6502274ea6a91cf369c28e1fb6c685.tar.bz2 gentoo-430129e0ac6502274ea6a91cf369c28e1fb6c685.zip |
dev-python/starlette: Bump to 0.20.3
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/starlette')
-rw-r--r-- | dev-python/starlette/Manifest | 1 | ||||
-rw-r--r-- | dev-python/starlette/starlette-0.20.3.ebuild | 65 |
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-python/starlette/Manifest b/dev-python/starlette/Manifest index aaf1f33c4d01..6a054111b580 100644 --- a/dev-python/starlette/Manifest +++ b/dev-python/starlette/Manifest @@ -2,3 +2,4 @@ DIST starlette-0.18.0.gh.tar.gz 408097 BLAKE2B ddc85690d9eb962a8d82544a1667d1731 DIST starlette-0.20.0.gh.tar.gz 414497 BLAKE2B 47c6ef632a600bd18075c8ea65811ed18e08c285ed01cb34e5f74c00b2349430703ac041beacb35b91d941501001d2b93b79b777b403f5b6bef4682f6c13b02a SHA512 f28aff53732ec5950b2432ea644667d408e80cb4b51a177652a9bfe6731c6fa1208cba644fcaa84405bf51ef00f500a277c86e48f5446e2014369c1d1edda357 DIST starlette-0.20.1.gh.tar.gz 416665 BLAKE2B 1b02f220dd6a8ebfdba405e3b9907030f006ec7ede43022fcef7911f5ac103da0eba16e7175e31e14529e64c711eac87b00c98534fbb18e784217ccca45f0c12 SHA512 4b10cf402bb3b3f96ec0bbb8e5fbd1e2abac4cbcf25a099bafad88fe02653d45e602e683f712251bb6dc230bc0d0754b2c960be2361239dc62e7e96b8b20ce6b DIST starlette-0.20.2.gh.tar.gz 417198 BLAKE2B 17ddd8fe5cd91e022fbe4f092a8bb731503294898dcddb2ac577a4f106f0e9db8901aaef01f6e07be082ba19636bdda799753e1f3a21d12e31454b29b5136fec SHA512 fb30c475779c4cf21cc43dc7e0aff58700c6356b692bc662edf93004054539ce80a97cb36e14636e33fa969b291f160cbf148b5aed749da197c13d4fec4eacda +DIST starlette-0.20.3.gh.tar.gz 417054 BLAKE2B 5564026142cb45075aa3ea3fabbc3e0eb39d4e2d776c6577d79b9c28522befaa92869e5f4211bc77235f6d25102f8d90e3811c972b74bb295abd0d186e29ceef SHA512 fa7f8de299ee452a52bf43ff6c39851fc7985775e1938b38cb564d5cb19705a84fbb173229a090295bca3be87b71214fdf7c80e3db0f870cf018510e1bd06b1b diff --git a/dev-python/starlette/starlette-0.20.3.ebuild b/dev-python/starlette/starlette-0.20.3.ebuild new file mode 100644 index 000000000000..2a2de474dce5 --- /dev/null +++ b/dev-python/starlette/starlette-0.20.3.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..11} ) + +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 +} |