Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-starlette for 
openSUSE:Factory checked in at 2024-12-13 22:33:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-starlette (Old)
 and      /work/SRC/openSUSE:Factory/.python-starlette.new.29675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-starlette"

Fri Dec 13 22:33:08 2024 rev:30 rq:1230669 version:0.41.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-starlette/python-starlette.changes        
2024-11-21 15:13:52.733610015 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-starlette.new.29675/python-starlette.changes 
    2024-12-13 22:33:33.266102792 +0100
@@ -1,0 +2,6 @@
+Thu Dec 12 16:09:18 UTC 2024 - Ben Greiner <c...@bnavigator.de>
+
+- Add starlette-pr2773-httpx0.28.patch gh#encode/starlette#2773
+  for httpx 0.28
+
+-------------------------------------------------------------------

New:
----
  starlette-pr2773-httpx0.28.patch

BETA DEBUG BEGIN:
  New:
- Add starlette-pr2773-httpx0.28.patch gh#encode/starlette#2773
  for httpx 0.28
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-starlette.spec ++++++
--- /var/tmp/diff_new_pack.g33FlR/_old  2024-12-13 22:33:34.602158514 +0100
+++ /var/tmp/diff_new_pack.g33FlR/_new  2024-12-13 22:33:34.606158680 +0100
@@ -33,6 +33,8 @@
 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
+# PATCH-FIX-UPSTREAM starlette-pr2773-httpx0.28.patch gh#encode/starlette#2773
+Patch0:         
https://github.com/encode/starlette/pull/2773.patch#/starlette-pr2773-httpx0.28.patch
 BuildRequires:  %{python_module base >= 3.8}
 BuildRequires:  %{python_module hatchling}
 BuildRequires:  %{python_module pip}
@@ -47,7 +49,7 @@
 # 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}
 # /SECTION
@@ -69,10 +71,12 @@
 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}

++++++ starlette-pr2773-httpx0.28.patch ++++++
>From b781c571068f4afc0417c7dfb8df2eda0547af55 Mon Sep 17 00:00:00 2001
From: Marcelo Trylesinski <marcelotr...@gmail.com>
Date: Sat, 30 Nov 2024 10:32:50 +0100
Subject: [PATCH 1/2] Pin httpx in `full` extra

---
 pyproject.toml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyproject.toml b/pyproject.toml
index a532e4628..598d4333b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -37,7 +37,7 @@ full = [
     "jinja2",
     "python-multipart>=0.0.7",
     "pyyaml",
-    "httpx>=0.22.0",
+    "httpx>=0.27.0,<0.29.0",
 ]
 
 [project.urls]

>From 24de2bfc8aa99a084a9b4fcfab1e52d7a6747cd9 Mon Sep 17 00:00:00 2001
From: Marcelo Trylesinski <marcelotr...@gmail.com>
Date: Sat, 30 Nov 2024 10:51:11 +0100
Subject: [PATCH 2/2] fix test

---
 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 58696bb65..e4ac66ab4 100644
--- a/tests/middleware/test_wsgi.py
+++ b/tests/middleware/test_wsgi.py
@@ -77,7 +77,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 f0494e751..665dceb87 100644
--- a/tests/test_requests.py
+++ b/tests/test_requests.py
@@ -91,7 +91,7 @@ async def app(scope: Scope, receive: Receive, send: Send) -> 
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"}
@@ -112,7 +112,7 @@ async def app(scope: Scope, receive: Receive, send: Send) 
-> 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"}

Reply via email to