mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
community/py3-whoosh: enable tests
This commit is contained in:
parent
c6c898e59a
commit
c4f9f5dc51
@ -3,7 +3,7 @@
|
|||||||
pkgname=py3-whoosh
|
pkgname=py3-whoosh
|
||||||
_pyname="Whoosh"
|
_pyname="Whoosh"
|
||||||
pkgver=2.7.4
|
pkgver=2.7.4
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
pkgdesc="Fast, pure-Python full text indexing, search, and spell checking library"
|
pkgdesc="Fast, pure-Python full text indexing, search, and spell checking library"
|
||||||
url="https://pypi.python.org/project/whoosh"
|
url="https://pypi.python.org/project/whoosh"
|
||||||
@ -20,7 +20,6 @@ source="
|
|||||||
$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/W/Whoosh/Whoosh-$pkgver.tar.gz
|
$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/W/Whoosh/Whoosh-$pkgver.tar.gz
|
||||||
test-fix.patch
|
test-fix.patch
|
||||||
"
|
"
|
||||||
options="!check" # Failing test units
|
|
||||||
builddir="$srcdir"/$_pyname-$pkgver
|
builddir="$srcdir"/$_pyname-$pkgver
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
|
|
||||||
@ -31,7 +30,10 @@ build() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
PYTHONPATH="$builddir"/src pytest -v
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
.testenv/bin/python3 -m installer .dist/*.whl
|
||||||
|
# test_minimize_dfa: AssertionError: assert <whoosh.automata.fsa.DFA object at 0x7fe398473ad0> == <whoosh.automata.fsa.DFA object at 0x7fe3984706e0>
|
||||||
|
.testenv/bin/python3 -m pytest -v -k 'not test_minimize_dfa'
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
Loading…
Reference in New Issue
Block a user