14
0
Files
python-python-gitlab/python-python-gitlab.spec
Dirk Mueller 10c673210b Accepting request 1008610 from home:yarunachalam:branches:devel:languages:python
- Update to v3.10.0 (2022-09-28)
  Feature
  Add reset_approvals api (88693ff)
  Add support for deployment approval endpoint (9c9eeb9)
  Fix
  cli: Add missing attributes for creating MRs (1714d0a)
  cli: Add missing attribute for MR changes (20c46a0)
- Update to v3.9.0 (2022-08-28)
  Feature
  Add support for merge_base API (dd4fbd5)
- Update to v3.8.1 (2022-08-10)
  Fix
  client: Do not assume user attrs returned for auth() (a07547c)
- Update to v3.8.0 (2022-08-04)
  Feature
  client: Warn user on misconfigured URL in auth() (0040b43)
  Support downloading archive subpaths (cadb0e5)
  Fix
  client: Ensure encoded query params are never duplicated (1398426)
  Optionally keep user-provided base URL for pagination (#2149) (e2ea8b8)
  Documentation
  Describe self-revoking personal access tokens (5ea48fc)
- v3.7.0 (2022-07-28)
  Feature
  Allow sort/ordering for project releases (b1dd284)
  cli: Add a custom help formatter (005ba93)
  Add support for iterations API (194ee01)
  groups: Add support for shared projects API (66461ba)
  issues: Add support for issue reorder API (8703324)
  namespaces: Add support for namespace existence API (4882cb2)

OBS-URL: https://build.opensuse.org/request/show/1008610
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gitlab?expand=0&rev=24
2022-10-07 07:55:32 +00:00

88 lines
2.8 KiB
RPMSpec

#
# spec file for package python-python-gitlab
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-python-gitlab
Version: 3.9.0
Release: 0
Summary: Python module for interacting with the GitLab API
License: LGPL-3.0-only
Group: Development/Languages/Python
URL: https://github.com/python-gitlab/python-gitlab
Source: https://files.pythonhosted.org/packages/source/p/python-gitlab/python-gitlab-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyYAML >= 5.2
Requires: python-argcomplete >= 1.10.0
Requires: python-requests >= 2.22.0
Requires: python-requests-toolbelt >= 0.9.1
Requires: python-setuptools
Requires: python-six
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module httmock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.22.0}
BuildRequires: %{python_module requests-toolbelt >= 0.9.1}
BuildRequires: %{python_module responses}
BuildRequires: %{python_module six}
# /SECTION
Requires(post): update-alternatives
Requires(postun):update-alternatives
%python_subpackages
%description
The python-gitlab package provides access to the GitLab server API.
It supports the v4 API of GitLab, and provides a CLI tool (gitlab).
%prep
%autosetup -p1 -n python-gitlab-%{version}
# rpmlint non-executable-script
sed -i -e '/^#!\//, 1d' gitlab/cli.py
sed -i -e '/^#!\//, 1d' gitlab/v4/cli.py
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/gitlab
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
touch $HOME/.python-gitlab.cfg
# test_merge_auth: E gitlab.config.GitlabIDError: Impossible to get the gitlab id (not specified in config file)
%pytest tests/unit -k 'not test_merge_auth'
%post
%python_install_alternative gitlab
%postun
%python_uninstall_alternative gitlab
%files %{python_files}
%doc AUTHORS CHANGELOG.md README.rst
%license COPYING
%python_alternative %{_bindir}/gitlab
%{python_sitelib}/*
%changelog