Ai
5 Star 0 Fork 16

src-openEuler/python-rpds-py

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-rpds-py.spec 2.30 KB
一键复制 编辑 原始数据 按行查看 历史
大漠行舟 提交于 2025-01-24 09:02 +08:00 . Fix build error for cargo vendor in mainline
%global _empty_manifest_terminate_build 0
Name: python-rpds-py
Version: 0.21.0
Release: 2
Summary: Python bindings to Rust's persistent data structures (rpds).
License: MIT
URL: https://github.com/crate-py/rpds
Source0: https://files.pythonhosted.org/packages/source/r/rpds_py/rpds_py-%{version}.tar.gz
Source1: cargo-vendor-cache
BuildRequires: rust-packaging
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
BuildRequires: python3-maturin
%description
Python bindings to Rust's persistent data structures (rpds).
%package -n python3-rpds-py
Summary: Python bindings to Rust's persistent data structures (rpds).
Provides: python-rpds-py
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-hatchling
%description -n python3-rpds-py
Python bindings to Rust's persistent data structures (rpds).
%package help
Summary: Development documents and examples for rpds-py
Provides: python3-rpds-py-doc
%description help
Development documents and examples for rpds-py.
%prep
%autosetup -n rpds_py-%{version}
tar xzvf %{SOURCE1} -C .
mkdir .cargo
cat >> .cargo/config.toml << EOF
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"
EOF
%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
%files -n python3-rpds-py
%doc README.rst
%license LICENSE
%{python3_sitearch}/rpds
%{python3_sitearch}/rpds_py*.dist-info/
%files help
%{_docdir}/*
%changelog
* Fri Jan 24 2025 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.21.0-2
- Fix build error for cargo vendor in mainline
* Thu Nov 07 2024 caiyuxin <caiyuxin@kylinos.cn> - 0.21.0-1
- Update package to version 0.21.0
* Drop support for 3.8
* Bump pyO3 to 0.22.6
* Mon Aug 19 2024 dongjiao <dongjiao@kylinos.cn> - 0.20.0-1
- Update version to 0.20.0
- Supported python3.13
* Thu Nov 2 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.10.6-1
- Init package
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-rpds-py.git
git@gitee.com:src-openeuler/python-rpds-py.git
src-openeuler
python-rpds-py
python-rpds-py
openEuler-25.03

搜索帮助