2018-05-15 10:08:00 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-fastparquet
|
|
|
|
#
|
2021-01-03 11:17:10 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
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
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-02-09 22:28:22 +01:00
|
|
|
%define _buildshell /bin/bash
|
2018-10-02 19:47:24 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2019-10-25 19:52:59 +02:00
|
|
|
%define skip_python2 1
|
2021-02-12 15:50:26 +01:00
|
|
|
%define skip_python36 1
|
2018-05-15 10:08:00 +02:00
|
|
|
Name: python-fastparquet
|
2021-05-19 12:12:11 +02:00
|
|
|
Version: 0.6.3
|
2018-05-15 10:08:00 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Python support for Parquet file format
|
|
|
|
License: Apache-2.0
|
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}
|
2021-05-19 12:12:11 +02:00
|
|
|
BuildRequires: %{python_module cramjam >= 2.3.0}
|
|
|
|
BuildRequires: %{python_module fsspec}
|
2018-05-15 10:08:00 +02:00
|
|
|
BuildRequires: %{python_module numpy-devel >= 1.11}
|
2021-01-03 11:17:10 +01:00
|
|
|
BuildRequires: %{python_module pandas >= 1.1.0}
|
2019-05-20 15:24:28 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2020-04-06 09:07:54 +02:00
|
|
|
BuildRequires: %{python_module python-lzo}
|
2018-05-15 10:08:00 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2020-04-06 09:07:54 +02:00
|
|
|
BuildRequires: %{python_module thrift >= 0.11.0}
|
2018-05-15 10:08:00 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2021-05-19 12:12:11 +02:00
|
|
|
Requires: python-cramjam >= 2.3.0
|
|
|
|
Requires: python-fsspec
|
2018-10-02 19:47:24 +02:00
|
|
|
Requires: python-numpy >= 1.11
|
2021-01-03 11:17:10 +01:00
|
|
|
Requires: python-pandas >= 1.1.0
|
2019-04-30 22:10:30 +02:00
|
|
|
Requires: python-thrift >= 0.11.0
|
2018-10-02 19:47:24 +02:00
|
|
|
Recommends: python-python-lzo
|
2018-05-15 10:08:00 +02:00
|
|
|
%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}
|
2021-01-03 11:17:10 +01:00
|
|
|
# remove pytest-runner from setup_requires
|
|
|
|
sed -i "s/'pytest-runner',//" setup.py
|
|
|
|
# the tests import the fastparquet.test module and we need to import from sitearch, so install it.
|
|
|
|
sed -i -e "s/^\s*packages=\[/&'fastparquet.test', /" -e "/exclude_package_data/ d" setup.py
|
2018-05-15 10:08:00 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2021-05-19 12:12:11 +02:00
|
|
|
%python_expand rm -v %{buildroot}%{$python_sitearch}/fastparquet/{speedups,cencoding}.c
|
2018-05-15 10:08:00 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
|
|
%check
|
2021-02-04 17:34:25 +01:00
|
|
|
# newer packaging package creates false DeprecationWarning gh#dask/fastparquet#558
|
|
|
|
donttest+=" or test_import_without_warning"
|
2021-01-03 11:17:10 +01:00
|
|
|
# Test test_time_millis has the wrong reference type for 32-bit
|
|
|
|
%if 0%{?__isa_bits} != 64
|
2021-02-04 17:34:25 +01:00
|
|
|
donttest+=" or test_time_millis"
|
2021-01-03 11:17:10 +01:00
|
|
|
%endif
|
2021-02-04 17:34:25 +01:00
|
|
|
%pytest_arch --pyargs fastparquet --import-mode append -k "not (${donttest:4})"
|
2018-05-15 10:08:00 +02:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
2021-01-03 11:17:10 +01:00
|
|
|
%{python_sitearch}/fastparquet
|
|
|
|
%{python_sitearch}/fastparquet-%{version}*-info
|
2018-05-15 10:08:00 +02:00
|
|
|
|
|
|
|
%changelog
|