Accepting request 832528 from home:apersaud:branches:devel:languages:python:numeric

update to latest version

OBS-URL: https://build.opensuse.org/request/show/832528
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pandas?expand=0&rev=48
This commit is contained in:
Tomáš Chvátal 2020-09-05 20:14:00 +00:00 committed by Git OBS Bridge
parent 91a92cf40c
commit d71108da0c
4 changed files with 102 additions and 20 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:69c5d920a0b2a9838e677f78f4dde506b95ea8e4d30da25859db6469ded84fa8
size 5007108

3
pandas-1.1.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:53328284a7bb046e2e885fd1b8c078bd896d7fc4575b915d4936f54984a2ba67
size 5213685

View File

@ -1,3 +1,89 @@
-------------------------------------------------------------------
Sat Sep 5 15:42:53 UTC 2020 - Arun Persaud <arun@gmx.de>
- specfile:
* updated versions of some requirements, require numpy during build
* removed pandas-pr34991-npconstructor.patch, included upstream
* removed sed commands that are not needed anymore
* skip test to see if pandas is installed
- update to version 1.1.1:
* Fixed regressions
+ Fixed regression in CategoricalIndex.format() where, when
stringified scalars had different lengths, the shorter string
would be right-filled with spaces, so it had the same length as
the longest string (GH35439)
+ Fixed regression in Series.truncate() when trying to truncate a
single-element series (GH35544)
+ Fixed regression where DataFrame.to_numpy() would raise a
RuntimeError for mixed dtypes when converting to str (GH35455)
+ Fixed regression where read_csv() would raise a ValueError when
pandas.options.mode.use_inf_as_na was set to True (GH35493)
+ Fixed regression where pandas.testing.assert_series_equal()
would raise an error when non-numeric dtypes were passed with
check_exact=True (GH35446)
+ Fixed regression in .groupby(..).rolling(..) where column
selection was ignored (GH35486)
+ Fixed regression where DataFrame.interpolate() would raise a
TypeError when the DataFrame was empty (GH35598)
+ Fixed regression in DataFrame.shift() with axis=1 and
heterogeneous dtypes (GH35488)
+ Fixed regression in DataFrame.diff() with read-only data
(GH35559)
+ Fixed regression in .groupby(..).rolling(..) where a segfault
would occur with center=True and an odd number of values
(GH35552)
+ Fixed regression in DataFrame.apply() where functions that
altered the input in-place only operated on a single row
(GH35462)
+ Fixed regression in DataFrame.reset_index() would raise a
ValueError on empty DataFrame with a MultiIndex with a
datetime64 dtype level (GH35606, GH35657)
+ Fixed regression where pandas.merge_asof() would raise a
UnboundLocalError when left_index, right_index and tolerance
were set (GH35558)
+ Fixed regression in .groupby(..).rolling(..) where a custom
BaseIndexer would be ignored (GH35557)
+ Fixed regression in DataFrame.replace() and Series.replace()
where compiled regular expressions would be ignored during
replacement (GH35680)
+ Fixed regression in aggregate() where a list of functions would
produce the wrong results if at least one of the functions did
not aggregate (GH35490)
+ Fixed memory usage issue when instantiating large
pandas.arrays.StringArray (GH35499)
* Bug fixes
+ Bug in Styler whereby cell_ids argument had no effect due to
other recent changes (GH35588) (GH35663)
+ Bug in pandas.testing.assert_series_equal() and
pandas.testing.assert_frame_equal() where extension dtypes were
not ignored when check_dtypes was set to False (GH35715)
+ Bug in to_timedelta() fails when arg is a Series with Int64
dtype containing null values (GH35574)
+ Bug in .groupby(..).rolling(..) where passing closed with column
selection would raise a ValueError (GH35549)
+ Bug in DataFrame constructor failing to raise ValueError in some
cases when data and index have mismatched lengths (GH33437)
- changes from version 1.1.0:
* Enhancements
+ KeyErrors raised by loc specify missing labels
+ All dtypes can now be converted to "StringDtype"
+ Non-monotonic PeriodIndex Partial String Slicing
+ Comparing two `DataFrame` or two `Series` and summarizing the
differences
+ Allow NA in groupby key
+ Sorting with keys
+ Fold argument support in Timestamp constructor
+ Parsing timezone-aware format with different timezones in
to_datetime
+ Grouper and resample now supports the arguments origin and
offset
+ fsspec now used for filesystem handling
* see
https://pandas.pydata.org/pandas-docs/stable/whatsnew/v1.1.0.html
for complete list
-------------------------------------------------------------------
Wed Jul 22 10:04:49 UTC 2020 - Benjamin Greiner <code@bnavigator.de>

View File

