1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 04:35:39 +03:00
aports/community/py3-dython/APKBUILD
psykose b71032c356 */*: invoke -m venv with --without-pip
we never use pip in the venv manually made for tests-
this might break 1-2 things unexpectedly, but

- those should be looked at anyway
- this has a severe speedup- even on a desktop machine with nvme, this
  makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small
  optimisation.
2023-02-09 22:55:20 +01:00

46 lines
1.2 KiB
Text

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-dython
pkgver=0.7.3.1
_pkgver=0.7.3_1
pkgrel=0
pkgdesc="A set of data tools in Python"
url="https://github.com/shakedzy/dython"
arch="noarch !riscv64 !s390x" #py3-matplotlib #scikit-learn
license="MIT"
depends="
py3-matplotlib
py3-numpy
py3-pandas
py3-psutil
py3-scikit-learn
py3-scikit-plot
py3-scipy
py3-seaborn
python3
"
checkdepends="python3-dev py3-hypothesis py3-pytest py3-pytest-black"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
source="$pkgname-$pkgver.tar.gz::https://github.com/shakedzy/dython/archive/v$_pkgver.tar.gz"
builddir="$srcdir/dython-$_pkgver"
build() {
gpep517 build-wheel \
--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 -k 'not nominal and not test_associations and not test_associations_parallel'
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
80320e7db6ab329c28e7f1cf4483026245e4bc8cfd4cb9775f52800627d40e5eeb873fb640c868104b443dec75eea337847a2ac66656609df2d05cd93dc33a2f py3-dython-0.7.3.1.tar.gz
"