From d8ed8aab037607b636fd21387d65f26b9cfaf82848e90103517541cea12cf5d1 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 19 May 2021 05:31:18 +0000 Subject: [PATCH] Accepting request 894092 from home:bnavigator:branches:devel:languages:python:numeric new requirement for fastparquet 0.6 OBS-URL: https://build.opensuse.org/request/show/894092 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cramjam?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + _service | 24 ++++++++++++++ cargo_config | 5 +++ pyrus-cramjam-2.3.1.tar.xz | 3 ++ python-cramjam.changes | 7 ++++ python-cramjam.spec | 66 ++++++++++++++++++++++++++++++++++++++ vendor.tar.xz | 3 ++ 8 files changed, 132 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 cargo_config create mode 100644 pyrus-cramjam-2.3.1.tar.xz create mode 100644 python-cramjam.changes create mode 100644 python-cramjam.spec create mode 100644 vendor.tar.xz 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..c1be3d8 --- /dev/null +++ b/_service @@ -0,0 +1,24 @@ + + + https://github.com/milesgranger/pyrus-cramjam.git + git + @PARENT_TAG@ + master + v(.*) + \1 + + + + *.tar + xz + + + + + pyrus-cramjam + xz + + \ No newline at end of file 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.3.1.tar.xz b/pyrus-cramjam-2.3.1.tar.xz new file mode 100644 index 0000000..15dc012 --- /dev/null +++ b/pyrus-cramjam-2.3.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c812c821f25d43845c8eb86413cc8d849d33df89b4d3ebc57ce7c99be823676 +size 812560 diff --git a/python-cramjam.changes b/python-cramjam.changes new file mode 100644 index 0000000..94da593 --- /dev/null +++ b/python-cramjam.changes @@ -0,0 +1,7 @@ +------------------------------------------------------------------- +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..168ef09 --- /dev/null +++ b/python-cramjam.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-cramjam +# +# Copyright (c) 2021 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' +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python36 1 +Name: python-cramjam +Version: 2.3.1 +Release: 0 +Summary: Thin Python bindings to de/compression algorithms in Rust +License: MIT +URL: https://github.com/milesgranger/pyrus-cramjam +# use `rm -rf pyrus-cramjam; osc service runall` in order to update +Source: pyrus-cramjam-%{version}.tar.xz +Source1: vendor.tar.xz +Source2: cargo_config +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module maturin} +BuildRequires: rust-packaging +# SECTION test dependencies +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*.so +%{python_sitearch}/cramjam-%{version}*-info + +%changelog \ No newline at end of file diff --git a/vendor.tar.xz b/vendor.tar.xz new file mode 100644 index 0000000..a9e037a --- /dev/null +++ b/vendor.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c268c062230bede973e6d5337d4c2be38eb2a66a0ddff165f2a8f4a341e3072 +size 8230216