diff options
Diffstat (limited to 'community/pytest/APKBUILD')
-rw-r--r-- | community/pytest/APKBUILD | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/community/pytest/APKBUILD b/community/pytest/APKBUILD index e8f352d3cf..fb4bebf7a6 100644 --- a/community/pytest/APKBUILD +++ b/community/pytest/APKBUILD @@ -2,15 +2,15 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=pytest _pkgname=pytest -pkgver=2.6.1 -pkgrel=1 +pkgver=2.9.2 +pkgrel=0 pkgdesc="A python test library" url="http://pytest.org" arch="noarch" license="MIT" depends="" depends_dev="" -makedepends="python-dev py-setuptools python3-dev" +makedepends="python2-dev py-setuptools python3-dev" install="" subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" @@ -19,24 +19,20 @@ builddir="$srcdir"/$_pkgname-$pkgver build() { cd "$builddir" - python setup.py build || return 1 - python3 setup.py build || return 1 + python2 setup.py build || return 1 + python3 setup.py build || return 1 } package() { - cd "$builddir" - python setup.py install --root=$pkgdir/ --optimize=1 || return 1 - python3 setup.py install --root=$pkgdir/ --optimize=1 || return 1 + mkdir -p "$pkgdir" } _py() { local python=$1 pkgdesc="$pkgdesc - $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - local dir=$($python -c 'import sysconfig; print(sysconfig.get_path("stdlib"))') - - mkdir -p "$subpkgdir"${dir} - mv "$pkgdir"${dir}/* "$subpkgdir"${dir} + install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" } _py2() { @@ -49,6 +45,7 @@ _py3() { } -md5sums="bb353f6cf6d9ff83ff7f2dfbeaca47a3 pytest-2.6.1.tar.gz" -sha256sums="994dabcb3149659d259add2aa7d11bff4d35efb7cf4c8233fa9b0b62c1255c3c pytest-2.6.1.tar.gz" -sha512sums="1bfbe27491800943484616a37cfe0f2f8677e3b2a25aee19f842bdf66a9c0205af8c2aecaeb50823970ab9f7042b1bb9115e3c4d689fe568a17a062c50ead829 pytest-2.6.1.tar.gz" + +md5sums="b65c2944dfaa0efb62c0239afb424f5b pytest-2.9.2.tar.gz" +sha256sums="12c18abb9a09a5b2802dba75c7a2d7d6c8c0f1258abd8243e7688415d87ad1d8 pytest-2.9.2.tar.gz" +sha512sums="54a29933b6964ac0ca39035428cc2a2dd740a47728f8dda08828b962da3fa0878aeb5afc6d938c0171957e643c1453f1a8ca84117fc1bf86885b0e71ff80b5ad pytest-2.9.2.tar.gz" |