diff --git a/python-starlette.spec b/python-starlette.spec index cf547afacaae41d80cb79b6c94a5165d09c43ff8..de9fae0bc57f04ac9a4e3a7965821380f44df214 100644 --- a/python-starlette.spec +++ b/python-starlette.spec @@ -1,6 +1,6 @@ %define anolis_release 1 %global pypi_name starlette -%global pypi_version 0.37.2 +%global pypi_version 0.46.1 Name: python-%{pypi_name} Version: %{pypi_version} @@ -8,57 +8,78 @@ Release: %{anolis_release}%{?dist} Summary: The little ASGI library that shines License: BSD-3-Clause -URL: https://github.com/encode/starlette -Source0: %{pypi_source} +URL: https://www.starlette.io/ +Source0: https://github.com/encode/starlette/archive/%{version}/starlette-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3dist(setuptools) -BuildRequires: python3dist(typing-extensions) -BuildRequires: python3dist(pytest) -BuildRequires: python3dist(itsdangerous) -BuildRequires: python3dist(httpx) -BuildRequires: python3dist(trio) -BuildRequires: python3dist(jinja2) -BuildRequires: python3dist(python-multipart) -BuildRequires: python3dist(pyyaml) - -Requires: python3dist(anyio) - -%description +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling + +# The file requirements.txt pins exact versions and contains many unwanted +# dependencies, e.g. linters and typecheckers (see +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters). +# It’s easier to maintain BuildRequires for testing manually than to heavily +# patch or process the requirements file. + +BuildRequires: python3-pytest +BuildRequires: python3-trio +BuildRequires: python3-httpx +BuildRequires: python3-typing-extensions +BuildRequires: python3-pyyaml +BuildRequires: python3-itsdangerous +BuildRequires: python3-jinja2 + +Obsoletes: python-starlette-doc < 0.16.0-10 + +%global common_description %{expand: Starlette is a lightweight ASGI framework/toolkit, which is ideal for building async web services in Python. + +It is production-ready, and gives you the following: + + • A lightweight, low-complexity HTTP web framework. + • WebSocket support. + • In-process background tasks. + • Startup and shutdown events. + • Test client built on requests. + • CORS, GZip, Static Files, Streaming responses. + • Session and Cookie support. + • 100%% test coverage. + • 100%% type annotated codebase. + • Few hard dependencies. + • Compatible with asyncio and trio backends. + • Great overall performance against independent benchmarks.} + +%description %{common_description} %package -n python3-%{pypi_name} Summary: %{summary} -%{?python_provide:%python_provide python3-%{pypi_name}} -%description -n python3-%{pypi_name} -Starlette is a lightweight ASGI framework/toolkit, which is ideal for building -async web services in Python. +%description -n python3-starlette %{common_description} +%pyproject_extras_subpkg -n python3-starlette full %prep %autosetup -n %{pypi_name}-%{pypi_version} %generate_buildrequires -%pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install -%pyproject_save_files %{pypi_name} - -%check -%pyproject_check_import -k="${k-}${k+ and }not test_lifespan_with_on_events" -%pytest -W 'ignore::trio.TrioDeprecationWarning' -k "${k-}" %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE.md %doc README.md %changelog +* Tue Dec 09 2025 lzq11122 - 0.46.1-1 +- Update to 0.46.1 for fix CVE-2025-62727 + * Thu Apr 11 2024 Shenglong Zhu - 0.37.2-1 - Initial package. diff --git a/starlette-0.37.2.tar.gz b/starlette-0.37.2.tar.gz deleted file mode 100644 index db79be3dd915fd1d949817033af16161e8c6e023..0000000000000000000000000000000000000000 Binary files a/starlette-0.37.2.tar.gz and /dev/null differ diff --git a/starlette-0.46.1.tar.gz b/starlette-0.46.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7a055705864d2db79dbd782216969ec507eaf3e2 Binary files /dev/null and b/starlette-0.46.1.tar.gz differ