diff --git a/fastparquet-0.4.1.tar.gz b/fastparquet-0.4.1.tar.gz deleted file mode 100644 index 12fbfa1..0000000 --- a/fastparquet-0.4.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:03e6635900b718dbe4e99a1b03d840990f08879ec7a6d3ea3e33727668a8ee2e -size 28914111 diff --git a/fastparquet-0.5.0.tar.gz b/fastparquet-0.5.0.tar.gz new file mode 100644 index 0000000..945f6df --- /dev/null +++ b/fastparquet-0.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:257ccfb5f4beafe33276cc81e08ee6d41de3f961e0aedd9c41833f920d4771ff +size 28912869 diff --git a/python-fastparquet.changes b/python-fastparquet.changes index bda9030..37cf62a 100644 --- a/python-fastparquet.changes +++ b/python-fastparquet.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Jan 2 21:04:30 UTC 2021 - Benjamin Greiner + +- update to version 0.5 + * no changelog +- update test suite setup -- install the .test module + ------------------------------------------------------------------- Sat Jul 18 18:13:53 UTC 2020 - Arun Persaud diff --git a/python-fastparquet.spec b/python-fastparquet.spec index 6e55470..243bda0 100644 --- a/python-fastparquet.spec +++ b/python-fastparquet.spec @@ -1,7 +1,7 @@ # # spec file for package python-fastparquet # -# Copyright (c) 2020 SUSE LLC +# 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 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-fastparquet -Version: 0.4.1 +Version: 0.5.0 Release: 0 Summary: Python support for Parquet file format License: Apache-2.0 @@ -29,26 +29,22 @@ BuildRequires: %{python_module Brotli} BuildRequires: %{python_module Cython} BuildRequires: %{python_module bson} BuildRequires: %{python_module cffi >= 0.6} -BuildRequires: %{python_module lz4 >= 0.19.1 } -BuildRequires: %{python_module numba >= 0.28} +BuildRequires: %{python_module lz4 >= 0.19.1} +BuildRequires: %{python_module numba >= 0.49} BuildRequires: %{python_module numpy-devel >= 1.11} -BuildRequires: %{python_module packaging} -BuildRequires: %{python_module pandas >= 0.19} -BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module pandas >= 1.1.0} BuildRequires: %{python_module pytest} BuildRequires: %{python_module python-lzo} BuildRequires: %{python_module python-snappy} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module six} +BuildRequires: %{python_module testsuite} BuildRequires: %{python_module thrift >= 0.11.0} BuildRequires: %{python_module zstandard} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-numba >= 0.28 +Requires: python-numba >= 0.49 Requires: python-numpy >= 1.11 -Requires: python-packaging -Requires: python-pandas -Requires: python-six +Requires: python-pandas >= 1.1.0 Requires: python-thrift >= 0.11.0 Recommends: python-Brotli Recommends: python-bson @@ -64,6 +60,10 @@ for integrating it into python-based Big Data workflows. %prep %setup -q -n fastparquet-%{version} +# 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 %build export CFLAGS="%{optflags}" @@ -75,26 +75,23 @@ export CFLAGS="%{optflags}" %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -cp -r fastparquet/test . -mv fastparquet temp -rm -rf build _build* -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} -export PYTHONDONTWRITEBYTECODE=1 -rm -rf build _build* -# Test test_time_millis fails in i586 -# test_datetime_roundtrip fails due to a warning being accidentally caught by the test -# test_import_without_warning fails due to being already imported -pytest-%{$python_bin_suffix} -v test -k 'not test_time_millis and not test_datetime_roundtrip and not test_errors and not test_import_without_warning' -} -mv temp fastparquet -rm -rf test +# avoid that the process call of python inside the tests imports from source +# directory fastparquet and don't read setup.cfg +mkdir ../testdir +cp -r test-data ../testdir/ +pushd ../testdir +# Test test_time_millis has the wrong reference type for 32-bit +%if 0%{?__isa_bits} != 64 +%define donttest -k 'not test_time_millis' +%endif +%pytest_arch --pyargs fastparquet %{?donttest} +popd +rm -r ../testdir %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/* +%{python_sitearch}/fastparquet +%{python_sitearch}/fastparquet-%{version}*-info %changelog