diff options
| author | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-04 14:58:59 +0000 |
|---|---|---|
| committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-04 15:28:09 +0000 |
| commit | e1cacf3c7b04af8a9ec9e54170857f868fa5b773 (patch) | |
| tree | 888f8864c88d8eccc179439611c314ed0142ff7c /community/pytest | |
| parent | 0d19ec2f04873e1fc87c26aeafcf25ff58af2788 (diff) | |
| download | aports-e1cacf3c7b04af8a9ec9e54170857f868fa5b773.tar.bz2 aports-e1cacf3c7b04af8a9ec9e54170857f868fa5b773.tar.xz | |
main/pytest: move from community due to fuse3
Diffstat (limited to 'community/pytest')
| -rw-r--r-- | community/pytest/APKBUILD | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/community/pytest/APKBUILD b/community/pytest/APKBUILD deleted file mode 100644 index f67301036a..0000000000 --- a/community/pytest/APKBUILD +++ /dev/null @@ -1,66 +0,0 @@ -# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> -# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=pytest -pkgver=3.7.4 -pkgrel=0 -pkgdesc="A python test library" -url="http://pytest.org" -arch="noarch" -license="MIT" -depends="py3-$pkgname" -_py_depends="py-atomicwrites py-py py-six py-attrs py-more-itertools py-pluggy" -_py2_depends="${_py_depends//py-/py2-} py2-setuptools py2-funcsigs" -_py3_depends="${_py_depends//py-/py3-}" -makedepends="python2-dev py-setuptools python3-dev $_py2_depends $_py3_depends" -subpackages="py3-$pkgname:_py3 py2-$pkgname:_py2" -source="https://files.pythonhosted.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver.tar.gz" -builddir="$srcdir/$pkgname-$pkgver" - -build() { - cd "$builddir" - python2 setup.py build - python3 setup.py build -} - -check() { - cd "$builddir" - python2 setup.py check - python3 setup.py check -} - -package() { - mkdir -p "$pkgdir"/usr/bin - - local name; for name in py.test pytest; do - ln -s $name-3 "$pkgdir"/usr/bin/$name - done -} - -_py2() { - replaces="$pkgname" - depends="$_py2_depends" - _py python2 -} - -_py3() { - depends="$_py3_depends" - _py python3 -} - -_py() { - local python="$1" - local pyver="${1:6:1}" - pkgdesc="$pkgdesc (for $python)" - depends="$depends $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" - - # Add version suffix to executable files. - local path; for path in "$subpkgdir"/usr/bin/*; do - mv "$path" "$path-$pyver" - done -} - -sha512sums="b62419ebcc64b470d429f093c2434ca842f7171164e3f5a37bb0cc8f5da04fa52f096710f167d15a77df128a0f6f79f16e4f4f00ffa22b26111ecfe8d00f0c50 pytest-3.7.4.tar.gz" |
