From 25646dac791e4816254135ed1ebfb2e4d958216d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 5 Jan 2024 10:06:00 +0100 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 python-pyreadstat revision 003043ef5023568cfe206fa700bcc553 --- .gitattributes | 23 +++++++ pyreadstat-1.2.3.tar.gz | 3 + python-pyreadstat.changes | 136 ++++++++++++++++++++++++++++++++++++++ python-pyreadstat.spec | 69 +++++++++++++++++++ 4 files changed, 231 insertions(+) create mode 100644 .gitattributes create mode 100644 pyreadstat-1.2.3.tar.gz create mode 100644 python-pyreadstat.changes create mode 100644 python-pyreadstat.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/pyreadstat-1.2.3.tar.gz b/pyreadstat-1.2.3.tar.gz new file mode 100644 index 0000000..e992473 --- /dev/null +++ b/pyreadstat-1.2.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:198178bde0f8a65d2ee27c0432b6e15a64d573f10a755bc92fd08029df4b6ed8 +size 14648919 diff --git a/python-pyreadstat.changes b/python-pyreadstat.changes new file mode 100644 index 0000000..e6ebcff --- /dev/null +++ b/python-pyreadstat.changes @@ -0,0 +1,136 @@ +------------------------------------------------------------------- +Thu Aug 31 11:39:15 UTC 2023 - Markéta Machová + +- update to 1.2.3 + * changes introduced for compatibility with cython 3.0.0. + Cython 0.29 no longer supported. Python 2.7 no longer supported. + +------------------------------------------------------------------- +Tue Jun 27 12:06:04 UTC 2023 - Markéta Machová + +- update to 1.2.2 + * added num_rows to multiprocessing to allow processing of xport, + por and sav files not having the number of rows in the metadata. + +------------------------------------------------------------------- +Mon Mar 13 08:42:41 UTC 2023 - Dirk Müller + +- update to 1.2.1: + * Readstat source updated to version 1.1.9 + * introduced recognition for pandas datatype datetime64[ns, + UTC] and other datetime64 types when writing, + so that this column type gets correctly written as datetime + * introduced extra_datetime_formats and extra_date_formats + arguments for read functions, cleaned the list of + sas date, datetime and time formats to exclude those not + directly convertible to python objects + * improved performace of writer when there are datetime64 + columns + +------------------------------------------------------------------- +Mon Feb 13 04:53:52 UTC 2023 - Steve Kowalik + +- Update to 1.2.0: + * added pyproject.toml + * Updated Readstat code to Release 1.1.8 + * Solved issue with duplicated columns, #188 + * new parameter output_type to switch between returning a pandas + dataframe or a dict of numpy arrays, partial solution for #184 + * Implemented row_compression for writing sav files, solves #185 + * Added new date formats for SAS and SPSS solves #170, #171 + * Added check missing_range type against variable type solves #180 + * Removed np.float, solves #160 + +------------------------------------------------------------------- +Wed Feb 16 10:27:34 UTC 2022 - Dirk Müller + +- update to 1.1.4: + * Included new pandas datatypes Float32Dtype and Float64Dtype when writing. + * Forcing cythonization when installing from source + # Updated Readstat source to version 1.1.17 + * Improved error when reading dates and finding a string + * repaired not reading correctly metadata with multiprocessing + # correction when reading file paths in python <3.7 + * Using os.fsencode when reading file paths to support file system + encoding and Path-like objects + * Updated Readstat source to version 1.1.6 + * Accepting dict as the column_label parameter for writing functions + +------------------------------------------------------------------- +Mon Apr 19 08:43:23 UTC 2021 - Steve Kowalik + +- Update to 1.1.0: + * added meta.readstat_variable_types to track the type of binary + variable in the original file. + * Adding better error message for not accepting certain files types in + multiprocessing, solves #105 + * Fixing #106 writing failing when row 0 is removed from dataframe. + * Removing numpy deprecated objects solves #107. + * Adding support for pathlib.Path, soves #110. + * fixing order of categories + * Added formats_as_ordered_category to get an ordered category. + * Added value_formats in order to be able to set the variable format when + writing. +- Do not build on Python 3.6, due to no NumPy. + +------------------------------------------------------------------- +Mon Dec 28 07:47:19 UTC 2020 - andy great + +- 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 + + +------------------------------------------------------------------- +Tue Jul 14 12:27:48 UTC 2020 - Marketa Calabkova + +- Update to 1.0.0 + * improved error messages when column names have spaces + * updated readstat to release 1.1.3: improved support for columns with utf-8 characters. + * bumped version to first stable release as the library looks stable + * added capability to set_value_labels to handle subset of dataframes + * added capacity to read and write files with paths starting with tilde + * few bugfixes + +------------------------------------------------------------------- +Fri Sep 13 15:05:13 UTC 2019 - Tomáš Chvátal + +- Update to 0.2.9: + * metadata updates + +------------------------------------------------------------------- +Fri Aug 16 15:42:07 UTC 2019 - Todd R + +- Update to 0.2.8 + * deleted dist files +- Remove upstream-included fix_no_return_in_nonvoid_function.patch + +------------------------------------------------------------------- +Mon Jul 22 15:48:26 UTC 2019 - Todd R + +- Initial version +- Add fix_no_return_in_nonvoid_function.patch + to fix no-return-in-nonvoid-function error + From gh#Roche/pyreadstat#36 diff --git a/python-pyreadstat.spec b/python-pyreadstat.spec new file mode 100644 index 0000000..858c4b2 --- /dev/null +++ b/python-pyreadstat.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-pyreadstat +# +# Copyright (c) 2023 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/ +# + + +Name: python-pyreadstat +Version: 1.2.3 +Release: 0 +Summary: Package to read and write statistical data files into pandas +License: Apache-2.0 +URL: https://github.com/Roche/pyreadstat +Source: https://github.com/Roche/pyreadstat/archive/v%{version}.tar.gz#/pyreadstat-%{version}.tar.gz +BuildRequires: %{python_module Cython >= 3} +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