public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-gitlab] rawhide: Remove example python-gitlab.cfg configuration file
@ 2026-09-11 20:46 Steve Traylen
0 siblings, 0 replies; only message in thread
From: Steve Traylen @ 2026-09-11 20:46 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-gitlab
Branch : rawhide
Commit : ebfca1d69815aef8a3d25c1e06435753de3b9b95
Author : Steve Traylen <steve.traylen@cern.ch>
Date : 2026-09-11T22:39:05+02:00
Stats : +0/-12 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-gitlab/c/ebfca1d69815aef8a3d25c1e06435753de3b9b95?branch=rawhide
Log:
Remove example python-gitlab.cfg configuration file
- Resolves: rhbz#2531581
This reverts commit 8ac9cbc2980eb6e1785ce8903abbfc9c41751db3.
The existence of a confugration file is enough to stop the default URL
of https://gitlab.com/ being used.
We could mimic the default configuration probably with:
```ini
[global]
default = gitlab_com
[gitlab_com]
url = https://gitlab.com
```
however its probably safer to just not to deploy and let the defaults
play out.
---
diff --git a/python-gitlab.cfg b/python-gitlab.cfg
deleted file mode 100644
index 1e39e02..0000000
--- a/python-gitlab.cfg
+++ /dev/null
@@ -1,8 +0,0 @@
-# /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 d622984..3b0bb9a 100644
--- a/python-gitlab.spec
+++ b/python-gitlab.spec
@@ -9,7 +9,6 @@ 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
@@ -38,7 +37,6 @@ 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
@@ -72,7 +70,6 @@ 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
@@ -80,7 +77,6 @@ install -Dpm 0644 python-gitlab.cfg %{buildroot}%{_sysconfdir}/python-gitlab.cfg
%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-09-11 20:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 20:46 [rpms/python-gitlab] rawhide: Remove 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