public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-starlette] rawhide: Follow upstream in testing with python-httpx2, now that we have it
@ 2026-06-03  9:26 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-03  9:26 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-starlette
Branch : rawhide
Commit : 6fb7f63b2c57b161c559ccbdaab519af6be369ed
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-06-03T10:25:50+01:00
Stats  : +3/-35 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-starlette/c/6fb7f63b2c57b161c559ccbdaab519af6be369ed?branch=rawhide

Log:
Follow upstream in testing with python-httpx2, now that we have it

---
diff --git a/python-starlette-1.2.0-PR3295-undo.patch b/python-starlette-1.2.0-PR3295-undo.patch
deleted file mode 100644
index 44b7188..0000000
--- a/python-starlette-1.2.0-PR3295-undo.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-diff -Naur python-starlette-1.2.0-orig/tests/test_requests.py python-starlette-1.2.0/tests/test_requests.py
---- python-starlette-1.2.0-orig/tests/test_requests.py	2026-05-28 07:36:57.000000000 -0400
-+++ python-starlette-1.2.0/tests/test_requests.py	2026-05-28 13:13:35.414490586 -0400
-@@ -58,7 +58,7 @@
-         "headers": {
-             "host": "example.org",
-             "user-agent": "testclient",
--            "accept-encoding": "gzip, deflate, zstd",
-+            "accept-encoding": "gzip, deflate",
-             "accept": "*/*",
-             "connection": "keep-alive",
-         }
-diff -Naur python-starlette-1.2.0-orig/tests/test_websockets.py python-starlette-1.2.0/tests/test_websockets.py
---- python-starlette-1.2.0-orig/tests/test_websockets.py	2026-05-28 07:36:57.000000000 -0400
-+++ python-starlette-1.2.0/tests/test_websockets.py	2026-05-28 13:13:35.414800795 -0400
-@@ -91,7 +91,7 @@
-     with client.websocket_connect("/") as websocket:
-         expected_headers = {
-             "accept": "*/*",
--            "accept-encoding": "gzip, deflate, zstd",
-+            "accept-encoding": "gzip, deflate",
-             "connection": "upgrade",
-             "host": "testserver",
-             "user-agent": "testclient",

diff --git a/python-starlette.spec b/python-starlette.spec
index 1ec1a71..61fcf22 100644
--- a/python-starlette.spec
+++ b/python-starlette.spec
@@ -7,25 +7,17 @@ License:        BSD-3-Clause
 URL:            https://www.starlette.io/
 Source:         https://github.com/encode/starlette/archive/%{version}/starlette-%{version}.tar.gz
 
-# Since https://github.com/Kludex/starlette/pull/3291, Starlette prefers
-# httpx2, a maintained fork of httpx by the Pydantic people, when it is
-# available. Once we have a python-httpx2 package, we can update the
-# BuildRequires accordingly. Until then, we (downstream-only) revert the part
-# of https://github.com/Kludex/starlette/pull/3295 that adjusted test
-# expectations around the accept-encoding header to match httpx2.
-Patch:          python-starlette-1.2.0-PR3295-undo.patch
-
 BuildSystem:    pyproject
 BuildOption(generate_buildrequires): --extras full
 BuildOption(install): --assert-license starlette
 
 BuildArch:      noarch
 
-# The file requirements.txt pins exact versions and contains many unwanted
+# The “dev” dependency group pins exact versions and contains many unwanted
 # dependencies, e.g. linters and typecheckers (see
 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters).
-# It’s easier to maintain BuildRequires for testing manually than to heavily
-# patch or process the requirements file.
+# It’s easier to maintain BuildRequires for testing manually.
+BuildRequires:  %{py3_dist httpx2[zstd]}
 BuildRequires:  %{py3_dist pytest}
 BuildRequires:  %{py3_dist trio}
 BuildRequires:  %{py3_dist typing_extensions}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-03  9:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03  9:26 [rpms/python-starlette] rawhide: Follow upstream in testing with python-httpx2, now that we have it Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox