diff --git a/python-gitlab-2.1.2.tar.gz b/python-gitlab-2.1.2.tar.gz deleted file mode 100644 index 8e73cf6..0000000 --- a/python-gitlab-2.1.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:71445d7444fe3354bf90a52d6249f91c9e572a8ef6c143afd9de25f50c92d499 -size 129023 diff --git a/python-gitlab-2.2.0.tar.gz b/python-gitlab-2.2.0.tar.gz new file mode 100644 index 0000000..472ac0b --- /dev/null +++ b/python-gitlab-2.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c4ea60c8303f4214522b18038df017cae35afda7474efa0b4e19c2e73bc3ae2 +size 136178 diff --git a/python-python-gitlab.changes b/python-python-gitlab.changes index 9bacba9..ce8010a 100644 --- a/python-python-gitlab.changes +++ b/python-python-gitlab.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Mon May 4 18:51:52 UTC 2020 - Matej Cepl + +- 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 diff --git a/python-python-gitlab.spec b/python-python-gitlab.spec index def016c..76022a1 100644 --- a/python-python-gitlab.spec +++ b/python-python-gitlab.spec @@ -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