Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-ogr for openSUSE:Factory checked in at 2026-05-27 17:34:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ogr (Old) and /work/SRC/openSUSE:Factory/.python-ogr.new.1937 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ogr" Wed May 27 17:34:41 2026 rev:10 rq:1355373 version:0.61.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-ogr/python-ogr.changes 2025-02-12 21:39:43.390500299 +0100 +++ /work/SRC/openSUSE:Factory/.python-ogr.new.1937/python-ogr.changes 2026-05-27 17:34:45.740801165 +0200 @@ -1,0 +2,32 @@ +Wed May 27 06:01:41 UTC 2026 - Steve Kowalik <[email protected]> + +- Update to 0.61.1: (bsc#1266046) + * Now supports Forgejo issues, comments and comment reactions. + * The method get_rate_limit_remaining() now also supports + repository-specific checks for GitHub. + * A new method get_rate_limit_remaining() to check rate limit thresholds + has been added to the service API. + * Improved handling of retries after errors to avoid hitting rate limits if + possible. + * GithubPullRequest.labels property is now cached for better performance + and to be consistent with other services. + * PagureService now accepts an optional user_agent argument to set a + custom User-Agent header. + * It is now possible to pass a headers argument in + PagureProject.get_file_content. The default header is set to Accept: + text/plain. + * We now use httpx when making requests from our Forgejo implementation. + * Support for forgejo commit statuses has been added. + * We have added support for Forgejo releases. + * Support for Forgejo pull requests has been added. + * We have added support for Forgejo methods related to permissions. + * Added support for Forgejo projects. + * We have fixed pagination problems in ogr's + GitlabProject.get_commit_comments(). + * Added base support for forgejo. +- Add patches: + * support-pyforgejo-2.0.7.patch + * fix-github-urls.patch +- Switch to GitHub tarball. + +------------------------------------------------------------------- Old: ---- ogr-0.50.4.tar.gz New: ---- fix-github-urls.patch ogr-0.61.1.tar.gz support-pyforgejo-2.0.7.patch ----------(New B)---------- New: * support-pyforgejo-2.0.7.patch * fix-github-urls.patch - Switch to GitHub tarball. New:- Add patches: * support-pyforgejo-2.0.7.patch * fix-github-urls.patch ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ogr.spec ++++++ --- /var/tmp/diff_new_pack.2bAnv1/_old 2026-05-27 17:34:47.336868007 +0200 +++ /var/tmp/diff_new_pack.2bAnv1/_new 2026-05-27 17:34:47.340868174 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-ogr # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,13 +18,18 @@ %{?sle15_python_module_pythons} Name: python-ogr -Version: 0.50.4 +Version: 0.61.1 Release: 0 Summary: One API for multiple git forges License: MIT URL: https://github.com/packit-service/ogr -Source: https://files.pythonhosted.org/packages/source/o/ogr/ogr-%{version}.tar.gz +Source: https://github.com/packit/ogr/archive/refs/tags/%{version}.tar.gz#/ogr-%{version}.tar.gz +# PATCH-FIX-UPSTREAM gh#packit/ogr#986 +Patch0: support-pyforgejo-2.0.7.patch +# PATCH-FIX-OPENSUSE Fix misordered github URLs +Patch1: fix-github-urls.patch BuildRequires: %{python_module base >= 3.9} +BuildRequires: %{python_module hatch-vcs} BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} BuildRequires: fdupes @@ -34,6 +39,8 @@ Requires: python-PyGithub Requires: python-PyYAML Requires: python-cryptography +Requires: python-httpx +Requires: python-pyforgejo >= 2.0.0 Requires: python-python-gitlab Requires: python-requests Requires: python-urllib3 @@ -45,6 +52,7 @@ BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module cryptography} BuildRequires: %{python_module flexmock} +BuildRequires: %{python_module pyforgejo >= 2.0.0} BuildRequires: %{python_module pytest} BuildRequires: %{python_module python-gitlab} BuildRequires: %{python_module requre} ++++++ fix-github-urls.patch ++++++ ++++ 1482 lines (skipped) ++++++ ogr-0.50.4.tar.gz -> ogr-0.61.1.tar.gz ++++++ ++++ 219681 lines of diff (skipped) ++++++ support-pyforgejo-2.0.7.patch ++++++ >From 0f40decf6d1938ae08ab586544e432db0c81a264 Mon Sep 17 00:00:00 2001 From: Maja Massarini <[email protected]> Date: Wed, 20 May 2026 12:28:50 +0200 Subject: [PATCH] Add retry responses for pyforgejo 2.0.7 in forgejo test cassette pyforgejo changed its default retry behavior between versions 2.0.4 and 2.0.7: - pyforgejo 2.0.4: max_retries defaults to 0 (no retries, 1 HTTP call) - pyforgejo 2.0.7: max_retries defaults to 2 (2 retries, 3 HTTP calls total) The test_issue_no_such_assignee test expects a 500 Internal Server Error response when attempting to add a non-existent user as an assignee. This is the actual behavior of the Forgejo API, and the test verifies that ogr properly converts this to a GitForgeInternalError. Compatibility with both versions: - pyforgejo 2.0.4 (F43): Uses first response, leaves 2 unused (safe) - pyforgejo 2.0.7 (Rawhide): Consumes all 3 responses during retries Fixes test failure in Fedora Rawhide with python3-pyforgejo-2.0.7. --- .../Issues.test_issue_no_such_assignee.yaml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/tests/integration/forgejo/test_data/test_issues/Issues.test_issue_no_such_assignee.yaml b/tests/integration/forgejo/test_data/test_issues/Issues.test_issue_no_such_assignee.yaml index 8051b8f1..868381b3 100644 --- a/tests/integration/forgejo/test_data/test_issues/Issues.test_issue_no_such_assignee.yaml +++ b/tests/integration/forgejo/test_data/test_issues/Issues.test_issue_no_such_assignee.yaml @@ -303,3 +303,69 @@ httpx._client: x-frame-options: SAMEORIGIN next_request: null status_code: 500 + - metadata: + latency: 0.2674534320831299 + module_call_list: + - unittest.case + - requre.record_and_replace + - tests.integration.forgejo.test_issues + - ogr.abstract.exception + - ogr.services.forgejo.issue + - pyforgejo.issue.client + - pyforgejo.issue.raw_client + - pyforgejo.core.http_client + - httpx._client + - requre.objects + - requre.cassette + - httpx._client + - send + output: + __store_indicator: 2 + _content: + message: '' + url: https://v10.next.forgejo.org/api/swagger + _elapsed: 0.267228 + encoding: utf-8 + headers: + cache-control: max-age=0, private, must-revalidate, no-transform + content-length: '64' + content-type: application/json;charset=utf-8 + date: Mon, 05 Jan 2026 11:20:35 GMT + vary: Origin + x-content-type-options: nosniff + x-frame-options: SAMEORIGIN + next_request: null + status_code: 500 + - metadata: + latency: 0.2674534320831299 + module_call_list: + - unittest.case + - requre.record_and_replace + - tests.integration.forgejo.test_issues + - ogr.abstract.exception + - ogr.services.forgejo.issue + - pyforgejo.issue.client + - pyforgejo.issue.raw_client + - pyforgejo.core.http_client + - httpx._client + - requre.objects + - requre.cassette + - httpx._client + - send + output: + __store_indicator: 2 + _content: + message: '' + url: https://v10.next.forgejo.org/api/swagger + _elapsed: 0.267228 + encoding: utf-8 + headers: + cache-control: max-age=0, private, must-revalidate, no-transform + content-length: '64' + content-type: application/json;charset=utf-8 + date: Mon, 05 Jan 2026 11:20:35 GMT + vary: Origin + x-content-type-options: nosniff + x-frame-options: SAMEORIGIN + next_request: null + status_code: 500
