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: Add example python-gitlab.cfg configuration file
Date: Sat, 15 Aug 2026 08:25:50 GMT	[thread overview]
Message-ID: <178678235081.1.1851471190322526393.rpms-python-gitlab-8ac9cbc2980e@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-gitlab
            Branch : rawhide
            Commit : 8ac9cbc2980eb6e1785ce8903abbfc9c41751db3
            Author : Steve Traylen <steve.traylen@cern.ch>
            Date   : 2026-08-15T10:08:07+02:00
            Stats  : +12/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-gitlab/c/8ac9cbc2980eb6e1785ce8903abbfc9c41751db3?branch=rawhide

            Log:
            Add example python-gitlab.cfg configuration file

The module supports a configuration file.

Add an empty one so its owned by the RPM.

---
diff --git a/python-gitlab.cfg b/python-gitlab.cfg
new file mode 100644
index 0000000..1e39e02
--- /dev/null
+++ b/python-gitlab.cfg
@@ -0,0 +1,8 @@
+# /etc/python-gitlab.cfg
+#
+# Placeholder configuration file shipped by python-gitlab RPM
+#
+# Users/admins can override by dropping their own config in
+# ~/.python-gitlab.cfg or setting --config-file explicitly.
+
+[global]

diff --git a/python-gitlab.spec b/python-gitlab.spec
index 04ef450..1d9cd41 100644
--- a/python-gitlab.spec
+++ b/python-gitlab.spec
@@ -9,6 +9,7 @@ Summary:        Interact with GitLab API
 License:        LGPL-3.0-only
 URL:            https://github.com/python-gitlab/python-gitlab
 Source0:        %{pypi_source python_gitlab}
+Source1:        python-gitlab.cfg
 BuildArch:      noarch
 
 BuildRequires:  python3-devel
@@ -37,6 +38,7 @@ Documentation for gitlab
 
 %prep
 %autosetup -p1 -n python_%{pypi_name}-%{version}
+cp -p %{SOURCE1} .
 
 # https://github.com/python-gitlab/python-gitlab/pull/3411
 sed -i 's/argcomplete>=1.10.0,<3/argcomplete>=1.10.0,<4/' pyproject.toml
@@ -70,6 +72,7 @@ sed -i 's/coverage.*//'                                requirements-test.txt
 %pyproject_install
 %pyproject_save_files -l gitlab
 
+install -Dpm 0644 python-gitlab.cfg %{buildroot}%{_sysconfdir}/python-gitlab.cfg
 
 %check
 %tox
@@ -77,6 +80,7 @@ sed -i 's/coverage.*//'                                requirements-test.txt
 
 %files -n python3-%{pypi_name} -f %{pyproject_files}
 %{_bindir}/gitlab
+%config(noreplace) %{_sysconfdir}/python-gitlab.cfg
 %doc README.rst CHANGELOG.md
 
 

                 reply	other threads:[~2026-08-15  8:25 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=178678235081.1.1851471190322526393.rpms-python-gitlab-8ac9cbc2980e@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