diff --git a/python-starlette.spec b/python-starlette.spec new file mode 100644 index 0000000000000000000000000000000000000000..b578ecc40d0cc1c08fb7e7bb0a43bfdd171a9675 --- /dev/null +++ b/python-starlette.spec @@ -0,0 +1,99 @@ +Name: python-starlette +Version: 0.41.3 +Release: 1 +Summary: The little ASGI library that shines + +License: BSD-3-Clause +URL: https://www.starlette.io/ +Source: https://github.com/encode/starlette/archive/%{version}/starlette-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel +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-python-multipart +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-starlette +Summary: %{summary} + +%description -n python3-starlette %{common_description} + + +%pyproject_extras_subpkg -n python3-starlette full + + +%prep +%autosetup -n starlette-%{version} -p1 + +%build +%pyproject_build + +%install +%pyproject_install + +%check +# E trio.TrioDeprecationWarning: The `cancellable=` keyword argument to +# `trio.to_thread.run_sync` is deprecated since Trio 0.23.0; use +# `abandon_on_cancel=` instead +# (https://github.com/python-trio/trio/issues/2841) +warningsfilter="${warningsfilter-} -W ignore::trio.TrioDeprecationWarning" + +# E Failed: DID NOT WARN. No warnings of type (, ) were +# emitted. +# E The list of emitted warnings is: []. +k="${k-}${k+ and }not test_lifespan_with_on_events" + +%pytest -- ${warningsfilter-} -k "${k-}" -v + + +%files -n python3-starlette +%license LICENSE.md +%doc README.md +%{python3_sitelib}/starlette-%{version}.dist-info/ +%{python3_sitelib}/starlette + + +%changelog +* Wed Dec 04 2024 Dongxing Wang - 0.41.3-1 +- Package init diff --git a/starlette-0.41.3.tar.gz b/starlette-0.41.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..6e208b118cdbca336199df2011dad67ee94682c6 Binary files /dev/null and b/starlette-0.41.3.tar.gz differ