M sr.ht/py-cssselect2/APKBUILD => sr.ht/py-cssselect2/APKBUILD +4 -2
@@ 17,6 17,8 @@ source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname
builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
+ cd "$builddir"
+ sed -e 's/--cov=cssselect2//' -i setup.cfg
cp -r "$builddir" "$builddir"-py3
}
@@ 29,9 31,9 @@ build() {
check() {
cd "$builddir"
- python2 setup.py check
+ python2 setup.py pytest
cd "$builddir"-py3
- python3 setup.py check
+ python3 setup.py pytest
}
package() {
M sr.ht/py-tinycss2/APKBUILD => sr.ht/py-tinycss2/APKBUILD +2 -0
@@ 17,6 17,8 @@ source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname
builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
+ cd "$builddir"
+ sed -e 's/--cov=tinycss2//' -i setup.cfg
cp -r "$builddir" "$builddir"-py3
}