diff options
author | André Klitzing <aklitzing@gmail.com> | 2018-02-04 14:13:09 +0100 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2018-02-05 18:58:50 +0000 |
commit | e396733a7335f84883f599db7c1e9768bccc65fc (patch) | |
tree | afc4620f00679f503c9b63accb0505cbb697cf26 /community/py-hglib | |
parent | 7d72a93f5a392fec34e59bd9d1a8407f5a34df59 (diff) | |
download | aports-e396733a7335f84883f599db7c1e9768bccc65fc.tar.bz2 aports-e396733a7335f84883f599db7c1e9768bccc65fc.tar.xz |
community/py-hglib: upgrade to 2.5 and modernize abuild
Diffstat (limited to 'community/py-hglib')
-rw-r--r-- | community/py-hglib/APKBUILD | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/community/py-hglib/APKBUILD b/community/py-hglib/APKBUILD index 042c68d03d..197fdf3615 100644 --- a/community/py-hglib/APKBUILD +++ b/community/py-hglib/APKBUILD @@ -2,21 +2,28 @@ # Maintainer: André Klitzing <aklitzing@gmail.com> pkgname=py-hglib _pkgname=python-hglib -pkgver=2.4 +pkgver=2.5 pkgrel=0 pkgdesc="A fast and convenient interface to Mercurial's command server" url="https://pypi.python.org/pypi/python-hglib" arch="noarch" license="MIT" makedepends="mercurial python2-dev py-setuptools python3-dev" +checkdepends="py-nose" subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" - python2 setup.py build || return 1 - python3 setup.py build || return 1 + python2 setup.py build + python3 setup.py build +} + +check() { + cd "$builddir" + python2 test.py + python3 test.py } package() { @@ -42,4 +49,4 @@ _py3() { _py python3 } -sha512sums="91fff5b5badb798aa0a5a25d8544718afe545a53d1b4f5725abbf46a07a81fbbea12e3a8b05c874b4693668e3fc57362100844d7387ed3dc6dc7b50d3a7e8c52 python-hglib-2.4.tar.gz" +sha512sums="6152094dcace80b6c6b927543d6450ef2eb0bf6ab86de966a025dba12fc0a95910a0aaea7df2491d320c00ee76a4c3f5dfb3cfbdaaaaa6c941a3322c1b0dbab9 python-hglib-2.5.tar.gz" |