diff options
author | Dmitry Romanenko <Dmitry@Romanenko.in> | 2019-01-15 22:12:29 -0500 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2019-01-22 19:26:45 +0000 |
commit | a70749f7ad61221835e64034dce42336516edfbc (patch) | |
tree | 6066bb10c8a9a50227379caddb886cd387fd9431 | |
parent | 1592ab8fb49188b222ad50159efc6a3399aeb8a3 (diff) | |
download | alpine_aports-a70749f7ad61221835e64034dce42336516edfbc.tar.bz2 alpine_aports-a70749f7ad61221835e64034dce42336516edfbc.tar.xz alpine_aports-a70749f7ad61221835e64034dce42336516edfbc.zip |
testing/py-execnet: new aport
-rw-r--r-- | testing/py-execnet/APKBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/py-execnet/APKBUILD b/testing/py-execnet/APKBUILD new file mode 100644 index 0000000000..bbb0b3f51e --- /dev/null +++ b/testing/py-execnet/APKBUILD | |||
@@ -0,0 +1,55 @@ | |||
1 | # Contributor: Dmitry Romanenko <dmitry@romanenko.in> | ||
2 | # Maintainer: Dmitry Romanenko <dmitry@romanenko.in> | ||
3 | pkgname=py-execnet | ||
4 | _pkgname=execnet | ||
5 | pkgver=1.5.0 | ||
6 | pkgrel=0 | ||
7 | pkgdesc="execnet: rapid multi-Python deployment" | ||
8 | url="https://github.com/pytest-dev/execnet" | ||
9 | arch="noarch" | ||
10 | license="MIT" | ||
11 | depends="py-apipkg" | ||
12 | options="!check" # Tests are broken https://github.com/pytest-dev/execnet/issues/89 | ||
13 | checkdepends="pytest" | ||
14 | makedepends="python2-dev python3-dev py-setuptools py-setuptools_scm" | ||
15 | subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" | ||
16 | source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" | ||
17 | builddir="$srcdir"/$_pkgname-$pkgver | ||
18 | |||
19 | build() { | ||
20 | cd "$builddir" | ||
21 | python2 setup.py build | ||
22 | python3 setup.py build | ||
23 | } | ||
24 | |||
25 | check() { | ||
26 | cd "$builddir" | ||
27 | mv $builddir/doc/example/conftest.py $builddir | ||
28 | python2 -m pytest | ||
29 | python3 -m pytest | ||
30 | } | ||
31 | |||
32 | package() { | ||
33 | mkdir -p "$pkgdir" | ||
34 | } | ||
35 | |||
36 | _py2() { | ||
37 | replaces="$pkgname" | ||
38 | _py python2 | ||
39 | } | ||
40 | |||
41 | _py3() { | ||
42 | _py python3 | ||
43 | } | ||
44 | |||
45 | _py() { | ||
46 | local python="$1" | ||
47 | pkgdesc="$pkgdesc (for $python)" | ||
48 | depends="$depends $python" | ||
49 | install_if="$pkgname=$pkgver-r$pkgrel $python" | ||
50 | |||
51 | cd "$builddir" | ||
52 | $python setup.py install --prefix=/usr --root="$subpkgdir" | ||
53 | } | ||
54 | |||
55 | sha512sums="ca2b571fafdf8f68b3cc7a04ee326e3255828d4cde28ead65d0cef325569c3a6dee09359e525152248038de65326ffc6b75c8362f53aa5c0b3f736eb596cb2d9 execnet-1.5.0.tar.gz" | ||