public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Steve Traylen <steve.traylen@cern.ch>
To: git-commits@fedoraproject.org
Subject: [rpms/python-gitlab] rawhide: Update to v8.4.0
Date: Fri, 29 May 2026 18:48:03 +0000	[thread overview]
Message-ID: <rpms-python-gitlab-82799c67c1d0@fedoraproject.org> (raw)

        A new commit has been pushed.

        Repo   : rpms/python-gitlab
        Branch : rawhide
        Commit : 82799c67c1d0a5295b42a62c0b07636af2ea2265
        Author : Steve Traylen <steve.traylen@cern.ch>
        Date   : 2026-05-29T20:37:43+02:00
        Stats  : +8/-86 in 5 file(s)
        URL    : https://src.fedoraproject.org/rpms/python-gitlab/c/82799c67c1d0a5295b42a62c0b07636af2ea2265?branch=rawhide

        Log:
        Update to v8.4.0

- Resolves: rhbz#2482476
- Drop py3.15 pprint patch

Update to v8.4.0

---
diff --git a/.gitignore b/.gitignore
index 0adf483..a71b605 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,3 +31,4 @@
 /python_gitlab-8.1.0.tar.gz
 /python_gitlab-8.2.0.tar.gz
 /python_gitlab-8.3.0.tar.gz
+/python_gitlab-8.4.0.tar.gz

diff --git a/3400.patch b/3400.patch
deleted file mode 100644
index 574baf1..0000000
--- a/3400.patch
+++ /dev/null
@@ -1,82 +0,0 @@
-From 42f908da992687384e70db9f5882bd9ca95f5213 Mon Sep 17 00:00:00 2001
-From: Steve Traylen <steve.traylen@cern.ch>
-Date: Tue, 19 May 2026 17:37:48 +0200
-Subject: [PATCH] fix(tests): update pformat/pprint assertions for Py3.15
-
-Python 3.15 changed the default behaviour of pprint.PrettyPrinter:
-- default indent changed from 1 to 4
-- default width changed from 80 to 88
-- default compact=False layout now places opening braces/brackets on
-  their own line with contents indented, similar to pretty-printed JSON
-
-See: https://docs.python.org/3.15/library/pprint.html (gh-112632)
----
- tests/unit/base/test_rest_object.py | 41 ++++++++++++++++++++++-------
- 1 file changed, 31 insertions(+), 10 deletions(-)
-
-diff --git a/tests/unit/base/test_rest_object.py b/tests/unit/base/test_rest_object.py
-index 054379f3c..7b39190f4 100644
---- a/tests/unit/base/test_rest_object.py
-+++ b/tests/unit/base/test_rest_object.py
-@@ -3,6 +3,7 @@
- import pickle
- 
- import pytest
-+import sys
- 
- import gitlab
- from gitlab import base
-@@ -222,11 +223,21 @@ def test_pformat(fake_manager):
-     fake_object = helpers.FakeObject(
-         fake_manager, {"attr1": "foo" * 10, "ham": "eggs" * 15}
-     )
--    assert fake_object.pformat() == (
--        "<class 'tests.unit.helpers.FakeObject'> => "
--        "\n{'attr1': 'foofoofoofoofoofoofoofoofoofoo',\n"
--        " 'ham': 'eggseggseggseggseggseggseggseggseggseggseggseggseggseggseggs'}"
--    )
-+    if sys.version_info >= (3, 15):
-+        expected = (
-+            "<class 'tests.unit.helpers.FakeObject'> => "
-+            "\n{\n"
-+            "    'attr1': 'foofoofoofoofoofoofoofoofoofoo',\n"
-+            "    'ham': 'eggseggseggseggseggseggseggseggseggseggseggseggseggseggseggs',\n"
-+            "}"
-+        )
-+    else:
-+        expected = (
-+            "<class 'tests.unit.helpers.FakeObject'> => "
-+            "\n{'attr1': 'foofoofoofoofoofoofoofoofoofoo',\n"
-+            " 'ham': 'eggseggseggseggseggseggseggseggseggseggseggseggseggseggseggs'}"
-+        )
-+    assert fake_object.pformat() == expected
- 
- 
- def test_pprint(capfd, fake_manager):
-@@ -236,11 +247,21 @@ def test_pprint(capfd, fake_manager):
-     result = fake_object.pprint()
-     assert result is None
-     stdout, stderr = capfd.readouterr()
--    assert stdout == (
--        "<class 'tests.unit.helpers.FakeObject'> => "
--        "\n{'attr1': 'foofoofoofoofoofoofoofoofoofoo',\n"
--        " 'ham': 'eggseggseggseggseggseggseggseggseggseggseggseggseggseggseggs'}\n"
--    )
-+    if sys.version_info >= (3, 15):
-+        expected = (
-+            "<class 'tests.unit.helpers.FakeObject'> => "
-+            "\n{\n"
-+            "    'attr1': 'foofoofoofoofoofoofoofoofoofoo',\n"
-+            "    'ham': 'eggseggseggseggseggseggseggseggseggseggseggseggseggseggseggs',\n"
-+            "}\n"
-+        )
-+    else:
-+        expected = (
-+            "<class 'tests.unit.helpers.FakeObject'> => "
-+            "\n{'attr1': 'foofoofoofoofoofoofoofoofoofoo',\n"
-+            " 'ham': 'eggseggseggseggseggseggseggseggseggseggseggseggseggseggseggs'}\n"
-+        )
-+    assert stdout == expected
-     assert stderr == ""
- 
- 

