public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-gitlab] rawhide: Add example python-gitlab.cfg configuration file
@ 2026-08-15 8:25 Steve Traylen
0 siblings, 0 replies; only message in thread
From: Steve Traylen @ 2026-08-15 8:25 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-15 8:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-15 8:25 [rpms/python-gitlab] rawhide: Add example python-gitlab.cfg configuration file Steve Traylen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox