mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/py3-utils: new aport
https://github.com/WoLpH/python-utils convenient utilities not included with the standard Python install
This commit is contained in:
parent
93dcdc2835
commit
e5ef7bfde5
37
testing/py3-utils/APKBUILD
Normal file
37
testing/py3-utils/APKBUILD
Normal file
@ -0,0 +1,37 @@
|
||||
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
||||
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
||||
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
|
||||
"
|
||||
13
testing/py3-utils/pytest.patch
Normal file
13
testing/py3-utils/pytest.patch
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user