14
0

- Don't use %python3_only command, but properly use alternatives.

- Update to 2.2.0:
  - add missing import_project param
  - types: do not split single value string in ListAttribute
  - add commit GPG signature API
  - add create from template args to ProjectManager
  - add remote mirrors API (#1056)
  - add Gitlab Deploy Token API
  - add Group Import/Export API (#1037)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gitlab?expand=0&rev=18
This commit is contained in:
2020-05-04 18:58:25 +00:00
committed by Git OBS Bridge
parent 32031fcfd6
commit f653dd2d36
4 changed files with 27 additions and 5 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:71445d7444fe3354bf90a52d6249f91c9e572a8ef6c143afd9de25f50c92d499
size 129023

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4c4ea60c8303f4214522b18038df017cae35afda7474efa0b4e19c2e73bc3ae2
size 136178

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon May 4 18:51:52 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Don't use %python3_only command, but properly use alternatives.
- Update to 2.2.0:
- add missing import_project param
- types: do not split single value string in ListAttribute
- add commit GPG signature API
- add create from template args to ProjectManager
- add remote mirrors API (#1056)
- add Gitlab Deploy Token API
- add Group Import/Export API (#1037)
-------------------------------------------------------------------
Mon Apr 20 10:05:29 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-python-gitlab
Version: 2.1.2
Version: 2.2.0
Release: 0
Summary: Python module for interacting with the GitLab API
License: LGPL-3.0-only
@@ -42,6 +42,8 @@ BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.22.0}
BuildRequires: %{python_module six}
# /SECTION
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
@@ -61,15 +63,22 @@ sed -i -e '/^#!\//, 1d' gitlab/v4/cli.py
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/gitlab
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative gitlab
%postun
%python_uninstall_alternative gitlab
%files %{python_files}
%doc AUTHORS ChangeLog.rst README.rst
%license COPYING
%python3_only %{_bindir}/gitlab
%python_alternative %{_bindir}/gitlab
%{python_sitelib}/*
%changelog