[packages/python-gitlab] add sample config
glen
glen at pld-linux.org
Sun Oct 16 19:48:58 CEST 2016
commit 25586f6072e4b715a1526357653ee15598b29a55
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Oct 16 20:48:22 2016 +0300
add sample config
http://python-gitlab.readthedocs.io/en/stable/cli.html
config.cfg | 16 ++++++++++++++++
python-gitlab.spec | 3 ++-
2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/python-gitlab.spec b/python-gitlab.spec
index 57ff72d..9b27579 100644
--- a/python-gitlab.spec
+++ b/python-gitlab.spec
@@ -16,6 +16,7 @@ License: LGPLv3
Group: Libraries/Python
Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
# Source0-md5: e0421d930718021e7d796d74d2ad7194
+Source1: config.cfg
URL: https://github.com/gpocentek/python-gitlab
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
@@ -80,7 +81,7 @@ mv $RPM_BUILD_ROOT%{_bindir}/gitlab $RPM_BUILD_ROOT%{_bindir}/gitlab-3
%endif
install -d $RPM_BUILD_ROOT%{_sysconfdir}
-touch $RPM_BUILD_ROOT%{_sysconfdir}/python-gitlab.cfg
+cp -p %{_sourcedir}/config.cfg $RPM_BUILD_ROOT%{_sysconfdir}/python-gitlab.cfg
ln -s gitlab-2 $RPM_BUILD_ROOT%{_bindir}/gitlab
diff --git a/config.cfg b/config.cfg
new file mode 100644
index 0000000..b648df2
--- /dev/null
+++ b/config.cfg
@@ -0,0 +1,16 @@
+# http://python-gitlab.readthedocs.io/en/stable/cli.html
+
+[global]
+default = somewhere
+ssl_verify = true
+timeout = 5
+
+[somewhere]
+url = https://some.whe.re
+private_token = vTbFeqJYCY3sibBP7BZM
+
+[elsewhere]
+url = http://else.whe.re:8080
+private_token = CkqsjqcQSFH5FQKDccu4
+timeout = 1
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-gitlab.git/commitdiff/25586f6072e4b715a1526357653ee15598b29a55
More information about the pld-cvs-commit
mailing list