mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 23:22:24 +01:00
52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
# Contributor: Dmitry Romanenko <dmitry@romanenko.in>
|
|
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
|
|
pkgname=pytest-forked
|
|
_pkgname=${pkgname#py-}
|
|
pkgver=1.0.2
|
|
pkgrel=1
|
|
pkgdesc="extracted --boxed from pytest-xdist to ensure backward compat"
|
|
url="https://github.com/pytest-dev/pytest-forked"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py-py pytest"
|
|
checkdepends="py-six py-tox"
|
|
makedepends="python2-dev python3-dev py-setuptools_scm"
|
|
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() {
|
|
python2 setup.py build
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
local _py3ver=$(python3 -c 'import sys; print("{}{}".format(sys.version_info.major, sys.version_info.minor))')
|
|
tox -e py27,py$_py3ver
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"
|
|
}
|
|
|
|
_py2() {
|
|
replaces="$pkgname"
|
|
_py python2
|
|
}
|
|
|
|
_py3() {
|
|
_py python3
|
|
}
|
|
|
|
_py() {
|
|
local python="$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"
|
|
}
|
|
|
|
sha512sums="c48819a0434be5d9f9b49c7bc976969551479629e904f99f6dfd80fb9cde95a8a5a9bc2412b38828c1e303832b81fea0d8b7228d336983aebe21cb96b8a02b03 pytest-forked-1.0.2.tar.gz"
|