代码拉取完成,页面将自动刷新
%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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。