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

@@ -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