mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-25 20:40:32 +01:00
upgpkg: python-plotly 5.12.0-4
Merge subtree 'python-plotly'
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
pkgbase = python-plotly
|
||||
pkgdesc = An open-source, interactive graphing library
|
||||
pkgver = 5.12.0
|
||||
pkgrel = 1
|
||||
pkgrel = 4
|
||||
url = https://github.com/plotly/plotly.py
|
||||
arch = any
|
||||
arch = x86_64
|
||||
license = MIT
|
||||
checkdepends = python-requests
|
||||
checkdepends = python-pytest
|
||||
makedepends = python-setuptools
|
||||
makedepends = python-jupyter_core
|
||||
makedepends = python-tornado
|
||||
makedepends = jupyterlab
|
||||
makedepends = npm
|
||||
depends = python
|
||||
depends = python-tenacity
|
||||
optdepends = ipython
|
||||
@@ -19,8 +20,13 @@ pkgbase = python-plotly
|
||||
optdepends = python-matplotlib
|
||||
optdepends = python-pillow
|
||||
optdepends = python-scipy
|
||||
optdepends = python-ipykernel
|
||||
optdepends = python-pandas
|
||||
optdepends = python-colorcet
|
||||
optdepends = python-inflect
|
||||
optdepends = python-psutil
|
||||
options = !strip
|
||||
source = python-plotly-5.12.0.tar.gz::https://github.com/plotly/plotly.py/archive/v5.12.0.tar.gz
|
||||
sha256sums = bb0145d46b8fc94d341222e0435c93e0f371bf56ea82d2a5d22e951fd726e379
|
||||
sha256sums = 33548f8abc3310acde8ba7d74a57a652ed278ef5c4a999a61ae9fb45cb1961e4
|
||||
|
||||
pkgname = python-plotly
|
||||
|
||||
@@ -3,39 +3,58 @@
|
||||
|
||||
pkgname=python-plotly
|
||||
pkgver=5.12.0
|
||||
pkgrel=1
|
||||
pkgrel=4
|
||||
pkgdesc="An open-source, interactive graphing library"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/plotly/plotly.py"
|
||||
depends=(python
|
||||
python-tenacity)
|
||||
license=('MIT')
|
||||
depends=(
|
||||
python
|
||||
python-tenacity
|
||||
)
|
||||
# optdepends based on optional_requirements.txt
|
||||
optdepends=(
|
||||
'ipython'
|
||||
'jupyterlab'
|
||||
'python-ipywidgets'
|
||||
'python-numpy'
|
||||
'python-matplotlib'
|
||||
'python-pillow'
|
||||
'python-scipy')
|
||||
makedepends=(python-setuptools
|
||||
ipython
|
||||
jupyterlab
|
||||
python-ipywidgets
|
||||
python-numpy
|
||||
python-matplotlib
|
||||
python-pillow
|
||||
python-scipy
|
||||
python-ipykernel
|
||||
python-pandas
|
||||
python-colorcet
|
||||
python-inflect
|
||||
python-psutil
|
||||
)
|
||||
makedepends=(
|
||||
python-setuptools
|
||||
python-jupyter_core
|
||||
python-tornado
|
||||
jupyterlab
|
||||
npm)
|
||||
license=('MIT')
|
||||
arch=('any')
|
||||
)
|
||||
checkdepends=(
|
||||
python-requests
|
||||
python-pytest
|
||||
)
|
||||
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/plotly/plotly.py/archive/v${pkgver}.tar.gz")
|
||||
options=(!strip) # strip isn't useful for python files and takes forever
|
||||
sha256sums=('bb0145d46b8fc94d341222e0435c93e0f371bf56ea82d2a5d22e951fd726e379')
|
||||
sha256sums=('33548f8abc3310acde8ba7d74a57a652ed278ef5c4a999a61ae9fb45cb1961e4')
|
||||
|
||||
build() {
|
||||
cd plotly.py-${pkgver}/packages/python/plotly
|
||||
NODE_OPTIONS=--openssl-legacy-provider python setup.py build
|
||||
SKIP_NPM=1 python setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd plotly.py-${pkgver}/packages/python/plotly
|
||||
pytest plotly/tests/test_core
|
||||
}
|
||||
|
||||
package() {
|
||||
cd plotly.py-${pkgver}/packages/python/plotly
|
||||
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
|
||||
SKIP_NPM=1 python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
|
||||
mv ${pkgdir}/usr/etc ${pkgdir}
|
||||
|
||||
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user