diff --git a/testing/py3-utils/APKBUILD b/testing/py3-utils/APKBUILD new file mode 100644 index 00000000000..98a83128afe --- /dev/null +++ b/testing/py3-utils/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Marian Buschsieweke +# Maintainer: Marian Buschsieweke +pkgname=py3-utils +_pkgname=python-utils +pkgver=3.1.0 +pkgrel=0 +pkgdesc="Convenient utilities not included with the standard Python install" +url="https://github.com/WoLpH/python-utils" +arch="noarch !s390x" # fails tests +license="BSD-3-Clause" +depends="python3" +makedepends="py3-setuptools" +checkdepends="py3-pytest py3-pytest-asyncio" +source=" + https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz + + pytest.patch + " + +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + python3 setup.py build +} + +check() { + pytest +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums=" +e22ea0dc7aa0e6c5b45c55843011971c5075639424d38a712703b0d5ef8af32e3661d39af63b6015c4edfe11fca7a256f4f02c3705e1724fe8b9015931d85cbf python-utils-3.1.0.tar.gz +4f452a5485f36e518c443e26c77b1bc3eb09743093bd5416158b81b54987ad5ddae32ec6df565bbc10423154bb05141d4e3a65344bfae378132c836818d22bb7 pytest.patch +" diff --git a/testing/py3-utils/pytest.patch b/testing/py3-utils/pytest.patch new file mode 100644 index 00000000000..0e76be70af9 --- /dev/null +++ b/testing/py3-utils/pytest.patch @@ -0,0 +1,13 @@ +--- a/pytest.ini ++++ b/pytest.ini +@@ -5,10 +5,6 @@ + + addopts = + --doctest-modules +- --cov python_utils +- --cov-report html +- --cov-report term-missing +- --mypy + + flake8-ignore = + *.py W391