@ -27,7 +27,7 @@
%bcond_with test
%endif
Name: python-pandas%{psuffix}
Version: 1.0.5
Version: 1.1.1
Release: 0
Summary: Python data structures for data analysis, time series, and statistics
License: BSD-3-Clause
@ -35,13 +35,12 @@ Group: Development/Libraries/Python
URL: https://pandas.pydata.org/
Source0: https://files.pythonhosted.org/packages/source/p/pandas/pandas-%{version}.tar.gz
Source99: pandas-pytest.ini
# PATCH-FIX-UPSTREAM gh#pandas-dev/pandas#34991
Patch0: pandas-pr34991-npconstructor.patch
BuildRequires: %{python_module Cython >= 0.28.2}
# test requirements
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy-devel >= 1.13.3}
BuildRequires: %{python_module numpy >= 1.15.4}
BuildRequires: %{python_module numpy-devel >= 1.15.4}
BuildRequires: %{python_module openpyxl}
BuildRequires: %{python_module pyperclip}
BuildRequires: %{python_module setuptools >= 24.2.0}
@ -49,8 +48,8 @@ BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
Requires: python-Cython >= 0.28.2
Requires: python-numpy >= 1.13.3
Requires: python-python-dateutil >= 2.6.1
Requires: python-numpy >= 1.15.4
Requires: python-python-dateutil >= 2.7.3
Requires: python-pytz >= 2015.4
Recommends: python-Bottleneck >= 1.2.1
Recommends: python-Jinja2
@ -61,20 +60,20 @@ Recommends: python-XlsxWriter >= 0.9.8
Recommends: python-beautifulsoup4 >= 4.6.0
Recommends: python-blosc
Recommends: python-fastparquet >= 0.2.1
Recommends: python-gcsfs >= 0.2.2
Recommends: python-gcsfs >= 0.6.0
Recommends: python-html5lib
Recommends: python-lxml >= 3.8.0
Recommends: python-matplotlib >= 2.2.2
Recommends: python-numexpr >= 2.6.2
Recommends: python-openpyxl >= 2.4.8
Recommends: python-pandas-gbq >= 0.8.0
Recommends: python-pandas-gbq >= 1.2.0
Recommends: python-psycopg2
Recommends: python-pyarrow >= 0.9.0
Recommends: python-pyperclip
Recommends: python-pyreadstat
Recommends: python-qt5
Recommends: python-scipy >= 0.19.0
Recommends: python-tables >= 3.4.2
Recommends: python-scipy >= 1.2.0
Recommends: python-tables >= 3.4.3
Recommends: python-xarray >= 0.8.2
Recommends: python-xlrd >= 1.1.0
Recommends: python-xlwt >= 1.2.0
@ -94,7 +93,7 @@ BuildRequires: %{python_module pandas = %{version}}
BuildRequires: %{python_module pytest >= 4.0.2}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module python-dateutil >= 2.6.1}
BuildRequires: %{python_module python-dateutil >= 2.7.3}
BuildRequires: %{python_module pytz >= 2015.4}
BuildRequires: %{python_module xlrd >= 1.1.0}
BuildRequires: %{python_module xlwt >= 1.2.0}
@ -111,11 +110,6 @@ block for doing data analysis in Python.
%prep
%if !%{with test}
%setup -q -n pandas-%{version}
sed -i -e 's/\r//g' pandas/tests/reshape/merge/test_merge.py
%patch0 -p1
sed -i -e '/^#!\//, 1d' pandas/core/computation/eval.py
sed -i -e '/^#!\//, 1d' pandas/tests/io/generate_legacy_storage_files.py
sed -i -e '/^#!\//, 1d' pandas/tests/plotting/common.py
%endif
%build
@ -130,7 +124,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
%{python_expand sed -i -e 's|"python", "-c",|"%{__$python}", "-c",|' %{buildroot}%{$python_sitearch}/pandas/tests/io/test_compression.py
%fdupes %{buildroot}%{$python_sitearch}
# can be removed for pandas >= 1.1 https://github.com/pandas-dev/pandas/pull/35146
install %SOURCE99 %{buildroot}%{$python_sitearch}/pandas/pytest.ini
install %{SOURCE99} %{buildroot}%{$python_sitearch}/pandas/pytest.ini
}
%endif
@ -146,6 +140,8 @@ export PYTHONDONTWRITEBYTECODE=1
export PYTHONHASHSEED=1
# tries to compile stuff in buildroot test_oo_optimizable
SKIP_TESTS+=" or test_oo_optimizable"
# tries to import system pandas, not the freshly build on
SKIP_TESTS+=" or test_missing_required_dependency"
%ifarch %{ix86}
# https://github.com/pandas-dev/pandas/issues/29712
SKIP_TESTS+=" or test_raw_roundtrip"