diff options
| author | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 08:53:56 -0300 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 09:05:06 -0300 |
| commit | 6193383f6b099af15cec504716adcdf88d90c56d (patch) | |
| tree | b52702ee4c16ca63329ca4294eb916fe177935dd /testing/py3-wbdata | |
| parent | 06df6edbf64a1c44e0306276af34a21bdf35fa98 (diff) | |
| download | aports-6193383f6b099af15cec504716adcdf88d90c56d.tar.bz2 aports-6193383f6b099af15cec504716adcdf88d90c56d.tar.xz | |
testing/py3-wbdata: drop py2
Diffstat (limited to 'testing/py3-wbdata')
| -rw-r--r-- | testing/py3-wbdata/APKBUILD | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/testing/py3-wbdata/APKBUILD b/testing/py3-wbdata/APKBUILD index c9e00bbd3e..55efb22708 100644 --- a/testing/py3-wbdata/APKBUILD +++ b/testing/py3-wbdata/APKBUILD @@ -1,30 +1,32 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-wbdata +pkgname=py3-wbdata _pkgname=wbdata pkgver=0.2.7 -pkgrel=0 +pkgrel=1 pkgdesc="A library to access World Bank data" +options="!check" # Tests are broken url="https://github.com/oliversherouse/wbdata" arch="noarch" license="GPL-2.0-or-later" -depends="python2" -depends_dev="" -makedepends="python2-dev py-setuptools" -install="" -subpackages="" +depends="python3 py3-decorator" +makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" - builddir="$srcdir/$_pkgname-$pkgver" +replaces="py-wbdata" # Backwards compatibility +provides="py-wbdata=$pkgver-r$pkgrel" # Backwards compatibility + build() { - cd "$builddir" - python2 setup.py build + python3 setup.py build +} + +check() { + python3 setup.py test } package() { - cd "$builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="5b7d8a556f12414e12f2c6bb8e6cb0ca6961675c1e606f8f2153b6d73911e60e22fca0fe70e82143ea2df5c1b4b156f270b15210eec2a8086936500b15be91fe wbdata-0.2.7.tar.gz" |
