aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-08-28 20:47:34 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-08-28 21:53:35 -0300
commitb4fad14a66095518989f1d175b02ec4d62578974 (patch)
treee8f351f46e39db13ecf588bd5d714f11a76db41e
parent432963061d05698a628956754e287800e814a4aa (diff)
downloadaports-b4fad14a66095518989f1d175b02ec4d62578974.tar.bz2
aports-b4fad14a66095518989f1d175b02ec4d62578974.tar.xz
testing/py3-pandas: upgrade to 0.25.1
-rw-r--r--testing/py3-pandas/APKBUILD38
1 files changed, 8 insertions, 30 deletions
diff --git a/testing/py3-pandas/APKBUILD b/testing/py3-pandas/APKBUILD
index 7eae0c4ee8..5879d33076 100644
--- a/testing/py3-pandas/APKBUILD
+++ b/testing/py3-pandas/APKBUILD
@@ -1,49 +1,27 @@
# Contributor: Carlos Giraldo <cgiraldo@gradiant.org>
# Maintainer: Carlos Giraldo <cgiraldo@gradiant.org>
-pkgname=py-pandas
+pkgname=py3-pandas
_pkgname=pandas
-pkgver=0.24.1
+pkgver=0.25.1
pkgrel=0
pkgdesc="Powerful data structures for data analysis, time series, and statistics"
url="http://pandas.pydata.org/"
arch="all"
license="BSD-3-Clause"
-depends="py-dateutil py-numpy py-tz"
-makedepends="linux-headers py-numpy-dev python2-dev python3-dev py-setuptools"
-subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"
+depends="py3-dateutil py3-numpy py3-tz"
+makedepends="linux-headers py3-numpy-dev python3-dev py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
+replaces="py-pandas" # Backwards compatibility
+provides="py-pandas=$pkgver-r$pkgrel" # Backwards compatibility
build() {
- python2 setup.py build
python3 setup.py build
}
package() {
- mkdir -p "$pkgdir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-_py() {
- local python="$1"
- pkgdesc="$pkgdesc ${python#python}"
- depends="$depends $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
-}
-
-_py2() {
- depends="${depends//py-/py2-}"
- depends="${depends//python/python2}"
- _py python2
-}
-
-_py3() {
- depends="${depends//py-/py3-}"
- depends="${depends//python/python3}"
- _py python3
-}
-
-sha512sums="15f75308f4c437ad0096c3a3d768563b071b3d8e55e1850a5ee0f980f56a9d8d1b9fed9d7707ba43e80052e6c5fea313ac1ad2687935f0ab37a16a68bf64ae19 pandas-0.24.1.tar.gz"
+sha512sums="5ca8991d4355011741ca046b72d426db47c1e0931aa30a90826959defd3577a28ba6c413798d9f45b3a1864701e100f51fbfac42c37c0edb79b1385893d3b1a3 pandas-0.25.1.tar.gz"