Sync from SUSE:SLFO:Main python-rpds-py revision 8297e1fe14ad3972cbe96a0855c8bb88

This commit is contained in:
Adrian Schröter 2024-05-03 22:52:26 +02:00
commit 6b9c203cfe
9 changed files with 139 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

23
_service Normal file
View File

@ -0,0 +1,23 @@
<services>
<service name="obs_scm" mode="disabled">
<param name="url">https://github.com/Julian/rpds.py</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="revision">v0.7.1</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
<param name="versionrewrite-pattern">v(.*)</param>
</service>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="cargo_vendor" mode="disabled">
<param name="srcdir">rpds.py</param>
<param name="update">true</param>
</service>
<service name="cargo_audit" mode="disabled">
<param name="srcdir">rpds.py</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/Julian/rpds.py</param>
<param name="changesrevision">bb7264c86e006b74b30c10436913ae4616e5cb76</param></service></servicedata>

5
cargo_config Normal file
View File

@ -0,0 +1,5 @@
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"

9
python-rpds-py.changes Normal file
View File

@ -0,0 +1,9 @@
-------------------------------------------------------------------
Fri May 5 11:14:59 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- add sle15_python_module_pythons
-------------------------------------------------------------------
Mon Mar 20 14:29:30 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- new package python-rpds-py, needed as dependency for jsonschema

65
python-rpds-py.spec Normal file
View File

@ -0,0 +1,65 @@
#
# spec file for package python-rpds-py
#
# Copyright (c) 2023 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.7.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
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
%python_subpackages
%description
Python bindings to Rust's persistent data structures (rpds)
%prep
%autosetup -a1 -n rpds.py-%{version}
mkdir .cargo
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

BIN
rpds.py-0.7.1.obscpio (Stored with Git LFS) Normal file

Binary file not shown.

4
rpds.py.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: rpds.py
version: 0.7.1
mtime: 1679340311
commit: bb7264c86e006b74b30c10436913ae4616e5cb76

BIN
vendor.tar.zst (Stored with Git LFS) Normal file

Binary file not shown.