diff options
author | Médéric Boquien | 2023-07-15 13:49:07 -0400 |
---|---|---|
committer | Médéric Boquien | 2023-07-15 13:49:07 -0400 |
commit | 96a018c7e7d7d8227c537658d751deabd0aedbbd (patch) | |
tree | 2be7707b9b18c722dc53aafd68231629dfa2917a | |
parent | 553b48dfde3d20b51cfb05fac7741cfb485143e2 (diff) | |
download | aur-python-shap.tar.gz |
Update to version 0.42.1.
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 34 insertions, 18 deletions
@@ -1,6 +1,6 @@ pkgbase = python-shap pkgdesc = Game theoretic approach to explain the output of any machine learning model - pkgver = 0.41.0 + pkgver = 0.42.1 pkgrel = 1 url = https://github.com/slundberg/shap arch = i686 @@ -8,9 +8,22 @@ pkgbase = python-shap arch = armv7h arch = aarch64 license = MIT - makedepends = python-setuptools + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel depends = python - source = https://files.pythonhosted.org/packages/source/s/shap/shap-0.41.0.tar.gz - sha256sums = a49ea4d65aadbc845a695fa3d7ea0bdfc8c928b8e213b0feedf5868ade4b3ca5 + depends = python-numpy + depends = python-scipy + depends = python-scikit-learn + depends = python-pandas + depends = python-tqdm + depends = python-packaging + depends = python-slicer + depends = python-numba + depends = python-cloudpickle + optdepends = ipython + optdepends = python-matplotlib + source = https://files.pythonhosted.org/packages/source/s/shap/shap-0.42.1.tar.gz + sha512sums = 8646e84992a16c36555b5f7fc6969522c28ce155493fb12028cf401b3c7dca9e19156d2a15caa1ece7089f2c90039b40e31e0b5f9df008f9c241045fa9c7fad4 pkgname = python-shap @@ -1,24 +1,27 @@ -# Maintainer: Philip Goto <philip.goto@gmail.com> +# Maintainer: Médéric Boquien <mboquien@free.fr> +# Contributor: Philip Goto <philip.goto@gmail.com> -pkgname=python-shap -pkgver=0.41.0 +_pkg=shap +pkgname=python-${_pkg} +pkgver=0.42.1 pkgrel=1 pkgdesc="Game theoretic approach to explain the output of any machine learning model" +arch=(i686 x86_64 armv7h aarch64) url="https://github.com/slundberg/shap" -depends=(python) -makedepends=(python-setuptools) license=(MIT) -arch=(i686 x86_64 armv7h aarch64) -source=("https://files.pythonhosted.org/packages/source/s/shap/shap-${pkgver}.tar.gz") -sha256sums=('a49ea4d65aadbc845a695fa3d7ea0bdfc8c928b8e213b0feedf5868ade4b3ca5') +depends=(python python-numpy python-scipy python-scikit-learn python-pandas python-tqdm python-packaging python-slicer python-numba python-cloudpickle) +makedepends=(python-build python-installer python-wheel) +optdepends=(ipython python-matplotlib) +source=(https://files.pythonhosted.org/packages/source/s/${_pkg}/${_pkg}-${pkgver}.tar.gz) +sha512sums=('8646e84992a16c36555b5f7fc6969522c28ce155493fb12028cf401b3c7dca9e19156d2a15caa1ece7089f2c90039b40e31e0b5f9df008f9c241045fa9c7fad4') -build(){ - cd "shap-${pkgver}" - python setup.py build +build() { + cd ${_pkg}-${pkgver} + python -m build --wheel --no-isolation --skip-dependency-check } package(){ - cd "shap-${pkgver}" - python setup.py install --skip-build --root="${pkgdir}" --optimize=1 - # install -D LICENSE "${pkgdir}/usr/share/licenses/python-shap/LICENSE" + cd "${_pkg}-${pkgver}" + python -m installer --destdir="${pkgdir}" dist/*.whl + install -D LICENSE "${pkgdir}/usr/share/licenses/python-${_pkg}/LICENSE" } |