diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-08-29 18:01:00 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-09-20 11:02:31 +0000 |
commit | f47083a9be988ab3b7b0a887bd961c5bb4ceaba3 (patch) | |
tree | 6fc6ac65d7654c0fc764886e90eec81f64b1a495 /main | |
parent | 3dfbbbad8683d38fe37a85cb5eb5bb7e9a74bbf1 (diff) | |
download | aports-f47083a9be988ab3b7b0a887bd961c5bb4ceaba3.tar.bz2 aports-f47083a9be988ab3b7b0a887bd961c5bb4ceaba3.tar.xz |
main/py3-tox: drop py2
Diffstat (limited to 'main')
-rw-r--r-- | main/py3-tox/APKBUILD | 40 |
1 files changed, 11 insertions, 29 deletions
diff --git a/main/py3-tox/APKBUILD b/main/py3-tox/APKBUILD index 0e36fd226c..431952f93b 100644 --- a/main/py3-tox/APKBUILD +++ b/main/py3-tox/APKBUILD @@ -1,53 +1,35 @@ # Contributor: Stuart Cardall <developer@it-offshore.co.uk> # Maintainer: Stuart Cardall <developer@it-offshore.co.uk> -pkgname=py-tox -_pkgname=${pkgname#py-*} +pkgname=py3-tox +_pkgname=${pkgname#py3-*} pkgver=3.9.0 -pkgrel=0 +pkgrel=1 pkgdesc="virtualenv management and test command line tool" +options="!check" # Requires unpackaged py3-pytest extensions url="https://tox.readthedocs.org/" arch="noarch" license="MIT" -_py2deps="py2-virtualenv py2-py py2-pluggy py2-argparse py2-six py2-filelock py2-toml" -_py3deps="py3-virtualenv py3-py py3-pluggy py3-argparse py3-six py3-filelock py3-toml" -makedepends="python2-dev python3-dev py-setuptools $_py2deps $_py3deps" -checkdepends="pytest" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +depends="py3-virtualenv py3-py py3-pluggy py3-argparse py3-six py3-filelock py3-toml + py3-setuptools" +checkdepends="py3-pytest" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" +replaces="py-tox" # Backwards compatibility +provides="py-tox=$pkgver-r$pkgrel" # Backwards compatibility + build() { cd "$builddir" - python2 setup.py build python3 setup.py build } package() { - mkdir -p "$pkgdir" -} - -_py2() { - depends="$_py2deps python2" - _py python2 -} - -_py3() { - depends="$_py3deps python3" - _py python3 -} - -_py() { - local python="$1" - pkgdesc="$pkgdesc (for $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" } check() { cd "$builddir" - python2 setup.py test python3 setup.py test } |