6 Commits

Author SHA256 Message Date
364d25e37e Accepting request 1301305 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems

OBS-URL: https://build.opensuse.org/request/show/1301305
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uvicorn?expand=0&rev=21
2025-08-26 12:56:24 +00:00
6344422885 - Convert to libalternatives on SLE-16-based and newer systems
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-uvicorn?expand=0&rev=42
2025-08-25 14:28:23 +00:00
4acfcc161d Accepting request 1273799 from devel:languages:python
- Update to 0.34.2:
  * Added
    + Add content-length to 500 response in wsproto implementation
  * Fixed
    + Flush stdout buffer on Windows to trigger reload
    + Drop ASGI spec version to 2.3 on HTTP scope
    + Enable httptools lenient data on httptools >= 0.6.3
  * Deprecated
    + Deprecate ServerState in the main module
  * Removed
    + Drop support for Python 3.8
    + Remove WatchGod support for --reload
- Add patch support-websockets-14+.patch:
  * Ignore multiple classes of DeprecationWarnings.

OBS-URL: https://build.opensuse.org/request/show/1273799
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uvicorn?expand=0&rev=20
2025-05-02 12:55:37 +00:00
99a02240b6 - Update to 0.34.2:
* Added
    + Add content-length to 500 response in wsproto implementation
  * Fixed
    + Flush stdout buffer on Windows to trigger reload
    + Drop ASGI spec version to 2.3 on HTTP scope
    + Enable httptools lenient data on httptools >= 0.6.3
  * Deprecated
    + Deprecate ServerState in the main module
  * Removed
    + Drop support for Python 3.8
    + Remove WatchGod support for --reload
- Add patch support-websockets-14+.patch:
  * Ignore multiple classes of DeprecationWarnings.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-uvicorn?expand=0&rev=40
2025-05-01 06:29:24 +00:00
fd83b63de1 Accepting request 1219531 from devel:languages:python
- update to 0.32.0:
  * Officially support Python 3.13
  * Warn when `max_request_limit` is exceeded
  * Support WebSockets 0.13.1
  * Restore support for `[*]` in trusted hosts
  * Add `PathLike[str]` type hint for `ssl_keyfile`
  * Improve `ProxyHeadersMiddleware` (#2468) and (#2231):
  * Fix the host for requests from clients running on the proxy
    server itself.
  * Fallback to host that was already set for empty x-forwarded-
    for headers.
  * Also allow to specify IP Networks as trusted hosts. This
    greatly simplifies deployments
  * on docker swarm/kubernetes, where the reverse proxy might
    have a dynamic IP.
  * This includes support for IPv6 Address/Networks.
  * Don't warn when upgrade is not WebSocket and depedencies are
    installed
  * Don't close connection before receiving body on H11
  * Close connection when `h11` sets client state to `MUST_CLOSE`
  * Suppress `KeyboardInterrupt` from CLI and programmatic usage
  * `ClientDisconnect` inherits from `OSError` instead of
    `IOError`
  * Add `reason` support to `websocket.disconnect` event
  * Iterate subprocesses in-place on the process manager
  * Allow horizontal tabs `	` in response header values
  * New multiprocess manager
  * Allow `ConfigParser` or a `io.IO[Any]` on `log_config`
  * Suppress side-effects of signal propagation
  * Send `content-length` header on 5xx

OBS-URL: https://build.opensuse.org/request/show/1219531
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uvicorn?expand=0&rev=19
2024-10-30 16:33:31 +00:00
0b0b266674 - update to 0.32.0:
* Officially support Python 3.13
  * Warn when `max_request_limit` is exceeded
  * Support WebSockets 0.13.1
  * Restore support for `[*]` in trusted hosts
  * Add `PathLike[str]` type hint for `ssl_keyfile`
  * Improve `ProxyHeadersMiddleware` (#2468) and (#2231):
  * Fix the host for requests from clients running on the proxy
    server itself.
  * Fallback to host that was already set for empty x-forwarded-
    for headers.
  * Also allow to specify IP Networks as trusted hosts. This
    greatly simplifies deployments
  * on docker swarm/kubernetes, where the reverse proxy might
    have a dynamic IP.
  * This includes support for IPv6 Address/Networks.
  * Don't warn when upgrade is not WebSocket and depedencies are
    installed
  * Don't close connection before receiving body on H11
  * Close connection when `h11` sets client state to `MUST_CLOSE`
  * Suppress `KeyboardInterrupt` from CLI and programmatic usage
  * `ClientDisconnect` inherits from `OSError` instead of
    `IOError`
  * Add `reason` support to `websocket.disconnect` event
  * Iterate subprocesses in-place on the process manager
  * Allow horizontal tabs `	` in response header values
  * New multiprocess manager
  * Allow `ConfigParser` or a `io.IO[Any]` on `log_config`
  * Suppress side-effects of signal propagation
  * Send `content-length` header on 5xx

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-uvicorn?expand=0&rev=38
2024-10-30 10:42:20 +00:00
2 changed files with 22 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-uvicorn
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,11 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-uvicorn
Version: 0.34.2
@@ -38,9 +43,14 @@ 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
BuildArch: noarch
%endif
# SECTION test requirements
BuildRequires: %{python_module PyYAML >= 5.1}
BuildRequires: %{python_module click >= 7.0}
@@ -54,11 +64,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
@@ -85,6 +95,9 @@ 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