diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-08-27 02:31:14 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-08-27 11:19:25 -0300 |
commit | aea4ac318265973213b3cb2914b5dd209ac978ae (patch) | |
tree | c47817b8ca8522373dbe2bf0b52eb8f4501e8853 /testing | |
parent | 66b2a7e54f6a9b7f45afa194696b338de3b6f171 (diff) | |
download | aports-aea4ac318265973213b3cb2914b5dd209ac978ae.tar.bz2 aports-aea4ac318265973213b3cb2914b5dd209ac978ae.tar.xz |
testing/py3-h2: upgrade to 3.1.1
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py3-h2/APKBUILD | 45 |
1 files changed, 16 insertions, 29 deletions
diff --git a/testing/py3-h2/APKBUILD b/testing/py3-h2/APKBUILD index 360dea6d8f..96e6b7cf70 100644 --- a/testing/py3-h2/APKBUILD +++ b/testing/py3-h2/APKBUILD @@ -1,45 +1,32 @@ # Contributor: André Klitzing <aklitzing@gmail.com> # Maintainer: André Klitzing <aklitzing@gmail.com> -pkgname=py-h2 +pkgname=py3-h2 _pkgname=hyper-h2 -pkgver=3.0.0 -pkgrel=1 +pkgver=3.1.1 +pkgrel=0 pkgdesc="HTTP/2 State-Machine based protocol implementation" +options="!check" # Requires unpackaged hyperframe url="https://python-hyper.org/h2/" arch="noarch" license="MIT" -makedepends="python2-dev py-setuptools python3-dev" -subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" -source="$pkgname-$pkgver.tar.gz::https://github.com/python-hyper/$_pkgname/archive/v$pkgver.tar.gz" +makedepends="py3-setuptools" +checkdepends="py3-pytest py3-hypothesis" +source="$pkgname-$pkgver.tar.gz::https://github.com/python-hyper/hyper-h2/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" -build() { - cd "$builddir" - python2 setup.py build || return 1 - python3 setup.py build || return 1 -} - -package() { - mkdir -p "$pkgdir" -} - -_py() { - local python="$1" - pkgdesc="$pkgdesc (for $python)" - depends="$python" - install_if="$pkgname=$pkgver-r$pkgrel $python" +replaces="py-h2" # Backwards compatibility +provides="py-h2=$pkgver-r$pkgrel" # Backwards compatibility - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" +build() { + python3 setup.py build } -_py2() { - replaces="$pkgname" - _py python2 +check() { + pytest-3 } -_py3() { - _py python3 +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" } -sha512sums="33fbc08d28b347ed5be6257ea8ba45b59642951e6c716a27bdae86c1c5ccc388dd9bc5beaa62f6f59326f0fa0c39176bb4c8d7ab1c9ae3e2c056000ac2c3f75a py-h2-3.0.0.tar.gz" +sha512sums="153c450ef918cc7cdb5d8efe61692a646925e76e6255ef46f679091590681be7d1f9319b37f6521c56207cf35e7d9e56951e4e3b55a24fe89d9e6aa28591957b py3-h2-3.1.1.tar.gz" |