5 Star 0 Fork 14

src-openEuler / python-gitlab
关闭

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-gitlab.spec 2.72 KB
一键复制 编辑 原始数据 按行查看 历史
wk333 提交于 2024-08-30 15:23 +08:00 . Update to 4.10.0
%global _empty_manifest_terminate_build 0
Name: python-gitlab
Version: 4.10.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
* 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-gitlab.git
git@gitee.com:src-openeuler/python-gitlab.git
src-openeuler
python-gitlab
python-gitlab
openEuler-25.03

搜索帮助