aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Romanenko <Dmitry@Romanenko.in>2019-01-15 00:10:57 -0500
committerAndy Postnikov <apostnikov@gmail.com>2019-01-16 22:50:56 +0200
commit123fc84ef3d6be07e99cde74101a293fd8593175 (patch)
tree69c5d6f4be377fafb0c76ee48dc8d4cca410bb19
parent5bd5807282f89e162ba54f85885ffccb7fb81b22 (diff)
downloadaports-123fc84ef3d6be07e99cde74101a293fd8593175.tar.bz2
aports-123fc84ef3d6be07e99cde74101a293fd8593175.tar.xz
testing/pytest-forked: new aport
-rw-r--r--testing/pytest-forked/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/pytest-forked/APKBUILD b/testing/pytest-forked/APKBUILD
new file mode 100644
index 0000000000..c60e975ba8
--- /dev/null
+++ b/testing/pytest-forked/APKBUILD
@@ -0,0 +1,52 @@
+# Contributor: Dmitry Romanenko <dmitry@romanenko.in>
+# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
+pkgname=pytest-forked
+_pkgname=${pkgname#py-}
+pkgver=1.0.1
+pkgrel=0
+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() {
+ cd "$builddir"
+ python2 setup.py build
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ tox -e py27,py36
+}
+
+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="6fc56ce7fcbb76e5c92c912eb199b8d7af09f2fc3d4648ac7493fcdd1ba9df40fd87bd03a384d70ed015cd5d9f0e243a2c89811daabd5477f3355bbbdb2d7657 pytest-forked-1.0.1.tar.gz"