dev-python/starlette: Bump to 0.47.1

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-06-22 05:49:28 +02:00
parent f801b4fde7
commit 711522e999
2 changed files with 61 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST starlette-0.47.0.gh.tar.gz 2582806 BLAKE2B 4272451fed218d7a2ec0ccb9d7d921bce62be01ff28f6cf0e906e221507f345f850ca8fd3e09aedf748b45df36c2692bb6b3abb4058e8bbaf777312765f51281 SHA512 4a53a0e91cbcb67df1e065217a9a905888049d3bbd7a3f39ce392816cebb9e8e4bdd0b269c191e9d6003dc3f306355dd7d50d180c56b904485fffa793ba82e72
DIST starlette-0.47.1.gh.tar.gz 2583032 BLAKE2B e27b59a89a937cb70cbd4df50f2f55df6c07fab318772e3afb1b3143fd57fa61c07a48df6563b61682832852ea4db5f1df3c0cbebd2fd135f8d2d16d23fe3aa9 SHA512 22744f3697448c9327bdb1a6e71f4ea7fd6c1b868bdce1eaaa797e9a8be5dbd81513ae086c7b9d23e8fbf9c57373a43990f4aacf0bebef5c4c6fb626b16d8ab2

View File

@@ -0,0 +1,60 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
inherit distutils-r1
MY_P=${P/_p/.post}
DESCRIPTION="The little ASGI framework that shines"
HOMEPAGE="
https://www.starlette.io/
https://github.com/encode/starlette/
https://pypi.org/project/starlette/
"
# no docs or tests in sdist, as of 0.27.0
SRC_URI="
https://github.com/encode/starlette/archive/${PV/_p/.post}.tar.gz
-> ${MY_P}.gh.tar.gz
"
S=${WORKDIR}/${MY_P}
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
RDEPEND="
<dev-python/anyio-5[${PYTHON_USEDEP}]
>=dev-python/anyio-3.6.2[${PYTHON_USEDEP}]
<dev-python/httpx-0.29[${PYTHON_USEDEP}]
>=dev-python/httpx-0.22.0[${PYTHON_USEDEP}]
dev-python/itsdangerous[${PYTHON_USEDEP}]
dev-python/jinja2[${PYTHON_USEDEP}]
>=dev-python/python-multipart-0.0.18[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
dev-python/starlette[${PYTHON_USEDEP}]
' 3.11 3.12)
"
BDEPEND="
test? (
>=dev-python/pytest-8[${PYTHON_USEDEP}]
dev-python/trio[${PYTHON_USEDEP}]
)
"
: ${EPYTEST_TIMEOUT:-180}
distutils_enable_tests pytest
python_test() {
local EPYTEST_IGNORE=(
# Unpackaged 'databases' dependency
tests/test_database.py
)
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest -p anyio
}