From 55e7da44955cb85ed60ad7ee89303c4a20b2e7b2b9d8ca0343707d5451164851 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 19 Feb 2024 14:30:20 +0000 Subject: [PATCH] Accepting request 1147537 from home:badshah400:branches:devel:languages:python * Update to version 2.8.1. * pyrus-cramjam is now simply cramjam; adapt to name change in spec and _service file. * Drop cargo_config: Updated rust packaging services include it in vendor.tar.xz. * Split out test into multibuild flavor since it takes a long time to run (about an hour). OBS-URL: https://build.opensuse.org/request/show/1147537 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cramjam?expand=0&rev=9 --- _multibuild | 4 ++++ _service | 20 ++++++++-------- cargo_config | 5 ---- cramjam-2.8.1.obscpio | 3 +++ cramjam-2.8.1.tar.xz | 3 +++ cramjam.obsinfo | 4 ++++ pyrus-cramjam-2.6.2.tar.xz | 3 --- python-cramjam.changes | 49 +++++++++++++++++++++++++++++++++++++- python-cramjam.spec | 45 +++++++++++++++++++++++++--------- vendor.tar.xz | 4 ++-- 10 files changed, 108 insertions(+), 32 deletions(-) create mode 100644 _multibuild delete mode 100644 cargo_config create mode 100644 cramjam-2.8.1.obscpio create mode 100644 cramjam-2.8.1.tar.xz create mode 100644 cramjam.obsinfo delete mode 100644 pyrus-cramjam-2.6.2.tar.xz diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..b030889 --- /dev/null +++ b/_multibuild @@ -0,0 +1,4 @@ + + + test + diff --git a/_service b/_service index 0ba906f..e7b8ffa 100644 --- a/_service +++ b/_service @@ -1,25 +1,25 @@ - - https://github.com/milesgranger/pyrus-cramjam.git + + https://github.com/milesgranger/cramjam.git git @PARENT_TAG@ - v2.6.2 + v2.8.1 v(.*) \1 - - + + *.tar xz - - - pyrus-cramjam + + + cramjam xz true - - pyrus-cramjam + + cramjam diff --git a/cargo_config b/cargo_config deleted file mode 100644 index 6fb4ff4..0000000 --- a/cargo_config +++ /dev/null @@ -1,5 +0,0 @@ -[source.crates-io] -replace-with = "vendored-sources" - -[source.vendored-sources] -directory = "vendor" \ No newline at end of file diff --git a/cramjam-2.8.1.obscpio b/cramjam-2.8.1.obscpio new file mode 100644 index 0000000..6b3037f --- /dev/null +++ b/cramjam-2.8.1.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50e24fa65facd333951a4a0e029187e615e30244e3146137157330a5f8eee82e +size 3311116 diff --git a/cramjam-2.8.1.tar.xz b/cramjam-2.8.1.tar.xz new file mode 100644 index 0000000..331fd63 --- /dev/null +++ b/cramjam-2.8.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b8675fe7d3f5c26ad5927f20f1172c58d1ef3ceae105c0623966acb4599a0785 +size 843748 diff --git a/cramjam.obsinfo b/cramjam.obsinfo new file mode 100644 index 0000000..e269a58 --- /dev/null +++ b/cramjam.obsinfo @@ -0,0 +1,4 @@ +name: cramjam +version: 2.8.1 +mtime: 1706284751 +commit: 91a329fd1e4c8dbabc484ec1d711a20add2fcc65 diff --git a/pyrus-cramjam-2.6.2.tar.xz b/pyrus-cramjam-2.6.2.tar.xz deleted file mode 100644 index 1f8ab5a..0000000 --- a/pyrus-cramjam-2.6.2.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:724f84ee34903428759970318a0aad0384a1d60b587e5a026f103ee4e6878824 -size 823568 diff --git a/python-cramjam.changes b/python-cramjam.changes index a774450..5ebfbc1 100644 --- a/python-cramjam.changes +++ b/python-cramjam.changes @@ -1,5 +1,52 @@ ------------------------------------------------------------------- -Fri Jan 13 11:04:41 UTC 2023 - Ben Greiner +Mon Feb 19 09:16:39 UTC 2024 - Atri Bhattacharya + +- Update to version 2.8.1: + * Experimental support for LZMA / XZ codec + (gh#milesgranger/cramjam#127). + * In libcramjam, bump zstd to 0.13.0 (to go with zstd-safe + 7.0.0) (gh#milesgranger/cramjam#128). + * Bump rustix from 0.37.17 to 0.38.28 in /cramjam-python + (gh#milesgranger/cramjam#122). +- Changes from version 2.8.0: + * Bump zstd from 1.5.0.2 to 1.5.4.0 in /cramjam-python + (gh#milesgranger/cramjam#108). + * Simpler isinstance() calls (gh#milesgranger/cramjam#111). + * Support Python 3.12 (gh#milesgranger/cramjam#113). + * Bump rustix from 0.37.18 to 0.37.25 + (gh#milesgranger/cramjam#114). + * Fix docstring for lz4.compress_block_bound + (gh#milesgranger/cramjam#117). + * Use pyo3 0.20 (gh#milesgranger/cramjam#118). + * Make libcramjam a better libcramjam w/ C API + (gh#milesgranger/cramjam#119). + * Fix missing license file in the Python sdist and bdist/wheel + (gh#milesgranger/cramjam#124). + * Support independent mode in LZ4 compressor + (gh#milesgranger/cramjam#125). +- Changes from version 2.7.0: + * Bump bzip2 from 0.4.3 to 0.4.4 (gh#milesgranger/cramjam#94). + * Refactoring, release GIL, Decompressor, remove mimalloc, etc. + (gh#milesgranger/cramjam#96). + * Accept anything with Buffer Protocol, remove numpy + (gh#milesgranger/cramjam#100). + * Refactor into workspaces: libcramjam, cramjam-python, and + cramjam-cli (gh#milesgranger/cramjam#101). + * Basic CLI improvements (gh#milesgranger/cramjam#103). + * Fix cramjam-cli decompress bug (gh#milesgranger/cramjam#104). + * Support all buffer types where c-contiguous + (gh#milesgranger/cramjam#105). + * Fixes for maturin v1 --universal2 removal + (gh#milesgranger/cramjam#109). +- pyrus-cramjam is now simply cramjam; adapt to name change in + spec and _service file. +- Drop cargo_config: Updated rust packaging services include it in + vendor.tar.xz. +- Split out test into multibuild flavor since it takes a long time + to run (about an hour). + +------------------------------------------------------------------- +Fr- Jan 13 11:04:41 UTC 2023 - Ben Greiner - Update to v2.6.2 * Bump pyo3, numpy and expand pyproject.toml by @milesgranger in diff --git a/python-cramjam.spec b/python-cramjam.spec index c13ff69..cb5e51e 100644 --- a/python-cramjam.spec +++ b/python-cramjam.spec @@ -1,7 +1,7 @@ # # spec file for package python-cramjam # -# Copyright (c) 2023 SUSE LLC +# 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 @@ -16,25 +16,38 @@ # -# 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 +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%bcond_without test +%define psuffix -test +%else +%bcond_with test +%define psuffix %{nil} +%endif + +# Adjust the version in _service and use `rm -rf cramjam; osc service runall` in order to update +%define modname cramjam +Name: python-cramjam%{psuffix} +Version: 2.8.1 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 +URL: https://github.com/milesgranger/cramjam +Source: %{modname}-%{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 +%if %{with test} +BuildRequires: %{python_module %{modname} = %{version}} BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module memory_profiler} BuildRequires: %{python_module numpy} BuildRequires: %{python_module pytest} +%endif # /SECTION BuildRequires: fdupes %python_subpackages @@ -44,22 +57,32 @@ 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 +%setup -q -n %{modname}-%{version} -a1 %build +%if %{without test} +pushd %{modname}-python %pyproject_wheel +%endif %install +%if %{without test} +pushd %{modname}-python %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} +%endif %check +%if %{with test} +pushd %{modname}-python %pytest_arch --ignore benchmarks +%endif +%if %{without test} %files %{python_files} %license LICENSE -%{python_sitearch}/cramjam -%{python_sitearch}/cramjam-%{version}.dist-info +%{python_sitearch}/%{modname} +%{python_sitearch}/%{modname}-%{version}.dist-info +%endif %changelog diff --git a/vendor.tar.xz b/vendor.tar.xz index d623e42..c558e9a 100644 --- a/vendor.tar.xz +++ b/vendor.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4bba92ceba18de0f9e5d197f7009e40ba50882f817979c9196d3efd75b29c7cf -size 9890596 +oid sha256:30f3940da29a76a9212d4b84386e4bb580456c8236e9384e989cce2c7e88fd78 +size 18761492