commit:     21a2d0e52685554b8b33b55fd94470a75c793edd
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May 30 01:25:34 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May 30 01:25:34 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21a2d0e5

dev-python/starlette: Bump to 0.47.0

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

 dev-python/starlette/Manifest                |  1 +
 dev-python/starlette/starlette-0.47.0.ebuild | 57 ++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)

diff --git a/dev-python/starlette/Manifest b/dev-python/starlette/Manifest
index 138061d7dfd4..22931e1774ba 100644
--- a/dev-python/starlette/Manifest
+++ b/dev-python/starlette/Manifest
@@ -1 +1,2 @@
 DIST starlette-0.46.2.gh.tar.gz 2580854 BLAKE2B 
65f1a6c2bf74db77390802c3ca9f7e8f9aff22890f69547137ab779946680442cc2072b8f468c18257b4f730d156a650f8faf5395d74b05f2a15f0573e8ffdde
 SHA512 
51805e61c33b20d2c034d513c4795876a70f60f19798a91fad3594d77bb0fd638c6de73d56032b1806df9e9bff62dcb13aa23d0b7e5c83d0a0ef5166f0b141da
+DIST starlette-0.47.0.gh.tar.gz 2582806 BLAKE2B 
4272451fed218d7a2ec0ccb9d7d921bce62be01ff28f6cf0e906e221507f345f850ca8fd3e09aedf748b45df36c2692bb6b3abb4058e8bbaf777312765f51281
 SHA512 
4a53a0e91cbcb67df1e065217a9a905888049d3bbd7a3f39ce392816cebb9e8e4bdd0b269c191e9d6003dc3f306355dd7d50d180c56b904485fffa793ba82e72

diff --git a/dev-python/starlette/starlette-0.47.0.ebuild 
b/dev-python/starlette/starlette-0.47.0.ebuild
new file mode 100644
index 000000000000..33e06deee1de
--- /dev/null
+++ b/dev-python/starlette/starlette-0.47.0.ebuild
@@ -0,0 +1,57 @@
+# 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}]
+"
+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
+}

Reply via email to