]> git.sev.monster Git - aports.git/commitdiff
testing/py3-iso3166: fix tests
authorsev <git@sev.monster>
Sat, 24 Dec 2022 06:37:02 +0000 (00:37 -0600)
committersev <git@sev.monster>
Mon, 28 Oct 2024 23:03:41 +0000 (18:03 -0500)
testing/py3-iso3166/APKBUILD

index 7b018d8f8b60cbd02b4aacf5d3906bec469754ce..e0ec21f2d529f074eb882cfadef0da30a09ded57 100644 (file)
@@ -14,6 +14,10 @@ checkdepends="py3-pytest"
 source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
 builddir="$srcdir"/$_pkgname-$pkgver
 
 source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
 builddir="$srcdir"/$_pkgname-$pkgver
 
+check() {
+       PYTHONPATH="$builddir"/build/lib py.test
+}
+
 build() {
        python3 setup.py build
 }
 build() {
        python3 setup.py build
 }
@@ -22,9 +26,6 @@ package() {
        python3 setup.py install --prefix=/usr --root="$pkgdir"
 }
 
        python3 setup.py install --prefix=/usr --root="$pkgdir"
 }
 
-check() {
-       PYTHONPATH=build/lib${PYTHONPATH:+:$PYTHONPATH} python3 -m pytest
-}
 sha512sums="
 b427c58ab44abd21a985b0d2b0ea48576cd0fd0d4383d7c53492961d3649c7829acebff66984ce74a02b4f3315c3cfc57dc29fd033f6d6dd7606aca43bfb6401  iso3166-2.1.1.tar.gz
 "
 sha512sums="
 b427c58ab44abd21a985b0d2b0ea48576cd0fd0d4383d7c53492961d3649c7829acebff66984ce74a02b4f3315c3cfc57dc29fd033f6d6dd7606aca43bfb6401  iso3166-2.1.1.tar.gz
 "
This page took 0.038541 seconds and 4 git commands to generate.