forked from pool/python-uvicorn
Compare commits
4 Commits
Author | SHA256 | Date | |
---|---|---|---|
d46af83575 | |||
e5aaa0840c | |||
5b19213f31 | |||
d54bdd799e |
@@ -1,8 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 25 14:27:42 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives on SLE-16-based and newer systems
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 1 06:28:46 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-uvicorn
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,11 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} > 1500
|
||||
%bcond_without libalternatives
|
||||
%else
|
||||
%bcond_with libalternatives
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-uvicorn
|
||||
Version: 0.34.2
|
||||
@@ -43,14 +38,9 @@ Requires: python-h11 >= 0.8.0
|
||||
Recommends: python-PyYAML >= 5.1
|
||||
Recommends: python-httptools >= 0.4.0
|
||||
Recommends: python-websockets >= 8.0
|
||||
BuildArch: noarch
|
||||
%if %{with libalternatives}
|
||||
BuildRequires: alts
|
||||
Requires: alts
|
||||
%else
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module PyYAML >= 5.1}
|
||||
BuildRequires: %{python_module click >= 7.0}
|
||||
@@ -64,11 +54,11 @@ BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module python-dotenv}
|
||||
BuildRequires: %{python_module requests}
|
||||
BuildRequires: %{python_module trustme}
|
||||
BuildRequires: %{python_module websockets >= 10.4}
|
||||
BuildRequires: %{python_module wsproto >= 1.2.0}
|
||||
%if 0%{?suse_version} > 1500
|
||||
BuildRequires: %{python_module uvloop >= 0.14.0}
|
||||
%endif
|
||||
BuildRequires: %{python_module websockets >= 10.4}
|
||||
BuildRequires: %{python_module wsproto >= 1.2.0}
|
||||
# We don't want watchfiles in Ring1
|
||||
#BuildRequires: #{python_module watchfiles >= 0.13}
|
||||
# /SECTION
|
||||
@@ -95,9 +85,6 @@ It supports HTTP/1.1 and WebSockets only.
|
||||
%postun
|
||||
%python_uninstall_alternative uvicorn
|
||||
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative uvicorn
|
||||
|
||||
%check
|
||||
# Required for reporting bugs
|
||||
%python_exec -m uvicorn --version
|
||||
|
Reference in New Issue
Block a user