diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-07-02 03:30:38 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-02 07:04:05 -0300 |
commit | 4ab586e4ed30743746557b421294ea05dd6bb326 (patch) | |
tree | 092c6b397c44aa3cb53d1e57dd299a59a2dbf9b5 /testing/py3-webencodings/APKBUILD | |
parent | 785ea11e20ab02ad7dd38aef10ba82aabedc134f (diff) | |
download | aports-4ab586e4ed30743746557b421294ea05dd6bb326.tar.bz2 aports-4ab586e4ed30743746557b421294ea05dd6bb326.tar.xz |
testing/py3-webencodings: rebuild as python3 only
Diffstat (limited to 'testing/py3-webencodings/APKBUILD')
-rw-r--r-- | testing/py3-webencodings/APKBUILD | 37 |
1 files changed, 7 insertions, 30 deletions
diff --git a/testing/py3-webencodings/APKBUILD b/testing/py3-webencodings/APKBUILD index 77eeb0a35f..c1625c2a4e 100644 --- a/testing/py3-webencodings/APKBUILD +++ b/testing/py3-webencodings/APKBUILD @@ -1,51 +1,28 @@ # Contributor: Stefan Wagner <stw@bit-strickerei.de> # Maintainer: Stefan Wagner <stw@bit-strickerei.de> -pkgname=py-webencodings +pkgname=py3-webencodings _pkgname=webencodings pkgver=0.5.1 -pkgrel=1 +pkgrel=2 pkgdesc="Character encoding for the web" url="https://github.com/gsnedders/python-webencodings" arch="noarch" license="MIT" -makedepends="python2-dev python3-dev py-setuptools" -subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3" +depends="python3" +makedepends="py3-setuptools" +checkdepends="pytest" source="$_pkgname-$pkgver.tar.gz::https://github.com/gsnedders/python-$_pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir"/python-$_pkgname-$pkgver build() { - cd "$builddir" - python2 setup.py build python3 setup.py build } check() { - cd "$builddir" - python2 setup.py test - python3 setup.py test + py.test-3 } package() { - mkdir -p "$pkgdir" -} - -_py2() { - 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" + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="c5cb34f35fb5bc7ffb88c19eb3262dedbf6231c0ee2871dccbc0f9497193d8209fc20703d451a2bb41a5ff913e63abf7481f7a8f9886c953724e9cf71c34cb74 webencodings-0.5.1.tar.gz" |