17
0

19 Commits

Author SHA256 Message Date
3141b6d106 Accepting request 1296244 from devel:languages:python
- Correct typing_extensions Requires.

OBS-URL: https://build.opensuse.org/request/show/1296244
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-starlette?expand=0&rev=33
2025-07-30 09:41:31 +00:00
667ab1bec5 - Correct typing_extensions Requires.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-starlette?expand=0&rev=67
2025-07-29 07:20:59 +00:00
5c5bc3a47e Accepting request 1295274 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1295274
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-starlette?expand=0&rev=32
2025-07-24 16:42:20 +00:00
6e1bcf045f - Update to 0.47.2 (fixes CVE-2025-54121, bsc#1246855)
* Make UploadFile check for future rollover #2962.
- Update to 0.47.1
  * Use Self in TestClient.__enter__ #2951
  * Allow async exception handlers to type-check #2949

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-starlette?expand=0&rev=65
2025-07-23 10:51:03 +00:00
9fcb24db08 Accepting request 1283002 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1283002
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-starlette?expand=0&rev=31
2025-06-27 21:00:13 +00:00
db727897cd - Update to 0.47.0
* Added
    + Add support for ASGI pathsend extension #2671.
    + Add partitioned attribute to Response.set_cookie #2501.
  * Changed
    + Change methods parameter type from list[str] to Collection[str] #2903.
    + Replace import typing by from typing import ... in the whole codebase #2867.
  * Fixed
    + Mark ExceptionMiddleware.http_exception as async to prevent thread creation #2922.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-starlette?expand=0&rev=63
2025-06-05 07:48:42 +00:00
1eac7955e7 - Update to 0.46.2:
* Added
    + GZipMiddleware: Make sure Vary header is always added if a response can
      be compressed
    + Add max_part_size parameter to Request.form()
    + Add client parameter to TestClient
    + Make UUID path parameter conversion more flexible
    + Raise ClientDisconnect on StreamingResponse
  * Fixed
    + Use correct index on backwards compatible logic in TemplateResponse
    + Prevents reraising of exception from BaseHTTPMiddleware
    + w relative directory path when follow_symlinks=True
    + Raise exception from background task on BaseHTTPMiddleware
    + GZipMiddleware: Don't compress on server sent events
    + Turn directory into string on lookup_path on commonpath comparison
    + Make create_memory_object_stream compatible with old anyio versions
      once again, and bump anyio minimum version to 3.6.2
    + Collect errors more reliably from WebSocket test client
    + Fix unclosed MemoryObjectReceiveStream upon exception in
      BaseHTTPMiddleware children
    + Use ETag from headers when parsing If-Range in FileResponse
    + Follow directory symlinks in StaticFiles when follow_symlinks=True
    + Bump minimum python-multipart version to 0.0.18
    + Bump minimum httpx version to 0.27.0
  * Removed
    + Drop Python 3.8
    + Remove ExceptionMiddleware import proxy from starlette.exceptions
      module
    + Remove deprecated WS_1004_NO_STATUS_RCVD and WS_1005_ABNORMAL_CLOSURE
    + Remove deprecated allow_redirects argument from TestClient

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-starlette?expand=0&rev=62
2025-05-01 06:06:15 +00:00
033be0d47a Accepting request 1230669 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1230669
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-starlette?expand=0&rev=30
2024-12-13 21:33:08 +00:00
554926720d Accepting request 1230643 from home:bnavigator:branches:devel:languages:python
- Add starlette-pr2773-httpx0.28.patch gh#encode/starlette#2773
  for httpx 0.28

OBS-URL: https://build.opensuse.org/request/show/1230643
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-starlette?expand=0&rev=60
2024-12-12 23:52:34 +00:00
cc5a5fe4b3 Accepting request 1225373 from devel:languages:python
- update to 0.41.3:
  * Exclude the query parameters from the `scope[raw_path]` on
    the `TestClient` #2716.
  * Replace `dict` by `Mapping` on `HTTPException.headers` #2749.
  * Correct middleware argument passing and improve factory
    pattern #2752.
- update to 0.41.2:
  * Revert bump on `python-multipart`
- update to 0.41.1:
  * Bump minimum `python-multipart` version to 0.0.13

OBS-URL: https://build.opensuse.org/request/show/1225373
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-starlette?expand=0&rev=29
2024-11-21 14:13:26 +00:00
0294800489 - update to 0.41.3:
* Exclude the query parameters from the `scope[raw_path]` on
    the `TestClient` #2716.
  * Replace `dict` by `Mapping` on `HTTPException.headers` #2749.
  * Correct middleware argument passing and improve factory
    pattern #2752.
- update to 0.41.2:
  * Revert bump on `python-multipart`
- update to 0.41.1:
  * Bump minimum `python-multipart` version to 0.0.13

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-starlette?expand=0&rev=58
2024-11-20 17:28:57 +00:00
6c936ba219 Accepting request 1222062 from devel:languages:python
- disable PendingDeprecationWarning

OBS-URL: https://build.opensuse.org/request/show/1222062
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-starlette?expand=0&rev=28
2024-11-08 10:56:06 +00:00
57988574a6 - disable PendingDeprecationWarning
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-starlette?expand=0&rev=56
2024-11-07 09:21:19 +00:00
f6e2731713 Accepting request 1208248 from devel:languages:python
- Update to 0.41.0:
  * Allow to raise HTTPException before websocket.accept().
  * Add max_part_size to MultiPartParser to limit the size of parts in
    multipart/form-data requests. (bsc#1231689, CVE-2024-47874)
  * Allow use of request.url_for when only "app" scope is available.
  * Avoid regex re-compilation in responses.py and schemas.py.
  * Improve performance of get_route_path by removing regular expression
    usage.
  * Consider FileResponse.chunk_size when handling multiple ranges.
  * Use token_hex for generating multipart boundary strings.
  * Add support for HTTP Range to FileResponse.
  * Close unclosed MemoryObjectReceiveStream in TestClient.

OBS-URL: https://build.opensuse.org/request/show/1208248
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-starlette?expand=0&rev=27
2024-10-20 08:12:53 +00:00
f2609f6f38 - Update to 0.41.0:
* Allow to raise HTTPException before websocket.accept().
  * Add max_part_size to MultiPartParser to limit the size of parts in
    multipart/form-data requests. (bsc#1231689, CVE-2024-47874)
  * Allow use of request.url_for when only "app" scope is available.
  * Avoid regex re-compilation in responses.py and schemas.py.
  * Improve performance of get_route_path by removing regular expression
    usage.
  * Consider FileResponse.chunk_size when handling multiple ranges.
  * Use token_hex for generating multipart boundary strings.
  * Add support for HTTP Range to FileResponse.
  * Close unclosed MemoryObjectReceiveStream in TestClient.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-starlette?expand=0&rev=54
2024-10-16 04:18:55 +00:00
1f63c1f43b Accepting request 1199466 from devel:languages:python
- update to 0.38.5:
  * Schedule `BackgroundTasks` from within `BaseHTTPMiddleware`
    #2688.
- update to 0.38.4:
  * Ensure accurate `root_path` removal in `get_route_path`
    function #2600
- update to 0.38.3:
  * Support for Python 3.13 #2662.
  * Don't poll for disconnects in `BaseHTTPMiddleware` via
    `StreamingResponse` #2620.

OBS-URL: https://build.opensuse.org/request/show/1199466
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-starlette?expand=0&rev=26
2024-09-09 12:43:25 +00:00
ce1549705c - update to 0.38.5:
* Schedule `BackgroundTasks` from within `BaseHTTPMiddleware`
    #2688.
- update to 0.38.4:
  * Ensure accurate `root_path` removal in `get_route_path`
    function #2600
- update to 0.38.3:
  * Support for Python 3.13 #2662.
  * Don't poll for disconnects in `BaseHTTPMiddleware` via
    `StreamingResponse` #2620.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-starlette?expand=0&rev=52
2024-09-08 15:06:36 +00:00
3e29bbf3d5 Accepting request 1193696 from devel:languages:python
- Update to 0.38.2:
  * Fix routing.get_name() not to assume all routines have __name__ #2648
- 0.38.1:
  * Revert "Add support for ASGI pathsend extension" #2649.
- 0.38.0:
  * Allow use of memoryview in StreamingResponse and Response #2576
    and #2577.
  * Send 404 instead of 500 when filename requested is too long on
    StaticFiles #2583.
  * Fail fast on invalid Jinja2Template instantiation parameters #2568.
  * Check endpoint handler is async only once #2536.
  * Add proper synchronization to WebSocketTestSession #2597.

OBS-URL: https://build.opensuse.org/request/show/1193696
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-starlette?expand=0&rev=25
2024-08-15 07:57:21 +00:00
7203bb809f - Update to 0.38.2:
* Fix routing.get_name() not to assume all routines have __name__ #2648
- 0.38.1:
  * Revert "Add support for ASGI pathsend extension" #2649.
- 0.38.0:
  * Allow use of memoryview in StreamingResponse and Response #2576
    and #2577.
  * Send 404 instead of 500 when filename requested is too long on
    StaticFiles #2583.
  * Fail fast on invalid Jinja2Template instantiation parameters #2568.
  * Check endpoint handler is async only once #2536.
  * Add proper synchronization to WebSocketTestSession #2597.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-starlette?expand=0&rev=50
2024-08-13 11:28:43 +00:00
4 changed files with 150 additions and 15 deletions

View File

@@ -1,3 +1,136 @@
-------------------------------------------------------------------
Tue Jul 29 07:20:41 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Correct typing_extensions Requires.
-------------------------------------------------------------------
Tue Jul 22 07:41:52 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- Update to 0.47.2 (fixes CVE-2025-54121, bsc#1246855)
* Make UploadFile check for future rollover #2962.
- Update to 0.47.1
* Use Self in TestClient.__enter__ #2951
* Allow async exception handlers to type-check #2949
-------------------------------------------------------------------
Wed Jun 4 12:21:42 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.47.0
* Added
+ Add support for ASGI pathsend extension #2671.
+ Add partitioned attribute to Response.set_cookie #2501.
* Changed
+ Change methods parameter type from list[str] to Collection[str] #2903.
+ Replace import typing by from typing import ... in the whole codebase #2867.
* Fixed
+ Mark ExceptionMiddleware.http_exception as async to prevent thread creation #2922.
-------------------------------------------------------------------
Thu May 1 06:01:43 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.46.2:
* Added
+ GZipMiddleware: Make sure Vary header is always added if a response can
be compressed
+ Add max_part_size parameter to Request.form()
+ Add client parameter to TestClient
+ Make UUID path parameter conversion more flexible
+ Raise ClientDisconnect on StreamingResponse
* Fixed
+ Use correct index on backwards compatible logic in TemplateResponse
+ Prevents reraising of exception from BaseHTTPMiddleware
+ w relative directory path when follow_symlinks=True
+ Raise exception from background task on BaseHTTPMiddleware
+ GZipMiddleware: Don't compress on server sent events
+ Turn directory into string on lookup_path on commonpath comparison
+ Make create_memory_object_stream compatible with old anyio versions
once again, and bump anyio minimum version to 3.6.2
+ Collect errors more reliably from WebSocket test client
+ Fix unclosed MemoryObjectReceiveStream upon exception in
BaseHTTPMiddleware children
+ Use ETag from headers when parsing If-Range in FileResponse
+ Follow directory symlinks in StaticFiles when follow_symlinks=True
+ Bump minimum python-multipart version to 0.0.18
+ Bump minimum httpx version to 0.27.0
* Removed
+ Drop Python 3.8
+ Remove ExceptionMiddleware import proxy from starlette.exceptions
module
+ Remove deprecated WS_1004_NO_STATUS_RCVD and WS_1005_ABNORMAL_CLOSURE
+ Remove deprecated allow_redirects argument from TestClient
- Drop patch starlette-pr2773-httpx0.28.patch, included upstream.
-------------------------------------------------------------------
Thu Dec 12 16:09:18 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Add starlette-pr2773-httpx0.28.patch gh#encode/starlette#2773
for httpx 0.28
-------------------------------------------------------------------
Wed Nov 20 17:28:31 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.41.3:
* Exclude the query parameters from the `scope[raw_path]` on
the `TestClient` #2716.
* Replace `dict` by `Mapping` on `HTTPException.headers` #2749.
* Correct middleware argument passing and improve factory
pattern #2752.
- update to 0.41.2:
* Revert bump on `python-multipart`
- update to 0.41.1:
* Bump minimum `python-multipart` version to 0.0.13
-------------------------------------------------------------------
Thu Nov 7 09:20:47 UTC 2024 - Nico Krapp <nico.krapp@suse.com>
- disable PendingDeprecationWarning
-------------------------------------------------------------------
Wed Oct 16 04:18:23 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.41.0:
* Allow to raise HTTPException before websocket.accept().
* Add max_part_size to MultiPartParser to limit the size of parts in
multipart/form-data requests. (bsc#1231689, CVE-2024-47874)
* Allow use of request.url_for when only "app" scope is available.
* Avoid regex re-compilation in responses.py and schemas.py.
* Improve performance of get_route_path by removing regular expression
usage.
* Consider FileResponse.chunk_size when handling multiple ranges.
* Use token_hex for generating multipart boundary strings.
* Add support for HTTP Range to FileResponse.
* Close unclosed MemoryObjectReceiveStream in TestClient.
-------------------------------------------------------------------
Sun Sep 8 15:05:40 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.38.5:
* Schedule `BackgroundTasks` from within `BaseHTTPMiddleware`
#2688.
- update to 0.38.4:
* Ensure accurate `root_path` removal in `get_route_path`
function #2600
- update to 0.38.3:
* Support for Python 3.13 #2662.
* Don't poll for disconnects in `BaseHTTPMiddleware` via
`StreamingResponse` #2620.
-------------------------------------------------------------------
Tue Aug 13 09:41:53 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Update to 0.38.2:
* Fix routing.get_name() not to assume all routines have __name__ #2648
- 0.38.1:
* Revert "Add support for ASGI pathsend extension" #2649.
- 0.38.0:
* Allow use of memoryview in StreamingResponse and Response #2576
and #2577.
* Send 404 instead of 500 when filename requested is too long on
StaticFiles #2583.
* Fail fast on invalid Jinja2Template instantiation parameters #2568.
* Check endpoint handler is async only once #2536.
* Add proper synchronization to WebSocketTestSession #2597.
-------------------------------------------------------------------
Sat Apr 20 08:10:00 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-starlette
#
# Copyright (c) 2024 SUSE LLC
# 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
@@ -27,29 +27,29 @@
%{?sle15_python_module_pythons}
Name: python-starlette%{psuffix}
Version: 0.37.2
Version: 0.47.2
Release: 0
Summary: Lightweight ASGI framework/toolkit
License: BSD-3-Clause
URL: https://github.com/encode/starlette
Source: https://github.com/encode/starlette/archive/refs/tags/%{version}.tar.gz#/starlette-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-anyio >= 3.4.0
Requires: (python-typing_extensions >= 3.10.0 if python-base < 3.10)
Requires: python-anyio >= 3.6.2
Requires: (python-typing_extensions >= 4.10.0 if python-base < 3.13)
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module anyio >= 3.4.0}
BuildRequires: %{python_module anyio >= 3.6.2}
# typing_extensions, see below
# SECTION [full]
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module httpx >= 0.22}
BuildRequires: %{python_module httpx >= 0.28}
BuildRequires: %{python_module itsdangerous}
BuildRequires: %{python_module python-multipart >= 0.0.7}
BuildRequires: %{python_module python-multipart >= 0.0.18}
# /SECTION
# SECTION test
BuildRequires: %{python_module exceptiongroup}
@@ -69,10 +69,12 @@ Starlette is a lightweight ASGI framework/toolkit, which is ideal for
building high performance asyncio services.
%prep
%autosetup -n starlette-%{version}
%autosetup -p1 -n starlette-%{version}
%build
%if ! %{with test}
%pyproject_wheel
%endif
%install
%if ! %{with test}
@@ -89,8 +91,8 @@ building high performance asyncio services.
ignored_tests="test_set_cookie"
ignored_tests="$ignored_tests or test_expires_on_set_cookie"
# fails to raise a deprecation warning as of 2024/04/25
ignored_tests="$ignored_tests or test_lifespan_with_on_events"
%pytest --asyncio-mode=strict -k "not ($ignored_tests)"
##ignored_tests="$ignored_tests or test_lifespan_with_on_events"
%pytest -W ignore::PendingDeprecationWarning --asyncio-mode=strict -k "not ($ignored_tests)"
%endif
@@ -99,7 +101,7 @@ ignored_tests="$ignored_tests or test_lifespan_with_on_events"
%doc README.md
%license LICENSE.md
%{python_sitelib}/starlette
%{python_sitelib}/starlette-%{version}*-info
%{python_sitelib}/starlette-%{version}.dist-info
%endif
%changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1bbb8b114ef94cedef5c2a320ff395dd2c6ab51e86ec605aec00976bd9314f4e
size 2846433

3
starlette-0.47.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1e4f648b4f850a03129900744339701e9c6695af2f06a74cdcc7eadc8db57f3a
size 2583977