commit b3a9fc7be5b1afb2a66f654e09a3ab0d1cb2c59f6f2b6cf934cf3b29233c1e8c Author: Adrian Schröter Date: Fri May 3 20:25:16 2024 +0200 Sync from SUSE:SLFO:Main python-cramjam revision 9c48eed425b1210e1074c1f1fe469e16 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/_service b/_service new file mode 100644 index 0000000..0ba906f --- /dev/null +++ b/_service @@ -0,0 +1,25 @@ + + + https://github.com/milesgranger/pyrus-cramjam.git + git + @PARENT_TAG@ + + v2.6.2 + v(.*) + \1 + + + + *.tar + xz + + + + pyrus-cramjam + xz + true + + + pyrus-cramjam + + diff --git a/cargo_config b/cargo_config new file mode 100644 index 0000000..6fb4ff4 --- /dev/null +++ b/cargo_config @@ -0,0 +1,5 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" \ No newline at end of file diff --git a/pyrus-cramjam-2.6.2.tar.xz b/pyrus-cramjam-2.6.2.tar.xz new file mode 100644 index 0000000..1f8ab5a --- /dev/null +++ b/pyrus-cramjam-2.6.2.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:724f84ee34903428759970318a0aad0384a1d60b587e5a026f103ee4e6878824 +size 823568 diff --git a/python-cramjam.changes b/python-cramjam.changes new file mode 100644 index 0000000..a774450 --- /dev/null +++ b/python-cramjam.changes @@ -0,0 +1,65 @@ +------------------------------------------------------------------- +Fri Jan 13 11:04:41 UTC 2023 - Ben Greiner + +- Update to v2.6.2 + * Bump pyo3, numpy and expand pyproject.toml by @milesgranger in + #90 +- Updated crate fixes bzip2 < 0.4.4 vulnerability + * boo#1207039, CVE-2023-22895 + +------------------------------------------------------------------- +Sat Oct 29 09:30:13 UTC 2022 - Ben Greiner + +- Update to v2.6.1 + * Switch brotli2 -> brotli crate by @milesgranger in #87 + +------------------------------------------------------------------- +Fri Oct 28 16:05:38 UTC 2022 - Ben Greiner + +- Update to v2.6.0 + * Update to pyo3 0.16 by @messense in #78 + * Update dependencies and simplify CI by @messense in #79 + * Support Lz4 de/compress_block_into functions by @milesgranger + in #80 + * Upgrade maturin to 0.13.0 by @messense in #81 + * Integration tests, benchmark updates, subclass Buffer by + @milesgranger in #83 + * Bump lz4-sys from 1.9.3 to 1.9.4 by @dependabot in #84 + * Add Python 3.11 by @milesgranger in #85 +- Release v2.5.0 + * Incorporate property-based testing by @milesgranger in #69 + * Support bzip2 by @milesgranger in #70 +- Release v2.4.0 + * This release comes with streaming compression support for all + variants. And updates Gzip compression variant to support + properly decoding input which has multiple streams, as is the + default with std gzip lib. This release does not alter any of + the existing APIs. + * Support compressed gzip multistream (#64) b9cfa13 + * Support Compressor for each variant (#64) 8ecb0fa + * Support .flush for Compressor (#68) 4b92e42 + * Add official OSI name in the license metadata (#66) 446a671 + +------------------------------------------------------------------- +Tue Sep 28 01:17:05 UTC 2021 - William Brown + +- Replace rust-packaging with cargo-packaging + +------------------------------------------------------------------- +Mon Jul 19 19:37:30 UTC 2021 - Ben Greiner + +- Update to 2.3.2 + * no core library code changes +- Update filelist due to updated setuptools: not a single .so but + a full module directory now. +- run cargo crate service: update vendored rust crates +- re-activate cargo audit service + * gh#openSUSE/obs-service-cargo_audit#1 is fixed + +------------------------------------------------------------------- +Tue May 18 14:12:27 UTC 2021 - Ben Greiner + +- initial specfile for 2.3.1 +- new requirement of python-fastparquet 0.6 +- use rust cargo crate vendoring following the how-to from + https://fy.blackhats.net.au/blog/html/2021/02/15/getting_started_packaging_a_rust_cli_tool_in_suse_obs.html diff --git a/python-cramjam.spec b/python-cramjam.spec new file mode 100644 index 0000000..c13ff69 --- /dev/null +++ b/python-cramjam.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-cramjam +# +# 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/ +# + + +# Adjust the version in _service and use `rm -rf pyrus-cramjam; osc service runall` in order to update +Name: python-cramjam +Version: 2.6.2 +Release: 0 +Summary: Thin Python bindings to de/compression algorithms in Rust +License: MIT +URL: https://github.com/milesgranger/pyrus-cramjam +Source: pyrus-cramjam-%{version}.tar.xz +Source1: vendor.tar.xz +Source2: cargo_config +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module maturin >= 0.13} +BuildRequires: %{python_module pip} +BuildRequires: cargo-packaging +BuildRequires: python-rpm-macros +# SECTION test dependencies +BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pytest} +# /SECTION +BuildRequires: fdupes +%python_subpackages + +%description +Extremely thin Python bindings to de/compression algorithms in Rust. +Allows for using algorithms such as Snappy, without any system dependencies. + +%prep +%setup -q -n pyrus-cramjam-%{version} -a1 +cp %{SOURCE2} .cargo/config + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%pytest_arch --ignore benchmarks + +%files %{python_files} +%license LICENSE +%{python_sitearch}/cramjam +%{python_sitearch}/cramjam-%{version}.dist-info + +%changelog diff --git a/vendor.tar.xz b/vendor.tar.xz new file mode 100644 index 0000000..d623e42 --- /dev/null +++ b/vendor.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4bba92ceba18de0f9e5d197f7009e40ba50882f817979c9196d3efd75b29c7cf +size 9890596