File python-Quart.spec of Package python-Quart
#
# spec file for package python-Quart
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# avoid taskgroup backports
%define skip_python39 1
%define skip_python310 1
Name: python-Quart
Version: 0.19.5
Release: 0
Summary: A Python ASGI web microframework with the same API as Flask
License: MIT
URL: https://github.com/pallets/quart/
Source0: quart-%{version}.tar.xz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry}
BuildRequires: %{python_module aiofiles}
BuildRequires: %{python_module Flask >= 3.0.0}
BuildRequires: %{python_module hypercorn}
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-dotenv}
BuildRequires: %{python_module pytest-sugar}
BuildRequires: %{python_module Werkzeug}
BuildRequires: fdupes
BuildArch: noarch
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires: python-aiofiles
Requires: python-blinker
Requires: python-click
Requires: python-Flask >= 3.0.0
Requires: python-hypercorn
Requires: python-importlib_metadata
Requires: python-itsdangerous
Requires: python-jinja2
Requires: python-MarkupSafe
Requires: python-typing_extensions
Requires: python-Werkzeug
%python_subpackages
%description
Quart is an async Python web microframework. Using Quart you can,
* render and serve HTML templates,
* write (RESTful) JSON APIs,
* serve WebSockets,
* stream request and response data,
* do pretty much anything over the HTTP or WebSocket protocols.
%prep
%autosetup -p1 -n quart-%{version}
%build
%pyproject_wheel
%check
%pytest
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/quart
%files %{python_files}
%{python_sitelib}/quart
%{python_sitelib}/quart-%{version}.dist-info
%python_alternative %{_bindir}/quart
%post
%python_install_alternative quart
%postun
%python_uninstall_alternative quart
%changelog