Skip to content

Commit

Permalink
universe/py3-platformdirs: update gpep517 build to use hidden dirs fo…
Browse files Browse the repository at this point in the history
…r dist/testenv

[ commit 083eb89bb9af1e5570429a2580c0c2d5d136be4c ]

this works around issues like pytest-dev/pytest#3151
  • Loading branch information
nekopsykose authored and konfetka1989 committed Jul 31, 2023
1 parent 3c4dc68 commit 25caa0c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions universe/py3-platformdirs/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ builddir="$srcdir/platformdirs-$pkgver"

build() {
gpep517 build-wheel \
--wheel-dir dist \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}

check() {
python3 -m venv --clear --without-pip --system-site-packages testenv
testenv/bin/python3 -m installer dist/*.whl
testenv/bin/python3 -m pytest
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}

package() {
python3 -m installer -d "$pkgdir" dist/*.whl
python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
Expand Down

0 comments on commit 25caa0c

Please sign in to comment.