[arch-commits] Commit in python-pandas-datareader/trunk (PKGBUILD pandas23.patch)
Andrzej Giniewicz
aginiewicz at archlinux.org
Sat Aug 11 17:27:18 UTC 2018
Date: Saturday, August 11, 2018 @ 17:27:17
Author: aginiewicz
Revision: 371165
upgpkg: python-pandas-datareader 0.6.0-4
python-pandas-datareader: fix pandas 0.23 support (FS#58912)
Added:
python-pandas-datareader/trunk/pandas23.patch
Modified:
python-pandas-datareader/trunk/PKGBUILD
----------------+
PKGBUILD | 11 ++++++++---
pandas23.patch | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-08-11 17:21:18 UTC (rev 371164)
+++ PKGBUILD 2018-08-11 17:27:17 UTC (rev 371165)
@@ -4,7 +4,7 @@
pkgbase=python-pandas-datareader
pkgname=('python2-pandas-datareader' 'python-pandas-datareader')
pkgver=0.6.0
-pkgrel=3
+pkgrel=4
pkgdesc="Data readers extracted from the pandas codebase"
arch=('any')
url="https://github.com/pydata/pandas-datareader"
@@ -11,11 +11,16 @@
license=('BSD')
makedepends=('python-setuptools' 'python-pandas' 'python-requests-file' 'python-requests-ftp'
'python2-setuptools' 'python2-pandas' 'python2-requests-file' 'python2-requests-ftp')
-source=("https://github.com/pydata/pandas-datareader/archive/v${pkgver}.tar.gz")
-md5sums=('f92c05cdf3ca645eb7aa42fd84723d31')
+source=("https://github.com/pydata/pandas-datareader/archive/v${pkgver}.tar.gz"
+ "pandas23.patch")
+md5sums=('f92c05cdf3ca645eb7aa42fd84723d31'
+ 'aa40ae2ef631f4e32688a393d33d787d')
prepare() {
cd "$srcdir"
+
+ patch -p0 < pandas23.patch
+
cp -a pandas-datareader-${pkgver} pandas-datareader-py2-${pkgver}
cd pandas-datareader-py2-${pkgver}
Added: pandas23.patch
===================================================================
--- pandas23.patch (rev 0)
+++ pandas23.patch 2018-08-11 17:27:17 UTC (rev 371165)
@@ -0,0 +1,34 @@
+diff -urN pandas-datareader-0.6.0.orig/pandas_datareader/compat/__init__.py pandas-datareader-0.6.0/pandas_datareader/compat/__init__.py
+--- pandas-datareader-0.6.0.orig/pandas_datareader/compat/__init__.py 2018-08-11 19:23:13.526123366 +0200
++++ pandas-datareader-0.6.0/pandas_datareader/compat/__init__.py 2018-08-11 19:24:01.953342399 +0200
+@@ -14,6 +14,7 @@
+ PANDAS_0190 = (PANDAS_VERSION >= LooseVersion('0.19.0'))
+ PANDAS_0200 = (PANDAS_VERSION >= LooseVersion('0.20.0'))
+ PANDAS_0210 = (PANDAS_VERSION >= LooseVersion('0.21.0'))
++PANDAS_0230 = (PANDAS_VERSION >= LooseVersion('0.23.0'))
+
+ if PANDAS_0190:
+ from pandas.api.types import is_number
+@@ -37,6 +38,12 @@
+ from pandas.util.testing import assertRaisesRegexp as assert_raises_regex
+ get_filepath_or_buffer = com.get_filepath_or_buffer
+
++if PANDAS_0230:
++ from pandas.core.dtypes.common import is_list_like
++else:
++ from pandas.core.common import is_list_like
++
++
+ if compat.PY3:
+ from urllib.error import HTTPError
+ else:
+diff -urN pandas-datareader-0.6.0.orig/pandas_datareader/fred.py pandas-datareader-0.6.0/pandas_datareader/fred.py
+--- pandas-datareader-0.6.0.orig/pandas_datareader/fred.py 2018-08-11 19:23:13.529456737 +0200
++++ pandas-datareader-0.6.0/pandas_datareader/fred.py 2018-08-11 19:25:30.284351849 +0200
+@@ -1,4 +1,5 @@
+-from pandas.core.common import is_list_like
++from pandas_datareader.compat import is_list_like
++
+ from pandas import concat, read_csv
+
+ from pandas_datareader.base import _BaseReader
More information about the arch-commits
mailing list