diff --git a/python-gitlab.rpmlintrc b/python-gitlab.rpmlintrc
new file mode 100644
index 0000000..0c2f209
--- /dev/null
+++ b/python-gitlab.rpmlintrc
@@ -0,0 +1,4 @@
+
+
+# Yes expected.
+addFilter('python3-gitlab.noarch: W: no-manual-page-for-binary gitlab')

diff --git a/python-gitlab.spec b/python-gitlab.spec
index fec0ad4..9be1374 100644
--- a/python-gitlab.spec
+++ b/python-gitlab.spec
@@ -2,15 +2,13 @@
 %global pypi_name gitlab
 
 Name:           python-%{pypi_name}
-Version:        8.3.0
+Version:        8.4.0
 Release:        %autorelease
 Summary:        Interact with GitLab API
 
 License:        LGPL-3.0-only
 URL:            https://github.com/python-gitlab/python-gitlab
 Source0:        %{pypi_source python_gitlab}
-# py3.15 pprint change
-Patch0:         https://github.com/python-gitlab/python-gitlab/pull/3400.patch
 BuildArch:      noarch
 
 BuildRequires:  python3-devel
@@ -35,6 +33,7 @@ Documentation for gitlab
 # Relax some dependencies
 sed -i 's/pytest==9.*/pytest>=8.4.2,<10/'              requirements-lint.txt requirements-test.txt
 sed -i 's/respx==0.*/respx>=0,<1.0/'                   requirements-lint.txt requirements-test.txt
+sed -i 's/responses==0.*/responses>=0,<1.0/'           requirements-lint.txt requirements-test.txt
 sed -i 's/wheel==0.*/wheel>=0.45.0,<1.0/'              requirements-test.txt
 sed -i 's/build==1.*/build>=1.0.0,<2.0/'               requirements-test.txt
 sed -i 's/anyio==4.*/anyio>=4.0.0,<5.0/'               requirements-test.txt

diff --git a/sources b/sources
index 5cbdbfc..ab092f1 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (python_gitlab-8.3.0.tar.gz) = 17d7a294ec2b5b5622b9df1a3540dec0bdba6ecb15f22bb1495c1a605ba0e2d9bd6c0710965119b9c144401a8c344230f7d0f4c704497bd9951114049994bb75
+SHA512 (python_gitlab-8.4.0.tar.gz) = 6c3225d939b761add1b786eebd54f45f283dcb76ba64d617b7fb4d4519ec6a2c32109b757dc84ede754c62f6e9656a6a6823b92c1c67b47c9672a19bec53185c

                 reply	other threads:[~2026-05-29 18:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=rpms-python-gitlab-82799c67c1d0@fedoraproject.org \
    --to=steve.traylen@cern.ch \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox