mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
community/py3-execnet: upgrade to 1.7.1
This commit is contained in:
parent
4109d4cb58
commit
e687ccf7db
@ -1,54 +1,35 @@
|
||||
# Contributor: Dmitry Romanenko <dmitry@romanenko.in>
|
||||
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
|
||||
pkgname=py-execnet
|
||||
pkgname=py3-execnet
|
||||
_pkgname=execnet
|
||||
pkgver=1.7.0
|
||||
pkgver=1.7.1
|
||||
pkgrel=0
|
||||
pkgdesc="execnet: rapid multi-Python deployment"
|
||||
url="https://github.com/pytest-dev/execnet"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="py-apipkg"
|
||||
depends="py3-apipkg"
|
||||
# tests for py-gevent are broken, jython is missing in repo, eventlet is part
|
||||
# of testing
|
||||
checkdepends="pytest py-py"
|
||||
makedepends="py3-setuptools py-setuptools py-setuptools_scm"
|
||||
subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
|
||||
checkdepends="py3-pytest py3-py"
|
||||
makedepends="py3-setuptools"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||
builddir="$srcdir"/$_pkgname-$pkgver
|
||||
|
||||
replaces="py-execnet" # Backwards compatibility
|
||||
provides="py-execnet=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
python2 setup.py build
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
mv $builddir/doc/example/conftest.py $builddir
|
||||
python2 -m pytest
|
||||
python3 -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"
|
||||
python3 setup.py install --prefix=/usr --root="$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="5cc77f534d6a4966250a8494c53231dea938044268d3f81efd77ed20f5548ac167aa20e1e54fc3307828ba2937f5b1af44d2e8412110998b6016125fcf984c56 execnet-1.7.0.tar.gz"
|
||||
sha512sums="375748c03f8d955bd8fca90d5c6308073c31a978fd7a604257512e0a710f899dec5db8a91d5bb5f16de9b0656e1742da9ab513827a1a065a5125bafcf1e63a70 execnet-1.7.1.tar.gz"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user