1
0
python-fastparquet/python-fastparquet.spec

87 lines
2.7 KiB
RPMSpec

#
# spec file for package python-fastparquet
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Test files not included
%bcond_with test
Name: python-fastparquet
Version: 0.2.1
Release: 0
Summary: Python support for Parquet file format
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/dask/fastparquet/
Source: https://files.pythonhosted.org/packages/source/f/fastparquet/fastparquet-%{version}.tar.gz
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}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module thriftpy >= 0.3.6}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-numba >= 0.28
Requires: python-numpy >= 1.11
Requires: python-pandas
Requires: python-six
Requires: python-thriftpy >= 0.3.6
Recommends: python-Brotli
Recommends: python-python-lzo
Recommends: python-python-snappy
%if %{with test}
BuildRequires: %{python_module Brotli}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-lzo}
BuildRequires: %{python_module python-snappy}
BuildRequires: python-funcsigs
BuildRequires: python-singledispatch
%endif
%python_subpackages
%description
This is a Python implementation of the parquet format
for integrating it into python-based Big Data workflows.
%prep
%setup -q -n fastparquet-%{version}
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%if %{with test}
%check
%python_exec setup.py test
%endif
%files %{python_files}
%doc README.rst
%license LICENSE
%dir %{python_sitearch}/fastparquet
%{python_sitearch}/fastparquet/*
%dir %{python_sitearch}/fastparquet-%{version}-py*.egg-info
%{python_sitearch}/fastparquet-%{version}-py*.egg-info/*
%changelog