14
0
Files
python-rpds-py/python-rpds-py.spec
Matej Cepl f7a30e45a2 Accepting request 1228320 from system:homeautomation:home-assistant
- Update to version 0.21.0:
  * Release v0.21.0
  * Oh hello there zizmor.
  * Add a link to the upstream repo.
  * The packaging docs apparently discourage license.
  * bump pyO3 to 0.22.6
  * Update requirements.
  * Drop support for 3.8, which is EOL.
  * Bump to 0.20.1.
  * Set --profile=dev in tests to catch issues like #86.
  * Bump pyo3 from 0.22.3 to 0.22.5
  * Bump wntrblm/nox from 2024.04.15 to 2024.10.09
  * [pre-commit.ci] pre-commit autoupdate
  * Bump pyo3 from 0.22.2 to 0.22.3
  * Bump archery from 1.2.0 to 1.2.1
  * Fix hashing overflow issues
  * Tag a release.
  * Minor comment typo.
  * [pre-commit.ci] pre-commit autoupdate
  * Bump hynek/setup-cached-uv from 1 to 2
  * Tag a release.
  * Bump pyo3 from 0.22.1 to 0.22.2
  * Better result handling
  * Fix ruff configuration section
  * Fix styling
  * Turn on hashing tests for HashTrieMap
  * Remove hash error handling for elements in HashTrieSet
  * Implement __hash__ for HashTrieMap
  * Fix tests
  * Remove __hash__ for HashTrieMap

OBS-URL: https://build.opensuse.org/request/show/1228320
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rpds-py?expand=0&rev=5
2024-12-04 22:12:03 +00:00

66 lines
1.9 KiB
RPMSpec

#
# spec file for package python-rpds-py
#
# Copyright (c) 2024 SUSE LLC
#
# 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.21.0
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
Source2: cargo_config
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}
cp %{SOURCE2} .cargo/config
%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