[arch-commits] Commit in python-pandas-datareader/repos/community-any (3 files)
Andrzej Giniewicz
aginiewicz at archlinux.org
Sat Aug 11 17:27:27 UTC 2018
Date: Saturday, August 11, 2018 @ 17:27:26
Author: aginiewicz
Revision: 371166
archrelease: copy trunk to community-any
Added:
python-pandas-datareader/repos/community-any/PKGBUILD
(from rev 371165, python-pandas-datareader/trunk/PKGBUILD)
python-pandas-datareader/repos/community-any/pandas23.patch
(from rev 371165, python-pandas-datareader/trunk/pandas23.patch)
Deleted:
python-pandas-datareader/repos/community-any/PKGBUILD
----------------+
PKGBUILD | 123 ++++++++++++++++++++++++++++---------------------------
pandas23.patch | 34 +++++++++++++++
2 files changed, 98 insertions(+), 59 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-08-11 17:27:17 UTC (rev 371165)
+++ PKGBUILD 2018-08-11 17:27:26 UTC (rev 371166)
@@ -1,59 +0,0 @@
-# $Id$
-# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-
-pkgbase=python-pandas-datareader
-pkgname=('python2-pandas-datareader' 'python-pandas-datareader')
-pkgver=0.6.0
-pkgrel=3
-pkgdesc="Data readers extracted from the pandas codebase"
-arch=('any')
-url="https://github.com/pydata/pandas-datareader"
-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')
-
-prepare() {
- cd "$srcdir"
- cp -a pandas-datareader-${pkgver} pandas-datareader-py2-${pkgver}
- cd pandas-datareader-py2-${pkgver}
-
- sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
- -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
- -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
- -i $(find . -name '*.py')
-}
-
-build() {
- msg "Building Python2"
- cd "$srcdir"/pandas-datareader-py2-${pkgver}
- python2 setup.py build_ext --inplace
- python2 setup.py build
-
- msg "Building Python3"
- cd "$srcdir"/pandas-datareader-${pkgver}
- python setup.py build_ext --inplace
- python setup.py build
-}
-
-package_python2-pandas-datareader() {
- depends=('python2-pandas' 'python2-requests-file' 'python2-requests-ftp')
-
- cd "$srcdir"/pandas-datareader-py2-${pkgver}
-
- python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
-
- install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python-pandas-datareader() {
- depends=('python-pandas' 'python-requests-file' 'python-requests-ftp')
-
- cd "$srcdir"/pandas-datareader-${pkgver}
-
- python setup.py install --skip-build --root="$pkgdir" --optimize=1
-
- install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
Copied: python-pandas-datareader/repos/community-any/PKGBUILD (from rev 371165, python-pandas-datareader/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-08-11 17:27:26 UTC (rev 371166)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgbase=python-pandas-datareader
+pkgname=('python2-pandas-datareader' 'python-pandas-datareader')
+pkgver=0.6.0
+pkgrel=4
+pkgdesc="Data readers extracted from the pandas codebase"
+arch=('any')
+url="https://github.com/pydata/pandas-datareader"
+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"
+ "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}
+
+ sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+ -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
+ -i $(find . -name '*.py')
+}
+
+build() {
+ msg "Building Python2"
+ cd "$srcdir"/pandas-datareader-py2-${pkgver}
+ python2 setup.py build_ext --inplace
+ python2 setup.py build
+
+ msg "Building Python3"
+ cd "$srcdir"/pandas-datareader-${pkgver}
+ python setup.py build_ext --inplace
+ python setup.py build
+}
+
+package_python2-pandas-datareader() {
+ depends=('python2-pandas' 'python2-requests-file' 'python2-requests-ftp')
+
+ cd "$srcdir"/pandas-datareader-py2-${pkgver}
+
+ python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python-pandas-datareader() {
+ depends=('python-pandas' 'python-requests-file' 'python-requests-ftp')
+
+ cd "$srcdir"/pandas-datareader-${pkgver}
+
+ python setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
Copied: python-pandas-datareader/repos/community-any/pandas23.patch (from rev 371165, python-pandas-datareader/trunk/pandas23.patch)
===================================================================
--- pandas23.patch (rev 0)
+++ pandas23.patch 2018-08-11 17:27:26 UTC (rev 371166)
@@ -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