2018-05-15 10:08:00 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-fastparquet
|
|
|
|
#
|
2019-01-26 22:38:54 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2018-05-15 10:08:00 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-02 19:47:24 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-15 10:08:00 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-10-02 19:47:24 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2018-05-15 10:08:00 +02:00
|
|
|
# Test files not included
|
2019-04-30 22:10:30 +02:00
|
|
|
%bcond_without test
|
2018-05-15 10:08:00 +02:00
|
|
|
Name: python-fastparquet
|
2019-08-04 16:05:57 +02:00
|
|
|
Version: 0.3.2
|
2018-05-15 10:08:00 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Python support for Parquet file format
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
2018-10-02 19:47:24 +02:00
|
|
|
URL: https://github.com/dask/fastparquet/
|
2019-04-30 22:10:30 +02:00
|
|
|
Source: https://github.com/dask/fastparquet/archive/%{version}.tar.gz#/fastparquet-%{version}.tar.gz
|
2018-05-15 10:08:00 +02:00
|
|
|
BuildRequires: %{python_module Cython}
|
|
|
|
BuildRequires: %{python_module cffi >= 0.6}
|
|
|
|
BuildRequires: %{python_module numba >= 0.28}
|
|
|
|
BuildRequires: %{python_module numpy-devel >= 1.11}
|
|
|
|
BuildRequires: %{python_module pandas}
|
2019-04-30 22:10:30 +02:00
|
|
|
BuildRequires: %{python_module pytest-runner}
|
2019-05-20 15:24:28 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-05-15 10:08:00 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module six}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-10-02 19:47:24 +02:00
|
|
|
Requires: python-numba >= 0.28
|
|
|
|
Requires: python-numpy >= 1.11
|
|
|
|
Requires: python-pandas
|
|
|
|
Requires: python-six
|
2019-04-30 22:10:30 +02:00
|
|
|
Requires: python-thrift >= 0.11.0
|
2018-10-02 19:47:24 +02:00
|
|
|
Recommends: python-Brotli
|
2019-04-30 22:10:30 +02:00
|
|
|
Recommends: python-bson
|
2019-05-20 15:24:28 +02:00
|
|
|
Recommends: python-lz4 >= 0.19.1
|
2018-10-02 19:47:24 +02:00
|
|
|
Recommends: python-python-lzo
|
|
|
|
Recommends: python-python-snappy
|
2019-04-30 22:10:30 +02:00
|
|
|
Recommends: python-zstandard
|
2018-05-15 10:08:00 +02:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module Brotli}
|
2019-04-30 22:10:30 +02:00
|
|
|
BuildRequires: %{python_module bson}
|
|
|
|
BuildRequires: %{python_module lz4 >= 0.19.1 }
|
2018-05-15 10:08:00 +02:00
|
|
|
BuildRequires: %{python_module python-lzo}
|
|
|
|
BuildRequires: %{python_module python-snappy}
|
2019-04-30 22:10:30 +02:00
|
|
|
BuildRequires: %{python_module thrift >= 0.11.0}
|
|
|
|
BuildRequires: %{python_module zstandard}
|
2018-05-15 10:08:00 +02:00
|
|
|
BuildRequires: python-funcsigs
|
|
|
|
BuildRequires: python-singledispatch
|
|
|
|
%endif
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-06-13 15:37:19 +02:00
|
|
|
This is a Python implementation of the parquet format
|
|
|
|
for integrating it into python-based Big Data workflows.
|
2018-05-15 10:08:00 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n fastparquet-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2019-05-20 15:24:28 +02:00
|
|
|
%python_expand rm -v %{buildroot}%{$python_sitearch}/fastparquet/speedups.c
|
2018-05-15 10:08:00 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
%check
|
2019-04-30 22:10:30 +02:00
|
|
|
mkdir tester
|
|
|
|
cp -r test-data tester/
|
|
|
|
cp -r fastparquet/test tester/
|
|
|
|
pushd tester
|
|
|
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
|
|
|
export PYTHONDONTWRITEBYTECODE=1
|
|
|
|
rm -rf build _build*
|
2019-07-30 16:23:51 +02:00
|
|
|
# Test test_time_millis fails in i586
|
|
|
|
# test_datetime_roundtrip fails due to a warning being accidentally caught by the test
|
|
|
|
pytest-%{$python_bin_suffix} . -k 'not test_time_millis and not test_datetime_roundtrip'
|
2019-04-30 22:10:30 +02:00
|
|
|
}
|
|
|
|
popd
|
2018-05-15 10:08:00 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
2018-10-02 19:47:24 +02:00
|
|
|
%dir %{python_sitearch}/fastparquet
|
|
|
|
%{python_sitearch}/fastparquet/*
|
|
|
|
%dir %{python_sitearch}/fastparquet-%{version}-py*.egg-info
|
|
|
|
%{python_sitearch}/fastparquet-%{version}-py*.egg-info/*
|
2018-05-15 10:08:00 +02:00
|
|
|
|
|
|
|
%changelog
|