%global _empty_manifest_terminate_build 0
Name:		python-gitlab
Version:	8.4.0
Release:	1
Summary:	Interact with GitLab API
License:	LGPL-3.0-only
URL:		https://github.com/python-gitlab/python-gitlab
Source0:	%{pypi_source python_gitlab}
BuildArch:	noarch

%description
``python-gitlab`` is a Python package providing access to the GitLab server API.
It supports the v4 API of GitLab, and provides a CLI tool (``gitlab``).

%package -n python3-gitlab
Summary:	Interact with GitLab API
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-wheel
BuildRequires:	python3-pip
Requires:	python3-requests
Requires:	python3-requests-toolbelt
Provides:	python-python-gitlab = %{version}-%{release}
Provides:	python3-python-gitlab = %{version}-%{release}
obsoletes:      python3-python-gitlab
%description -n python3-gitlab
``python-gitlab`` is a Python package providing access to the GitLab server API.
It supports the v4 API of GitLab, and provides a CLI tool (``gitlab``).

%package help
Summary:	Development documents and examples for python-gitlab
Provides:	python3-gitlab-doc
%description help
``python-gitlab`` is a Python package providing access to the GitLab server API.
It supports the v4 API of GitLab, and provides a CLI tool (``gitlab``).

%prep
%autosetup -n python_gitlab-%{version}

# Relax some dependencies
sed -i 's/requests>=2.32.0/requests/' pyproject.toml

%build
%pyproject_build

%install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi

%files -n python3-gitlab
%{_bindir}/gitlab
%{python3_sitelib}/*

%files help
%{_docdir}/*

%changelog
* Wed Jul 01 2026 zhang_jian <zhang_jian7@hoperun.com> - 8.4.0-1
- update to 8.4.0
- Add new Security Manager role 
- Add full service account support at instance, group, and project level

* Thu Feb 26 2026 zhang_jian <zhang_jian7@hoperun.com> - 8.0.0-1
- update to 8.0.0
- Actually define project repr_attr
- File save start_branch as a body attribute
- graphql: GraphQL.execute() no longer accepts graphql.Source

* Thu Dec 04 2025 Fansheng Meng <dev01206@linx-info.com> - 7.0.0-1
- update to 7.0.0
- Drop Python 3.9 support and add Python 3.14
- Enable CHANGELOG.md generation
- Fix permission for stale action and allow manual run
- Fix incorrect start() method usage example
- Add content_ref and dry_run_ref parameters to ProjectCiLintManager
- Implement 'skip_confirmation' in users 'emails' creation
- Implement missing arguments in users 'list'
- Sort 'user list' arguments against documentation 

* Tue Sep 09 2025 lilu <lilu@kylinos.cn> - 6.3.0-1
- Update package to version 6.3.0
  * Add sync method to force remote mirror updates
  * Add missing ProjectJob list filters
  * Add missing ProjectPackageManager list filters
  * Implement support for 'admins' in administrators 'list'

* Mon Aug 04 2025 Ge Wang <wang__ge@126.com> - 6.2.0-1
- Update package to version 6.2.0
  * Add ListMixin to ProjectIssueDiscussionNoteManager
  * Add ListMixin to ProjectMergeRequestDiscussionNoteManager
  * Add listing user contributed projects
  * Add support for project tag list filters
  * Pipeline inputs support
  * Add PLANNER_ACCESS constant
  * Add protectedbranches to group class
  * Adds member role methods
  * Add iteration_id as boards create attribute
  * Add support for adding instance deploy keys
  * Add support for avatar removal
  * Add support for token self-rotation
  * Listmixin.list typing overload
  * Make RESTManager generic on RESTObject class
  * Make RESTObjectList typing generic
  * Implement support for 'silent_mode_enabled'

* Mon Apr 21 2025 zhangxianjun <zhangxianjun.kylinos.cn> - 5.6.0-1
- update to 5.6.0
- group: Add support for group level MR approval rules 
- Add deprecation warning for mirror_pull functions
- Relax typing constraints for response action
- Relax specific required versions of of httpx, gql and respx

* Fri Aug 30 2024 wangkai <13474090681@163.com> - 4.10.0-1
- Update to 4.10.0

* Thu Sep 14 2023 xu_ping <707078654@qq.com> - 3.15.0-2
- Change the package name
- Add package yaml

* Fri Aug 11 2023 jiangchenyang <jiangcy1129@163.com> - 3.15.0-1
- Update package to version 3.15.0

* Tue Feb 14 2023 wubijie <wubijie@kylinos.cn> - 3.13.0-1
- Update package to version 3.13.0

* Mon Dec 05 2022 wangjunqi <wangjunqi@kylinos.cn> - 3.12.0-1
- Update package to version 3.12.0

* Tue Oct 12 2021 caodongxia <caodongxia@huawei.com> - 2.6.0-2
- Delete pycache and tests and v4 directory when uninstalling

* Sat Feb 13 2021 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated