mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-02-09 07:57:32 +00:00
newapkbuild: use pytest for Python tests
This commit is contained in:
parent
281720ec39
commit
65c9a3d8e5
@ -131,7 +131,7 @@ __EOF__
|
|||||||
|
|
||||||
check_python() {
|
check_python() {
|
||||||
cat >>APKBUILD<<__EOF__
|
cat >>APKBUILD<<__EOF__
|
||||||
python3 setup.py test
|
pytest
|
||||||
__EOF__
|
__EOF__
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -238,10 +238,14 @@ newaport() {
|
|||||||
source="https://downloads.sourceforge.net/$pn/$pn-$pv.tar.gz"
|
source="https://downloads.sourceforge.net/$pn/$pn-$pv.tar.gz"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$depends" ] &&[ "$buildtype" = "python" ]; then
|
if [ -z "$depends" ] && [ "$buildtype" = "python" ]; then
|
||||||
depends="python3"
|
depends="python3"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$checkdepends" ] && [ "$buildtype" = "python" ]; then
|
||||||
|
checkdepends="py3-pytest"
|
||||||
|
fi
|
||||||
|
|
||||||
case "$buildtype" in
|
case "$buildtype" in
|
||||||
python) makedepends="py3-setuptools";;
|
python) makedepends="py3-setuptools";;
|
||||||
cmake) makedepends="cmake";;
|
cmake) makedepends="cmake";;
|
||||||
@ -282,6 +286,7 @@ license="$license"
|
|||||||
depends="$depends"
|
depends="$depends"
|
||||||
depends_dev=""
|
depends_dev=""
|
||||||
makedepends="$makedepends"
|
makedepends="$makedepends"
|
||||||
|
checkdepends="$checkdepends"
|
||||||
install="$install"
|
install="$install"
|
||||||
subpackages="\$pkgname-dev \$pkgname-doc"
|
subpackages="\$pkgname-dev \$pkgname-doc"
|
||||||
source="$source"
|
source="$source"
|
||||||
|
Loading…
Reference in New Issue
Block a user