diff options
author | prspkt <prspkt@protonmail.com> | 2019-06-20 09:42:49 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-06-20 10:01:42 +0300 |
commit | 8cda77328905b46c0651558b2c2bbe9999148d58 (patch) | |
tree | 447f5b8ca880f8fd23cfc57c9f7106da11392e03 /testing/py3-infinity | |
parent | c3b55f5da27c55a93d29ca58d9526ed9c7166baf (diff) | |
download | aports-8cda77328905b46c0651558b2c2bbe9999148d58.tar.bz2 aports-8cda77328905b46c0651558b2c2bbe9999148d58.tar.xz |
testing/py3-infinity: clarify license, modernize
* Add checkdepends and run test suite.
Diffstat (limited to 'testing/py3-infinity')
-rw-r--r-- | testing/py3-infinity/APKBUILD | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/testing/py3-infinity/APKBUILD b/testing/py3-infinity/APKBUILD index 0319114620..022e13aae2 100644 --- a/testing/py3-infinity/APKBUILD +++ b/testing/py3-infinity/APKBUILD @@ -3,13 +3,14 @@ pkgname=py3-infinity _pkgname=infinity pkgver=1.4 -pkgrel=2 +pkgrel=3 pkgdesc="All-in-one infinity value for Python" url="https://github.com/kvesteri/infinity" arch="noarch" -license="BSD" +license="BSD-3-Clause" depends="python3" makedepends="py3-setuptools" +checkdepends="py3-pytest" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver @@ -17,15 +18,15 @@ replaces="py-infinity" # Backwards compatibility provides="py-infinity=$pkgver-r$pkgrel" # Backwards compatibility build() { - cd "$builddir" - python3 setup.py build || return 1 + python3 setup.py build +} + +check() { + py.test-3 } package() { - cd "$builddir" python3 setup.py install --prefix=/usr --root="$pkgdir" } -md5sums="635a344a05c37c1e005b0f1233ecbda9 infinity-1.4.tar.gz" -sha256sums="dc4aa138d7e366fc00d2e741e32c78a0fecd16b74f8daeb3f7408b459668005c infinity-1.4.tar.gz" sha512sums="57ce539d861a47d02b570f997a0b1ee6c631a1d9825b68692e9edfac789ec3069b754abb64bb4128dbfcf2eea231067c61a287315ec130a301f18c0e65387acb infinity-1.4.tar.gz" |