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
This commit is contained in:
Matej Cepl 2021-05-19 05:31:18 +00:00 committed by Git OBS Bridge
commit d8ed8aab03
8 changed files with 132 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

24
_service Normal file
View File

@ -0,0 +1,24 @@
<services>
<service mode="disabled" name="obs_scm">
<param name="url">https://github.com/milesgranger/pyrus-cramjam.git</param>
<param name="scm">git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="revision">master</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="versionrewrite-replacement">\1</param>
</service>
<service mode="disabled" name="tar" />
<service mode="disabled" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="disabled" name="set_version"/>
<!-- no cargo.lock, wrong parameters (https://github.com/openSUSE/obs-service-cargo_audit/issues/1)
service name="cargo_audit" mode="disabled">
<param name="srcdir">pyrus-cramjam</param>
</service -->
<service name="cargo_vendor" mode="disabled">
<param name="srcdir">pyrus-cramjam</param>
<param name="compression">xz</param>
</service>
</services>

5
cargo_config Normal file
View File

@ -0,0 +1,5 @@
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1c812c821f25d43845c8eb86413cc8d849d33df89b4d3ebc57ce7c99be823676
size 812560

7
python-cramjam.changes Normal file
View File

@ -0,0 +1,7 @@
-------------------------------------------------------------------
Tue May 18 14:12:27 UTC 2021 - Ben Greiner <code@bnavigator.de>
- 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

66
python-cramjam.spec Normal file
View File

@ -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

3
vendor.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9c268c062230bede973e6d5337d4c2be38eb2a66a0ddff165f2a8f4a341e3072
size 8230216