Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions extra/python3-flaky/APKBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Alpine-Contributor: Bart Ribbers <[email protected]>
# Alpine-Maintainer: Bart Ribbers <[email protected]>
# Maintainer: Ethan Leir <[email protected]>
pkgname=python3-flaky
pkgver=3.8.1
pkgrel=0
pkgdesc="Plugin for nose or pytest that automatically reruns flaky tests"
url="https://github.com/box/flaky"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="python3-gpep517 python3-setuptools"
checkdepends="python3-pytest"
subpackages=""
source="https://pypi.python.org/packages/source/f/flaky/flaky-$pkgver.tar.gz"
builddir="$srcdir/flaky-$pkgver"

build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}

check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest \
--deselect test/test_flaky_plugin.py::TestFlakyPlugin::test_flaky_plugin_handles_non_ascii_byte_string_in_exception \
--deselect test/test_flaky_plugin.py::TestFlakyPlugin::test_flaky_plugin_identifies_failure \
--deselect test/test_multiprocess_string_io.py::TestMultiprocessStringIO::test_write_then_read \
--deselect test/test_multiprocess_string_io.py::TestMultiprocessStringIO::test_writelines_then_read \
--deselect test/test_pytest/test_pytest_options_example.py::test_something_flaky
}

package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}

sha512sums="
486b8aeb9a63c5b4dfb0cf4a0ad86b29e90cdc4a604cdca7676c4b918fc4bb40e185fcc23a205a12916fd2b99316a2a89ca363b3f6efe2ebfb1e93722b4f4547 flaky-3.8.1.tar.gz
"