forked from pool/python-cramjam
Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| f4f4d340c0 | |||
| f62c9f72f9 | |||
| 0a699f1702 | |||
| 8181ca9836 | |||
| 0f9d1271ca | |||
| 40339c1404 |
2
_service
2
_service
@@ -4,7 +4,7 @@
|
|||||||
<param name="scm">git</param>
|
<param name="scm">git</param>
|
||||||
<param name="versionformat">@PARENT_TAG@</param>
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
<!-- can change back to master when there are no .post tags on top of the branch -->
|
<!-- can change back to master when there are no .post tags on top of the branch -->
|
||||||
<param name="revision">v2.9.1</param>
|
<param name="revision">v2.11.0</param>
|
||||||
<param name="versionrewrite-pattern">v(.*)</param>
|
<param name="versionrewrite-pattern">v(.*)</param>
|
||||||
<param name="versionrewrite-replacement">\1</param>
|
<param name="versionrewrite-replacement">\1</param>
|
||||||
</service>
|
</service>
|
||||||
|
|||||||
3
cramjam-2.11.0.tar.xz
Normal file
3
cramjam-2.11.0.tar.xz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c420c6c5d6d27df9c783869c8bf55971a03ecaf7684beea507a5ab15d1b8f0ce
|
||||||
|
size 56189840
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:b52175262a350c7aa536bdd8e1b31574de6c6ce475e83cb4e0a56a438349a8bd
|
|
||||||
size 56142388
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
Index: cramjam-2.9.1/tests/test_variants.py
|
Index: cramjam-2.11.0/tests/test_variants.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- cramjam-2.9.1.orig/tests/test_variants.py
|
--- cramjam-2.11.0.orig/tests/test_variants.py
|
||||||
+++ cramjam-2.9.1/tests/test_variants.py
|
+++ cramjam-2.11.0/tests/test_variants.py
|
||||||
@@ -104,7 +104,7 @@ def test_variants_raise_exception(varian
|
@@ -104,7 +104,7 @@ def test_variants_raise_exception(varian
|
||||||
"output_type", (bytes, bytearray, "numpy", cramjam.Buffer, cramjam.File, memoryview)
|
"output_type", (bytes, bytearray, "numpy", cramjam.Buffer, cramjam.File, memoryview)
|
||||||
)
|
)
|
||||||
@@ -9,16 +9,20 @@ Index: cramjam-2.9.1/tests/test_variants.py
|
|||||||
-@given(raw_data=st.binary())
|
-@given(raw_data=st.binary())
|
||||||
+@given(raw_data=st.binary(min_size=2))
|
+@given(raw_data=st.binary(min_size=2))
|
||||||
def test_variants_compress_into(
|
def test_variants_compress_into(
|
||||||
variant_str, input_type, output_type, raw_data, tmp_path_factory, is_pypy
|
variant_str,
|
||||||
):
|
input_type,
|
||||||
@@ -174,13 +174,10 @@ def test_variants_compress_into(
|
@@ -181,7 +181,7 @@ def test_variants_compress_into(
|
||||||
"output_type", (bytes, bytearray, "numpy", cramjam.Buffer, cramjam.File, memoryview)
|
"output_type", (bytes, bytearray, "numpy", cramjam.Buffer, cramjam.File, memoryview)
|
||||||
)
|
)
|
||||||
@pytest.mark.parametrize("variant_str", VARIANTS)
|
@pytest.mark.parametrize("variant_str", VARIANTS)
|
||||||
-@given(raw_data=st.binary())
|
-@given(raw_data=st.binary())
|
||||||
+@given(raw_data=st.binary(min_size=2))
|
+@given(raw_data=st.binary(min_size=2))
|
||||||
def test_variants_decompress_into(
|
def test_variants_decompress_into(
|
||||||
variant_str, input_type, output_type, tmp_path_factory, raw_data, is_pypy
|
variant_str,
|
||||||
|
input_type,
|
||||||
|
@@ -191,9 +191,6 @@ def test_variants_decompress_into(
|
||||||
|
is_pypy,
|
||||||
|
is_free_threaded,
|
||||||
):
|
):
|
||||||
- if variant_str == "izlib" and output_type == "memoryview":
|
- if variant_str == "izlib" and output_type == "memoryview":
|
||||||
- pytest.skip("See issue https://github.com/milesgranger/cramjam/issues/193")
|
- pytest.skip("See issue https://github.com/milesgranger/cramjam/issues/193")
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
--- cramjam/pyproject.toml 2024-12-18 12:38:18.002576474 +0100
|
Index: cramjam-2.11.0/pyproject.toml
|
||||||
+++ cramjam.patch/pyproject.toml 2024-12-18 14:11:22.834831651 +0100
|
===================================================================
|
||||||
@@ -14,7 +14,25 @@
|
--- cramjam-2.11.0.orig/pyproject.toml
|
||||||
|
+++ cramjam-2.11.0/pyproject.toml
|
||||||
|
@@ -15,7 +15,26 @@ requires = ["maturin>=0.14"]
|
||||||
build-backend = "maturin"
|
build-backend = "maturin"
|
||||||
|
|
||||||
[tool.maturin]
|
[tool.maturin]
|
||||||
-strip = true
|
-strip = true
|
||||||
|
+strip = false
|
||||||
+no-default-features = true
|
+no-default-features = true
|
||||||
+features = [
|
+features = [
|
||||||
+ "extension-module",
|
+ "extension-module",
|
||||||
@@ -21,9 +24,23 @@
|
|||||||
+ "gzip-shared",
|
+ "gzip-shared",
|
||||||
+ "zlib-shared",
|
+ "zlib-shared",
|
||||||
+ "deflate-shared",
|
+ "deflate-shared",
|
||||||
+ "blosc2-shared",
|
+# "blosc2-shared",
|
||||||
+ "use-system-blosc2-shared"
|
+# "use-system-blosc2-shared"
|
||||||
+]
|
+]
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[dependency-groups]
|
||||||
dev = [
|
dev = [
|
||||||
|
Index: cramjam-2.11.0/Cargo.toml
|
||||||
|
===================================================================
|
||||||
|
--- cramjam-2.11.0.orig/Cargo.toml
|
||||||
|
+++ cramjam-2.11.0/Cargo.toml
|
||||||
|
@@ -79,7 +79,8 @@ libcramjam = { version = "^0.8", default
|
||||||
|
pyo3-build-config = "^0.25"
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
-strip = true
|
||||||
|
+strip = "none"
|
||||||
|
+debug = true
|
||||||
|
lto = "fat"
|
||||||
|
codegen-units = 1
|
||||||
|
opt-level = 3
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
name: cramjam
|
name: cramjam
|
||||||
version: 2.9.1
|
version: 2.11.0
|
||||||
mtime: 1734006355
|
mtime: 1753648793
|
||||||
commit: 6b30efc6ee36c80f7a4e1311cc8e9119905b03e0
|
commit: 1f411f3a05e5acf96ca8a632087916d5bf8b3500
|
||||||
|
|||||||
@@ -1,3 +1,31 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 2 16:11:13 UTC 2026 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Update to 2.11.0
|
||||||
|
* Initial impl zero-copy Buffer by @milesgranger in #209
|
||||||
|
* Buffer: Fix extended and negative int reads by @milesgranger in
|
||||||
|
#210
|
||||||
|
* Initial Type/JavaScript support by @milesgranger in #217
|
||||||
|
* Fix lz4.decompress_block_into w/o prepended size by
|
||||||
|
@milesgranger in #219
|
||||||
|
* Add typing stub files and proper docs site by @milesgranger in
|
||||||
|
#220
|
||||||
|
* Ban mutating immutable buffers on the free-threaded build by
|
||||||
|
@ngoldbaum in #214
|
||||||
|
* zstd: store size by @milesgranger in #225
|
||||||
|
* Add Python 3.14/t - Drop Python 3.8 by @milesgranger in #226
|
||||||
|
- Release 2.10.0
|
||||||
|
* Remove experimental codecs in default builds by @milesgranger
|
||||||
|
in #197
|
||||||
|
* Bump libcramjam -> 0.7.0 by @milesgranger in #198
|
||||||
|
* Update PyO3 to 0.24 by @musicinmybrain in #207
|
||||||
|
- Disable test_variants_raise_exception[deflate]
|
||||||
|
* gh#milesgranger/cramjam#211
|
||||||
|
- Disable blosc2 because it fails to compile right now and upstream
|
||||||
|
degraded it from the default feature set to experimental
|
||||||
|
* gh#milesgranger/cramjam#197
|
||||||
|
- Add debuginfo
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 18 11:40:10 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
Wed Dec 18 11:40:10 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
@@ -85,7 +113,7 @@ Mon Feb 19 09:16:39 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
|||||||
to run (about an hour).
|
to run (about an hour).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fr- Jan 13 11:04:41 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
Fri Jan 13 11:04:41 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
- Update to v2.6.2
|
- Update to v2.6.2
|
||||||
* Bump pyo3, numpy and expand pyproject.toml by @milesgranger in
|
* Bump pyo3, numpy and expand pyproject.toml by @milesgranger in
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-cramjam
|
# spec file for package python-cramjam
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2026 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
%define modname cramjam
|
%define modname cramjam
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-cramjam%{psuffix}
|
Name: python-cramjam%{psuffix}
|
||||||
Version: 2.9.1
|
Version: 2.11.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Thin Python bindings to de/compression algorithms in Rust
|
Summary: Thin Python bindings to de/compression algorithms in Rust
|
||||||
License: MIT
|
License: MIT
|
||||||
@@ -50,14 +50,14 @@ BuildRequires: cmake
|
|||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: nasm
|
BuildRequires: nasm
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: pkgconfig(blosc2)
|
# blosc2 disabled: see Patch0 and gh#milesgranger/cramjam#197
|
||||||
|
#BuildRequires: pkgconfig(blosc2)
|
||||||
BuildRequires: pkgconfig(libisal)
|
BuildRequires: pkgconfig(libisal)
|
||||||
BuildRequires: pkgconfig(libzstd)
|
BuildRequires: pkgconfig(libzstd)
|
||||||
# SECTION test dependencies
|
# SECTION test dependencies
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module %{modname} = %{version}}
|
BuildRequires: %{python_module %{modname} = %{version}}
|
||||||
BuildRequires: %{python_module hypothesis}
|
BuildRequires: %{python_module hypothesis}
|
||||||
BuildRequires: %{python_module memory_profiler}
|
|
||||||
BuildRequires: %{python_module numpy}
|
BuildRequires: %{python_module numpy}
|
||||||
BuildRequires: %{python_module pytest-xdist}
|
BuildRequires: %{python_module pytest-xdist}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
@@ -87,7 +87,9 @@ export ZSTD_SYS_USE_PKG_CONFIG=1
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
%pytest_arch -n auto --ignore benchmarks
|
# gh#milesgranger/cramjam#211
|
||||||
|
donttest="(test_variants_raise_exception and deflate)"
|
||||||
|
%pytest_arch -n auto --ignore benchmarks -k "not ($donttest)"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{without test}
|
%if %{without test}
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:143bb6d8474ca2f4acbe2081bc4eb4b9e7458aafde700734f6abbb3deaf05d90
|
oid sha256:22880b5c4cb447b9e3068e4618840c904c7a70d587153114bd048cec2fcd243b
|
||||||
size 19202980
|
size 12499420
|
||||||
|
|||||||
Reference in New Issue
Block a user