* Download packages to subdirectory in PyPI publish CI job * Bump github/codeql-action from 3.29.10 to 3.29.11 * Bump astral-sh/setup-uv from 6.5.0 to 6.6.0 * Specify packages directory for PyPI publish action * Tag a release. * Switch to PyPA's PyPI-publish action in CI * Bump PyO3/maturin-action from 1.49.3 to 1.49.4 * Bump astral-sh/setup-uv from 6.4.3 to 6.5.0 * Bump github/codeql-action from 3.29.8 to 3.29.10 * Bump github/codeql-action from 3.29.3 to 3.29.8 * Bump actions/checkout from 4 to 5 * Bump actions/download-artifact from 4 to 5 * Bump astral-sh/setup-uv from 6.4.1 to 6.4.3 * [pre-commit.ci] pre-commit autoupdate * Tag a release for RISC * fix format error * downgrade riscv64 manylinux version * Allow packaging of wheels for riscv64 architecture * Bump github/codeql-action from 3.29.2 to 3.29.3 * Bump astral-sh/setup-uv from 6.3.1 to 6.4.1 * Tag a release. * Update requirements. * Require maturin>=1.9.0 to ensure support for PEP 639 * Bump astral-sh/setup-uv from 6.3.0 to 6.3.1 * Bump github/codeql-action from 3.29.0 to 3.29.2 * Bump PyO3/maturin-action from 1.49.1 to 1.49.3 * Bump astral-sh/setup-uv from 6.1.0 to 6.3.0 * Bump github/codeql-action from 3.28.19 to 3.29.0 * Bump softprops/action-gh-release from 2.2.2 to 2.3.2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rpds-py?expand=0&rev=9
64 lines
1.9 KiB
RPMSpec
64 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package python-rpds-py
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%global rustflags '-Clink-arg=-Wl,-z,relro,-z,now'
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-rpds-py
|
|
Version: 0.27.1
|
|
Release: 0
|
|
Summary: Python bindings to Rust's persistent data structures (rpds)
|
|
License: MIT
|
|
URL: https://github.com/Julian/rpds.py
|
|
Source: rpds.py-%{version}.tar.gz
|
|
Source1: vendor.tar.zst
|
|
BuildRequires: %{python_module maturin}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: cargo
|
|
BuildRequires: cargo-packaging
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: rust
|
|
BuildRequires: zstd
|
|
# Tests
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: fdupes
|
|
Requires: python-maturin >= 1.2
|
|
%python_subpackages
|
|
|
|
%description
|
|
Python bindings to Rust's persistent data structures (rpds)
|
|
|
|
%prep
|
|
%autosetup -a1 -n rpds.py-%{version}
|
|
|
|
%build
|
|
export RUSTFLAGS=%{rustflags}
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
export RUSTFLAGS=%{rustflags}
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%files %{python_files}
|
|
%{python_sitearch}/rpds
|
|
%{python_sitearch}/rpds_py-%{version}.dist-info/
|
|
|
|
%changelog
|