From 9fc67df2c610bef949d0bc0450966fc6fdb0436f Mon Sep 17 00:00:00 2001 From: wang--ge Date: Thu, 13 Mar 2025 11:12:35 +0800 Subject: [PATCH] remove invalid patch due to httpd updated --- 0001-Fix-test-error-for-pkg-upgrade.patch | 48 ----------------------- python-starlette.spec | 6 ++- 2 files changed, 4 insertions(+), 50 deletions(-) delete mode 100644 0001-Fix-test-error-for-pkg-upgrade.patch diff --git a/0001-Fix-test-error-for-pkg-upgrade.patch b/0001-Fix-test-error-for-pkg-upgrade.patch deleted file mode 100644 index ef8bf25..0000000 --- a/0001-Fix-test-error-for-pkg-upgrade.patch +++ /dev/null @@ -1,48 +0,0 @@ -From 4ee5ab94366852555b5e88c84ae721719f95f585 Mon Sep 17 00:00:00 2001 -From: desert-sailor -Date: Mon, 10 Mar 2025 15:00:49 +0800 -Subject: [PATCH] Fix test error for pkg upgrade - ---- - tests/middleware/test_wsgi.py | 2 +- - tests/test_requests.py | 4 ++-- - 2 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/tests/middleware/test_wsgi.py b/tests/middleware/test_wsgi.py -index 3511c89..96fe4b9 100644 ---- a/tests/middleware/test_wsgi.py -+++ b/tests/middleware/test_wsgi.py -@@ -78,7 +78,7 @@ def test_wsgi_post(test_client_factory: TestClientFactory) -> None: - client = test_client_factory(app) - response = client.post("/", json={"example": 123}) - assert response.status_code == 200 -- assert response.text == '{"example":123}' -+ assert response.text == '{"example": 123}' - - - def test_wsgi_exception(test_client_factory: TestClientFactory) -> None: -diff --git a/tests/test_requests.py b/tests/test_requests.py -index 7e2c608..b856473 100644 ---- a/tests/test_requests.py -+++ b/tests/test_requests.py -@@ -92,7 +92,7 @@ def test_request_body(test_client_factory: TestClientFactory) -> None: - assert response.json() == {"body": ""} - - response = client.post("/", json={"a": "123"}) -- assert response.json() == {"body": '{"a":"123"}'} -+ assert response.json() == {"body": '{"a": "123"}'} - - response = client.post("/", data="abc") # type: ignore - assert response.json() == {"body": "abc"} -@@ -113,7 +113,7 @@ def test_request_stream(test_client_factory: TestClientFactory) -> None: - assert response.json() == {"body": ""} - - response = client.post("/", json={"a": "123"}) -- assert response.json() == {"body": '{"a":"123"}'} -+ assert response.json() == {"body": '{"a": "123"}'} - - response = client.post("/", data="abc") # type: ignore - assert response.json() == {"body": "abc"} --- -2.43.0 - diff --git a/python-starlette.spec b/python-starlette.spec index 95e3bd9..aab0baa 100644 --- a/python-starlette.spec +++ b/python-starlette.spec @@ -1,12 +1,11 @@ Name: python-starlette Version: 0.46.1 -Release: 1 +Release: 2 Summary: The little ASGI library that shines License: BSD-3-Clause URL: https://www.starlette.io/ Source: https://github.com/encode/starlette/archive/%{version}/starlette-%{version}.tar.gz -Patch1: 0001-Fix-test-error-for-pkg-upgrade.patch BuildArch: noarch @@ -96,6 +95,9 @@ k="${k-}${k+ and }not test_lifespan_with_on_events" %changelog +* Thu Mar 13 2025 Ge Wang - 0.46.1-2 +- Remove invalid patch due to dependency updated + * Mon Mar 10 2025 Dongxing Wang - 0.46.1-1 - Update package with version 0.46.1 Fix: Allow relative directory path when follow_symlinks=True -- Gitee