Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-safetensors for openSUSE:Factory checked in at 2024-12-06 14:27:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-safetensors (Old) and /work/SRC/openSUSE:Factory/.python-safetensors.new.28523 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-safetensors" Fri Dec 6 14:27:19 2024 rev:2 rq:1228691 version:0.4.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-safetensors/python-safetensors.changes 2024-10-01 17:12:25.151230752 +0200 +++ /work/SRC/openSUSE:Factory/.python-safetensors.new.28523/python-safetensors.changes 2024-12-06 14:27:42.683839339 +0100 @@ -1,0 +2,18 @@ +Fri Dec 6 04:42:20 UTC 2024 - Steve Kowalik <steven.kowa...@suse.com> + +- Update to 0.4.5: + * Use id rather than modelId + * fix lifetimes, add tensors iterator + * Fixing empty serialization (no tensor) with some metadata. + * Upgrading Pyo3 0.22 (with gil-refs) + * Improving the bf16 tests for PT+TF. + * Add support for xla devices + * Improving bf16 tests + * Fixing zero-width tensor for in memory loading. + * Respects torch.device(0) new behavior without breaking backward + compatibility + * Forcing empty list/empty tuple behavior. +- Run most of the testsuite. +- Switch to cargo-vendor to generate the vendor tarball. + +------------------------------------------------------------------- Old: ---- python-safetensors-0.4.3.tar.gz vendor.tar.gz New: ---- _service python-safetensors-0.4.5.tar.gz vendor.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-safetensors.spec ++++++ --- /var/tmp/diff_new_pack.TArsWr/_old 2024-12-06 14:27:43.307865621 +0100 +++ /var/tmp/diff_new_pack.TArsWr/_new 2024-12-06 14:27:43.311865789 +0100 @@ -15,22 +15,26 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} + %{?sle15_python_module_pythons} Name: python-safetensors -Version: 0.4.3 +Version: 0.4.5 Release: 0 Summary: Safetensors is a simple format for storing tensors safely License: Apache-2.0 URL: https://github.com/huggingface/safetensors Source: https://github.com/huggingface/safetensors/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz -Source1: vendor.tar.gz +Source1: vendor.tar.xz BuildRequires: %{python_module devel} +BuildRequires: %{python_module h5py} BuildRequires: %{python_module maturin} BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} -BuildRequires: fdupes +BuildRequires: %{python_module sympy} +BuildRequires: %{python_module torch} BuildRequires: cargo-packaging +BuildRequires: fdupes %python_subpackages %description @@ -38,11 +42,10 @@ opposed to pickle) and that is still fast (zero-copy). %prep -%autosetup -p1 -n safetensors-%{version} +%autosetup -p1 -n safetensors-%{version} -a1 %build cd bindings/python -tar xzf %{S:1} %pyproject_wheel %install @@ -50,8 +53,17 @@ %pyproject_install %python_expand %fdupes %{buildroot}/%{$python_sitearch}/* +%check +cd bindings/python +# No tensorflow or jax +ignore="--ignore tests/test_tf_comparison.py --ignore tests/test_flax_comparison.py" +# PyTorch breaks under Python 3.13 currently +dontest="not (test_deserialization_safe or test_difference_torch_odd or test_difference_with_torch)" +%pytest_arch $ignore -k "$dontest" tests + %files %{python_files} %license LICENSE %doc README.md -%{python_sitearch}/safetensors* +%{python_sitearch}/safetensors +%{python_sitearch}/safetensors-%{version}.dist-info ++++++ _service ++++++ <services> <service name="cargo_vendor" mode="manual"> <param name="srctar">python-safetensors-0.4.5.tar.gz</param> <param name="cargotoml">bindings/python/Cargo.toml</param> <param name="compression">xz</param> <param name="update">true</param> </service> <service name="cargo_audit" mode="manual"></service> </services> ++++++ python-safetensors-0.4.3.tar.gz -> python-safetensors-0.4.5.tar.gz ++++++ ++++ 1704 lines of diff (skipped)