python-dulwich/geventhttpclient-compat.patch

36 lines
1.5 KiB
Diff
Raw Normal View History

- Add patch geventhttpclient-compat.patch to make it compatible with latest geventhttpclient. (gh#jelmer/dulwich#1299, gh#jelmer/dulwich#1294) - Update 0.22.1: * Fix pypi deployments by @jelmer in #1284 * Handle alternate case for worktreeconfig setting by @wshanks in #1286 * Ship rust files. Fixes #1287 by @jelmer in #1290 - update 0.22.0: * Start on 0.21.8 by @jelmer in #1240 * Install twine when uploading to pypi by @jelmer in #1241 * Remove shebang from graph.py by @mtelka in #1242 * Disable pypi uploads in disperse; this is now down by the GitHub actions workflow by @jelmer in #1243 * tweak doc-strings in LocalGitClient for clarity by @stspdotname in #1245 * Keep GitHub Actions up to date with GitHub's Dependabot by @cclauss in #1249 * Bump the github_actions group with 5 updates by @dependabot in #1250 * Add Python 3.12 to the testing by @cclauss in #1251 * pyproject.toml: Add trove classifier for Python 3.12 by @cclauss in #1252 * Convert _objects.c to _objects.rs by @jelmer in #1204 * Convert pack C helper to rust by @jelmer in #1255 * Convert diff-tree C helper to rust by @jelmer in #1256 * Revert "Bump the github_actions group with 5 updates" by @jelmer in #1257 * Only expect a shallow update when requesting a depth by @abderrahim in #1259 * Use f-strings by @jelmer in #1263 * Wrap all urllib3 read ProtocolErrors as GitProtocolError by @nanonyme in #1261 * Update cargo dependencies with dependabot by @jelmer in #1264 * wheels: Don't build with nightly by @jelmer in #1273 * Reformat with ruff by @jelmer in #1272 * Use latest cibuildwheel by @jelmer in #1276 * cibuildwheel: define options in pyproject.toml by @jelmer in #1275 * Move tests to root. Fixes #1024 by @jelmer in #1277 OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/python-dulwich?expand=0&rev=33
2024-10-09 13:23:35 +02:00
From 7064f5f0b8094877459f4b6ed2eff72627a19750 Mon Sep 17 00:00:00 2001
From: PerchunPak <git@perchun.it>
Date: Sun, 28 Apr 2024 17:42:10 +0200
Subject: [PATCH] Keep up with changes in geventhttpclient
---
dulwich/contrib/swift.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: dulwich-dulwich-0.22.1/dulwich/contrib/swift.py
===================================================================
--- dulwich-dulwich-0.22.1.orig/dulwich/contrib/swift.py
+++ dulwich-dulwich-0.22.1/dulwich/contrib/swift.py
@@ -257,7 +257,7 @@ class SwiftConnector:
if ret.status_code < 200 or ret.status_code >= 300:
raise SwiftException(
"AUTH v1.0 request failed on "
- + f"{str(auth_httpclient.get_base_url()) + path} with error code {ret.status_code} ({ret.items()!s})"
+ + f"{self.auth_url} with error code {ret.status_code} ({ret.items()!s})"
)
storage_url = ret["X-Storage-Url"]
token = ret["X-Auth-Token"]
Index: dulwich-dulwich-0.22.1/tests/test_greenthreads.py
===================================================================
--- dulwich-dulwich-0.22.1.orig/tests/test_greenthreads.py
+++ dulwich-dulwich-0.22.1/tests/test_greenthreads.py
@@ -35,7 +35,7 @@ except ImportError:
gevent_support = False
if gevent_support:
- from ..greenthreads import GreenThreadsMissingObjectFinder
+ from dulwich.greenthreads import GreenThreadsMissingObjectFinder
skipmsg = "Gevent library is not installed"