14
0
Files
python-python-gitlab/python-python-gitlab.spec
Matej Cepl 7f2801d493 Accepting request 1117521 from home:mimi_vx:branches:devel:languages:python
- Update to 3.15.0
- force urllib3 < 2 for testsuite
 * Add support for select="package_file" in package upload (3a49f09)
 * api: Add support for events scope parameter (348f56e
 * Usernames support for MR approvals ()a2b8c8c)
 * Remove exclusive EE about issue links (e0f6f18)
 * projects: Allow importing additional items from GitHub (ce84f2e)
 * objects: Support fetching PATs via id or self endpoint (19b38bd)
 * Add resource_weight_event for ProjectIssue (6e5ef55)
 * backends: Use PEP544 protocols for structural subtyping (#2442) (4afeaff)
 * client: Add http_patch method (#2471) (f711d9e)
 * cli: Add setting of allow_force_push for protected branch (929e07d)
 * cli: Warn user when no fields are displayed (8bf53c8)
 * client: Properly parse content-type when charset is present (76063c3)
 * Support int for parent_id in import_group (90f96ac)
 * cli: Add ability to escape at-prefixed parameter (#2513) (4f7c784)
 * cli: Display items when iterator is returned (33a04e7)
 * objects: Fix typo in pipeline schedules (3057f45)
 * advanced: Clarify netrc, proxy behavior with requests (1da7c53)
 * Fix update badge behaviour (3d7ca1c)
 * advanced: Fix typo in Gitlab examples (1992790)
 * group: Add support for group restore API (9322db6)
 * client: Automatically retry on HTTP 409 Resource lock (dced76a)
 * api: Add support for bulk imports API (043de2d)
 * api: Add support for resource groups (5f8b8f5)
 * api: Support listing pipelines triggered by pipeline schedules (865fa41)
 * Allow filtering pipelines by source (b6c0872)
 * client: Bootstrap the http backends concept (#2391) (91a665f)
 * Add resource iteration events (see https://docs.gitlab.com/ee/api/resource_iteration_events.html)
 * Allow passing kwargs to Gitlab class when instantiating with from_config (#2392) (e88d34e)

OBS-URL: https://build.opensuse.org/request/show/1117521
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gitlab?expand=0&rev=34
2023-10-12 19:25:51 +00:00

85 lines
2.7 KiB
RPMSpec

#
# spec file for package python-python-gitlab
#
# Copyright (c) 2023 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/
#
Name: python-python-gitlab
Version: 3.15.0
Release: 0
Summary: Python module for interacting with the GitLab API
License: LGPL-3.0-only
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
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}
# force urllib3 < 2, for tests to passs
BuildRequires: %{python_module urllib3 < 2}
# /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