diff options
author | AlphaJack | 2023-08-25 13:26:21 +0200 |
---|---|---|
committer | AlphaJack | 2023-08-25 13:26:35 +0200 |
commit | 303e58c60022ce2013a18efdd236bc2c7dc6efc2 (patch) | |
tree | bd14eac2f2dd01c23175a96ea20d35540cd600ea | |
parent | a31df101adb3f940a92d80a9f75b4e73648c937d (diff) | |
download | aur-python-plotly-git.tar.gz |
Modernized build() and install() functions according to python package guidelines
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 9 insertions, 8 deletions
@@ -1,7 +1,7 @@ pkgbase = python-plotly-git pkgdesc = An open-source, interactive graphing library pkgver = 5.1.0.r6.g17b7c27f9 - pkgrel = 1 + pkgrel = 2 url = https://plot.ly/python/ arch = any license = MIT @@ -10,12 +10,13 @@ pkgbase = python-plotly-git makedepends = python-jupyter_core makedepends = jupyterlab makedepends = python-setuptools + makedepends = python-build + makedepends = python-wheel + makedepends = python-installer makedepends = python-tornado>=6.1.0 depends = python>=3.6 depends = python-matplotlib depends = python-numpy - depends = python-six - depends = python-retrying depends = python-tenacity optdepends = ipython optdepends = python-ipywidgets @@ -3,15 +3,15 @@ pkgname="python-plotly-git" pkgver=5.1.0.r6.g17b7c27f9 -pkgrel=1 +pkgrel=2 pkgdesc="An open-source, interactive graphing library" arch=("any") url="https://plot.ly/python/" license=("MIT") -makedepends=("git" "npm" "python-jupyter_core" "jupyterlab" "python-setuptools" "python-tornado>=6.1.0") +makedepends=("git" "npm" "python-jupyter_core" "jupyterlab" "python-setuptools" "python-build" "python-wheel" "python-installer" "python-tornado>=6.1.0") provides=("python-plotly") conflicts=("python-plotly") -depends=("python>=3.6" "python-matplotlib" "python-numpy" "python-six" "python-retrying" "python-tenacity") +depends=("python>=3.6" "python-matplotlib" "python-numpy" "python-tenacity") optdepends=("ipython" "python-ipywidgets") source=("git+https://github.com/plotly/plotly.py.git") sha256sums=("SKIP") @@ -24,10 +24,10 @@ pkgver(){ build(){ cd "plotly.py/packages/python/plotly" - python setup.py build + python -m build --wheel --no-isolation } package(){ cd "plotly.py/packages/python/plotly" - python setup.py install --skip-build --root="$pkgdir" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl } |