projects/aports·blob master · refs

42 lines · 1.4 KiB

1# Contributor: Antoine Martin (ayakael) <[email protected]>
2# Maintainer: Antoine Martin (ayakael) <[email protected]>
3pkgname=py3-billiard
4pkgver=4.2.4
5pkgrel=1
6#_pkgreal is used by apkbuild-pypi to find modules at PyPI
7_pkgreal=billiard
8pkgdesc="Python multiprocessing fork with improvements and bugfixes"
9url="https://pypi.org/project/billiard/"
10arch="noarch"
11license="BSD-3-Clause"
12makedepends="py3-setuptools py3-wheel py3-gpep517"
13checkdepends="py3-psutil py3-pytest"
14subpackages="$pkgname-pyc"
15source="https://files.pythonhosted.org/packages/source/b/billiard/billiard-$pkgver.tar.gz"
16builddir="$srcdir/$_pkgreal-$pkgver"
17
18replaces="py-billiard" # Backwards compatibility
19provides="py-billiard=$pkgver-r$pkgrel" # Backwards compatibility
20
21build() {
22 gpep517 build-wheel \
23 --wheel-dir .dist \
24 --output-fd 3 3>&1 >&2
25}
26
27check() {
28 # t/unit/test_pool.py::test_pool::test_on_ready_counter_is_synchronized: timeout in riscv64
29 python3 -m venv --clear --without-pip --system-site-packages .testenv
30 .testenv/bin/python3 -m installer "$builddir"/.dist/*.whl
31 .testenv/bin/python3 -m pytest -v \
32 --deselect t/unit/test_pool.py::test_pool::test_on_ready_counter_is_synchronized
33}
34
35package() {
36 python3 -m installer -d "$pkgdir" \
37 .dist/*.whl
38}
39
40sha512sums="
41f05041661da59603da5bdcb3b696d75742d4cb7998f5bbf22474e001641f5be6cf693c3b329cda3e8983cc3fe56e5cc96a1d7880eefa5b2d68cd0d4ffe231626 billiard-4.2.4.tar.gz
42"