mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 20:36:40 +02:00
testing/py-distro: modernize
- Fix license - Disable check as some tests fail - Add infrastructure for running tests
This commit is contained in:
parent
5e848054d9
commit
89bcb63f39
@ -5,25 +5,23 @@ _pkgname=distro
|
||||
pkgver=1.4.0
|
||||
pkgrel=1
|
||||
pkgdesc="A Linux OS platform information API"
|
||||
options="!check" # Some tests fail
|
||||
url="https://github.com/nir0s/distro"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
makedepends="python2-dev py-setuptools python3-dev"
|
||||
options="!check" # tox is not available
|
||||
#checkdepends="py3-tox"
|
||||
license="Apache-2.0"
|
||||
makedepends="py-setuptools py3-setuptools"
|
||||
checkdepends="py3-pytest py3-pytest-cov"
|
||||
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
|
||||
python3 -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user