diff options
| author | Leo <thinkabit.ukim@gmail.com> | 2019-07-02 03:25:35 -0300 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-02 07:04:05 -0300 |
| commit | 162ed5b600d3f65a3f7cad8388a671107b22a5f6 (patch) | |
| tree | c5dc674a10bcb1d037e9809176faf83f6a3f3678 /testing | |
| parent | a6bc58da97e2974a831d71564c0f9c927768dbdb (diff) | |
| download | aports-162ed5b600d3f65a3f7cad8388a671107b22a5f6.tar.bz2 aports-162ed5b600d3f65a3f7cad8388a671107b22a5f6.tar.xz | |
testing/pytest-expect: drop python2
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/pytest-expect/APKBUILD | 39 |
1 files changed, 5 insertions, 34 deletions
diff --git a/testing/pytest-expect/APKBUILD b/testing/pytest-expect/APKBUILD index d264dbcbbf..81c149d554 100644 --- a/testing/pytest-expect/APKBUILD +++ b/testing/pytest-expect/APKBUILD @@ -2,51 +2,22 @@ # Maintainer: Stefan Wagner <stw@bit-strickerei.de> pkgname=pytest-expect pkgver=1.1.0 -pkgrel=1 +pkgrel=2 pkgdesc="py.test plugin that stores test expectations." +options="!check" # No testsuite in tarball url="https://github.com/gsnedders/pytest-expect" arch="noarch" license="MIT" -depends="pytest py-u-msgpack" -makedepends="python2-dev python3-dev py-setuptools" -subpackages="py3-$pkgname:_py3 py2-$pkgname:_py2" +depends="pytest py3-u-msgpack" +makedepends="py3-setuptools" source="$pkgname-$pkgver.tar.gz::https://github.com/gsnedders/$pkgname/archive/$pkgver.tar.gz" -builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$builddir" - python2 setup.py build python3 setup.py build } -check() { - cd "$builddir" - python2 setup.py test - python3 setup.py test -} - package() { - mkdir -p "$pkgdir" -} - -_py2() { - depends="${depends//py-/py2-}" - _py python2 -} - -_py3() { - depends="${depends//py-/py3-}" - _py python3 -} - -_py() { - local python=$1 - pkgdesc="$pkgdesc - $python" - depends="$depends $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" } sha512sums="dbef3c394e974663179e91ca3cd6f096fdb055693b3e540dd0f27d6bf59a5c7298144598eb069f8f0acddd82ecce0bdce14ccd25728eb6a024d41895403e5144 pytest-expect-1.1.0.tar.gz" |
