17
0
Files
python-pyreadstat/python-pyreadstat.spec
Dirk Mueller 1ef17dd2df Accepting request 859030 from home:andythe_great:branches:devel:languages:python:numeric
- Update to version 1.0.6.
  * Updated Readstat to version 1.1.5, this fixes: reading sas7bdat
    file labels, reading newer por files date-like columns, and few 
    others.
  * Corrected writing columns with numpy.float32 format.
- Updates for 1.0.5
  * fixed sharing permissions when reading files on windows, 
    fixes #87
- Updates for 1.0.4
  * read_file_in_chunks can read chunks with multiprocessing.
- Updates for 1.0.3
  * Improved performance specially for big files.
  * added a method to read files in parallel
  * added license information to setup.py
- Updates for 1.0.2 
  * Updated default widths for DATE and DATETIME formats 
    (from Readstat src). That make the files readable both in SPSS 
    and PSPP, solves issue #69.
  * added support for binary compressed sas7bdat files
  * fixes writing XPT files v8 that can be read in SAS. Reading XPT v8 improved.
  * fixes writing files with NaT values.
  * fixes #72: variable display width with long strings.
  * fixes #70: variable_measures not set when writing sav files
- Updates for 1.0.1 
  * fixes issue #67

OBS-URL: https://build.opensuse.org/request/show/859030
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pyreadstat?expand=0&rev=9
2020-12-29 18:41:51 +00:00

71 lines
2.2 KiB
RPMSpec

#
# spec file for package python-pyreadstat
#
# Copyright (c) 2020 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pyreadstat
Version: 1.0.6
Release: 0
Summary: Package to read and write statistical data files into pandas
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/Roche/pyreadstat
Source: https://github.com/Roche/pyreadstat/archive/v%{version}.tar.gz#/pyreadstat-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy-devel}
BuildRequires: %{python_module pandas >= 0.24.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: glibc-devel
BuildRequires: python-rpm-macros
BuildRequires: zlib-devel
Requires: python-numpy
Requires: python-pandas >= 0.24.0
%python_subpackages
%description
Reads and Writes SAS, SPSS and Stata files into pandas data frames.
%prep
%setup -q -n pyreadstat-%{version}
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
mv pyreadstat pyreadstat_temp
rm -rf build _build.*
export PYTHONDONTWRITEBYTECODE=1
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
rm -rf build _build.*
$python -B tests/test_basic.py
}
mv pyreadstat_temp pyreadstat
%files %{python_files}
%doc README.md change_log.md
%license LICENSE
%{python_sitearch}/pyreadstat*.egg-info
%{python_sitearch}/pyreadstat
%changelog