diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-07-02 03:11:00 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-02 07:04:03 -0300 |
commit | 9e4df4367f89ab407630c2df29e35dd60fbaf211 (patch) | |
tree | 5b32cf26fb4f96d164a7cbe38232e5bf78691757 | |
parent | 091c7c78b4960a7840903d1fe8949dde0cc01a0f (diff) | |
download | aports-9e4df4367f89ab407630c2df29e35dd60fbaf211.tar.bz2 aports-9e4df4367f89ab407630c2df29e35dd60fbaf211.tar.xz |
testing/py3-praw: rebuild as python3 only
-rw-r--r-- | testing/py3-praw/APKBUILD | 44 |
1 files changed, 11 insertions, 33 deletions
diff --git a/testing/py3-praw/APKBUILD b/testing/py3-praw/APKBUILD index cccdc020e6..8b439f8c78 100644 --- a/testing/py3-praw/APKBUILD +++ b/testing/py3-praw/APKBUILD @@ -1,55 +1,33 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-praw +pkgname=py3-praw _pkgname=praw pkgver=4.0.0 -pkgrel=3 +pkgrel=4 pkgdesc="A Python module to access to reddit's API" url="https://github.com/praw-dev/praw" arch="noarch" license="GPL-3.0-or-later" -depends="py-prawcore py-update-checker py-requests py-six" -makedepends="python2-dev py-setuptools python3-dev" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +depends="py3-prawcore py3-update-checker py3-requests py3-six py3-decorator" +makedepends="py3-setuptools" +checkdepends="pytest" source="$_pkgname-$pkgver.tar.gz::https://github.com/praw-dev/praw/archive/v$pkgver.tar.gz relax-version-requirements.patch" builddir="$srcdir"/$_pkgname-$pkgver -build() { - cd "$builddir" - python2 setup.py build || return 1 - python3 setup.py build || return 1 -} +replaces="py-praw" # Backwards compatibility +provides="py-praw=$pkgver-r$pkgrel" # Backwards compatibility -package() { - mkdir -p "$pkgdir" +build() { + python3 setup.py build } check() { - cd "$builddir" - python2 setup.py test python3 setup.py test } -_py2() { - replaces="$pkgname" - depends="${depends//py-/py2-}" - _py python2 -} - -_py3() { - depends="${depends//py-/py3-}" - _py python3 -} - -_py() { - local python="$1" - pkgdesc="$pkgdesc (for $python)" - depends="$depends $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="adf33b1e51cbbf1ed96ed57360ba25c9449e6649b6bd923d392c74814a2e296dec5b5bcae963dc8428dfb6d047a2eeaaf1fe6e902cfb9081b0875ab95e9dde6b praw-4.0.0.tar.gz |