forked from pool/python-uvicorn
- Update to version 0.20.0: * Check if handshake is completed before sending frame on `wsproto` shutdown (#1737) * Add default headers to WebSockets implementations (#1606 & #1747) 28/10/22 * Warn user when `reload` and `workers` flag are used together (#1731) 31/10/22 * Use correct `WebSocket` error codes on `close` (#1753) 20/11/22 * Send disconnect event on connection lost for `wsproto` (#996) 29/10/22 * Add `SIGQUIT` handler to `UvicornWorker` (#1710) 01/11/22 * Fix crash on exist with "--uds" if socket doesn't exist (#1725) 27/10/22 * Annotate `CONFIG_KWARGS` in `UvicornWorker` class (#1746) 31/10/22 * Remove conditional on `RemoteProtocolError.event_hint` on `wsproto` (#1486) 31/10/22 * Remove unused `handle_no_connect` on `wsproto` implementation (#1759) 17/11/22 - version 0.19.0 * Support Python 3.11 (#1652) 16/09/22 * Bump minimal `httptools` version to `0.5.0` (#1645) 13/09/22 * Ignore HTTP/2 upgrade and optionally ignore WebSocket upgrade (#1661) 19/10/22 * Add `py.typed` to comply with PEP 561 (#1687) 07/10/22 * Set `propagate` to `False` on "uvicorn" logger (#1288) 08/10/22 * USR1 signal is now handled correctly on `UvicornWorker`. (#1565) 26/08/22 * Use path with query string on `WebSockets` logs (#1385) 11/09/22 * Fix behavior on which "Date" headers were not updated on the same connection (#1706) 19/10/22 * Remove the `--debug` flag (#1640) 14/09/22 * Remove the `DebugMiddleware` (#1697) 07/10/22 - version 0.18.3 * Remove cyclic references on HTTP implementations. (#1604) 24/08/22 * `reload_delay` default changed from `None` to `0.25` on `uvicorn.run()` and `Config`. `None` is not an acceptable value anymore. (#1545) 02/07/22 - remove OBS-URL: https://build.opensuse.org/request/show/1066222 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-uvicorn?expand=0&rev=14
104 lines
3.3 KiB
RPMSpec
104 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package python-uvicorn
|
|
#
|
|
# Copyright (c) 2023 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/
|
|
#
|
|
|
|
|
|
Name: python-uvicorn
|
|
Version: 0.20.0
|
|
Release: 0
|
|
Summary: An Asynchronous Server Gateway Interface server
|
|
License: BSD-3-Clause
|
|
URL: https://github.com/encode/uvicorn
|
|
Source: https://github.com/encode/uvicorn/archive/%{version}.tar.gz#/uvicorn-%{version}.tar.gz
|
|
BuildRequires: %{python_module base >= 3.7}
|
|
BuildRequires: %{python_module hatchling}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-click >= 7.0
|
|
Requires: python-h11 >= 0.8.0
|
|
%if 0%{python_version_nodots} < 38
|
|
Requires: python-typing_extensions
|
|
%endif
|
|
Recommends: python-PyYAML >= 5.1
|
|
Recommends: python-httptools >= 0.4.0
|
|
Recommends: python-websockets >= 8.0
|
|
Suggests: python-uvloop >= 0.14.0
|
|
Suggests: python-watchfiles >= 0.13
|
|
Suggests: python-wsproto >= 1.2.0
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module PyYAML >= 5.1}
|
|
BuildRequires: %{python_module asgiref >= 3.4}
|
|
BuildRequires: %{python_module click >= 7.0}
|
|
BuildRequires: %{python_module h11 >= 0.8.0}
|
|
BuildRequires: %{python_module httptools >= 0.4.0}
|
|
BuildRequires: %{python_module httpx >= 0.18}
|
|
BuildRequires: %{python_module pytest-asyncio}
|
|
BuildRequires: %{python_module pytest-mock}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module python-dotenv}
|
|
BuildRequires: %{python_module requests}
|
|
BuildRequires: %{python_module trustme}
|
|
BuildRequires: %{python_module typing_extensions if %python-base < 3.8}
|
|
BuildRequires: %{python_module uvloop >= 0.14.0}
|
|
BuildRequires: %{python_module websockets >= 8.0}
|
|
BuildRequires: %{python_module wsproto >= 1.2.0}
|
|
# We don't want watchfiles in Ring1
|
|
#BuildRequires: #{python_module watchfiles >= 0.13}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Uvicorn is an ASGI server implementation, using uvloop and httptools.
|
|
It supports HTTP/1.1 and WebSockets only.
|
|
|
|
%prep
|
|
%autosetup -p1 -n uvicorn-%{version}
|
|
rm setup.cfg
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_clone -a %{buildroot}%{_bindir}/uvicorn
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%post
|
|
%python_install_alternative uvicorn
|
|
|
|
%postun
|
|
%python_uninstall_alternative uvicorn
|
|
|
|
%check
|
|
# Required for reporting bugs
|
|
%python_exec -m uvicorn --version
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE.md
|
|
%python_alternative %{_bindir}/uvicorn
|
|
%{python_sitelib}/uvicorn
|
|
%{python_sitelib}/uvicorn-%{version}*-info
|
|
|
|
%changelog
|