diff --git a/pandas-0.24.1.tar.gz b/pandas-0.24.1.tar.gz deleted file mode 100644 index 120912d..0000000 --- a/pandas-0.24.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:435821cb2501eabbcee7e83614bd710940dc0cf28b5afbc4bdb816c31cec71af -size 11832827 diff --git a/pandas-0.24.2.tar.gz b/pandas-0.24.2.tar.gz new file mode 100644 index 0000000..2615654 --- /dev/null +++ b/pandas-0.24.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f919f409c433577a501e023943e582c57355d50a724c589e78bc1d551a535a2 +size 11837693 diff --git a/pandas-tests-memory.patch b/pandas-tests-memory.patch new file mode 100644 index 0000000..206979b --- /dev/null +++ b/pandas-tests-memory.patch @@ -0,0 +1,48 @@ +From 5a73ff8b4e10d016e0fd4162fa14c8f1a41345d9 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= +Date: Thu, 21 Feb 2019 15:05:21 +0100 +Subject: [PATCH] Mark test_pct_max_many_rows as high memory + +Fixes issue #25384 +--- + pandas/tests/frame/test_rank.py | 1 + + pandas/tests/series/test_rank.py | 1 + + pandas/tests/test_algos.py | 1 + + 3 files changed, 3 insertions(+) + +diff --git a/pandas/tests/frame/test_rank.py b/pandas/tests/frame/test_rank.py +index 10c42e0d1a1..6bb9dea15d1 100644 +--- a/pandas/tests/frame/test_rank.py ++++ b/pandas/tests/frame/test_rank.py +@@ -310,6 +310,7 @@ def test_rank_pct_true(self, method, exp): + tm.assert_frame_equal(result, expected) + + @pytest.mark.single ++ @pytest.mark.high_memory + def test_pct_max_many_rows(self): + # GH 18271 + df = DataFrame({'A': np.arange(2**24 + 1), +diff --git a/pandas/tests/series/test_rank.py b/pandas/tests/series/test_rank.py +index 510a51e0029..dfcda889269 100644 +--- a/pandas/tests/series/test_rank.py ++++ b/pandas/tests/series/test_rank.py +@@ -499,6 +499,7 @@ def test_rank_first_pct(dtype, ser, exp): + + + @pytest.mark.single ++@pytest.mark.high_memory + def test_pct_max_many_rows(): + # GH 18271 + s = Series(np.arange(2**24 + 1)) +diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py +index 888cf78a1c6..cb7426ce2f7 100644 +--- a/pandas/tests/test_algos.py ++++ b/pandas/tests/test_algos.py +@@ -1484,6 +1484,7 @@ def test_too_many_ndims(self): + algos.rank(arr) + + @pytest.mark.single ++ @pytest.mark.high_memory + @pytest.mark.parametrize('values', [ + np.arange(2**24 + 1), + np.arange(2**25 + 2).reshape(2**24 + 1, 2)], diff --git a/python-pandas.changes b/python-pandas.changes index 1853518..4d9f7f3 100644 --- a/python-pandas.changes +++ b/python-pandas.changes @@ -1,3 +1,91 @@ +------------------------------------------------------------------- +Sat Mar 16 22:35:08 UTC 2019 - Arun Persaud + +- specfile: + * requier pytest-mock + +- update to version 0.24.2: + * Fixed Regressions + + Fixed regression in DataFrame.all() and DataFrame.any() where + bool_only=True was ignored (GH25101) + + Fixed issue in DataFrame construction with passing a mixed list + of mixed types could segfault. (GH25075) + + Fixed regression in DataFrame.apply() causing RecursionError + when dict-like classes were passed as argument. (GH25196) + + Fixed regression in DataFrame.replace() where regex=True was + only replacing patterns matching the start of the string + (GH25259) + + Fixed regression in DataFrame.duplicated(), where empty + dataframe was not returning a boolean dtyped Series. (GH25184) + + Fixed regression in Series.min() and Series.max() where + numeric_only=True was ignored when the Series contained + Categorical data (GH25299) + + Fixed regression in subtraction between Series objects with + datetime64[ns] dtype incorrectly raising OverflowError when the + Series on the right contains null values (GH25317) + + Fixed regression in TimedeltaIndex where np.sum(index) + incorrectly returned a zero-dimensional object instead of a + scalar (GH25282) + + Fixed regression in IntervalDtype construction where passing an + incorrect string with ‘Interval’ as a prefix could result in a + RecursionError. (GH25338) + + Fixed regression in creating a period-dtype array from a + read-only NumPy array of period objects. (GH25403) + + Fixed regression in Categorical, where constructing it from a + categorical Series and an explicit categories= that differed + from that in the Series created an invalid object which could + trigger segfaults. (GH25318) + + Fixed regression in to_timedelta() losing precision when + converting floating data to Timedelta data (GH25077). + + Fixed pip installing from source into an environment without + NumPy (GH25193) + + Fixed regression in DataFrame.replace() where large strings of + numbers would be coerced into int64, causing an OverflowError + (GH25616) + + Fixed regression in factorize() when passing a custom + na_sentinel value with sort=True (GH25409). + + Fixed regression in DataFrame.to_csv() writing duplicate line + endings with gzip compress (GH25311) + * Bug Fixes + + I/O + o Better handling of terminal printing when the terminal + dimensions are not known (GH25080) + o Bug in reading a HDF5 table-format DataFrame created in Python + 2, in Python 3 (GH24925) + o Bug in reading a JSON with orient='table' generated by + DataFrame.to_json() with index=False (GH25170) + o Bug where float indexes could have misaligned values when + printing (GH25061) + + Reshaping + o Bug in transform() where applying a function to a timezone aware + column would return a timezone naive result (GH24198) + o Bug in DataFrame.join() when joining on a timezone aware + DatetimeIndex (GH23931) + o Visualization + o Bug in Series.plot() where a secondary y axis could not be set + to log scale (GH25545) + + Other + o Bug in Series.is_unique() where single occurrences of NaN were + not considered unique (GH25180) + o Bug in merge() when merging an empty DataFrame with an Int64 + column or a non-empty DataFrame with an Int64 column that is all + NaN (GH25183) + o Bug in IntervalTree where a RecursionError occurs upon + construction due to an overflow when adding endpoints, which + also causes IntervalIndex to crash during indexing operations + (GH25485) + o Bug in Series.size raising for some extension-array-backed + Series, rather than returning the size (GH25580) + o Bug in resampling raising for nullable integer-dtype columns + (GH25580) + +------------------------------------------------------------------- +Fri Feb 22 10:22:38 UTC 2019 - Tomáš Chvátal + +- Add patch to fix testrun on 32bit: + https://github.com/pandas-dev/pandas/issues/25384 + * pandas-tests-memory.patch + ------------------------------------------------------------------- Thu Feb 21 10:45:17 UTC 2019 - Tomáš Chvátal diff --git a/python-pandas.spec b/python-pandas.spec index e0edb2f..b25ec9d 100644 --- a/python-pandas.spec +++ b/python-pandas.spec @@ -19,13 +19,14 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python Name: python-pandas -Version: 0.24.1 +Version: 0.24.2 Release: 0 Summary: Python module for working with "relational" or "labeled" data License: BSD-3-Clause Group: Development/Libraries/Python URL: http://pandas.pydata.org/ Source0: https://files.pythonhosted.org/packages/source/p/pandas/pandas-%{version}.tar.gz +Patch0: pandas-tests-memory.patch BuildRequires: %{python_module Cython >= 0.28.2} BuildRequires: %{python_module SQLAlchemy} BuildRequires: %{python_module XlsxWriter} @@ -35,6 +36,7 @@ BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module lxml} BuildRequires: %{python_module nose} BuildRequires: %{python_module numpy-devel >= 1.15.0} +BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest} BuildRequires: %{python_module python-dateutil >= 2.5} BuildRequires: %{python_module pytz >= 2011k} @@ -92,6 +94,7 @@ http://pandas.pydata.org/pandas-docs/stable/ . %prep %setup -q -n pandas-%{version} +%patch0 -p1 sed -i -e '/^#!\//, 1d' pandas/core/computation/eval.py %build