mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-27 13:30:31 +01:00
fix architecture, add core tests, update optdeps
This commit is contained in:
9
.SRCINFO
9
.SRCINFO
@@ -3,8 +3,10 @@ pkgbase = python-plotly
|
|||||||
pkgver = 5.12.0
|
pkgver = 5.12.0
|
||||||
pkgrel = 2
|
pkgrel = 2
|
||||||
url = https://github.com/plotly/plotly.py
|
url = https://github.com/plotly/plotly.py
|
||||||
arch = any
|
arch = x86_64
|
||||||
license = MIT
|
license = MIT
|
||||||
|
checkdepends = python-requests
|
||||||
|
checkdepends = python-pytest
|
||||||
makedepends = python-setuptools
|
makedepends = python-setuptools
|
||||||
makedepends = python-jupyter_core
|
makedepends = python-jupyter_core
|
||||||
makedepends = python-tornado
|
makedepends = python-tornado
|
||||||
@@ -19,6 +21,11 @@ pkgbase = python-plotly
|
|||||||
optdepends = python-matplotlib
|
optdepends = python-matplotlib
|
||||||
optdepends = python-pillow
|
optdepends = python-pillow
|
||||||
optdepends = python-scipy
|
optdepends = python-scipy
|
||||||
|
optdepends = python-ipykernel
|
||||||
|
optdepends = python-pandas
|
||||||
|
optdepends = python-colorcet
|
||||||
|
optdepends = python-inflect
|
||||||
|
optdepends = python-psutil
|
||||||
options = !strip
|
options = !strip
|
||||||
source = python-plotly-5.12.0.tar.gz::https://github.com/plotly/plotly.py/archive/v5.12.0.tar.gz
|
source = python-plotly-5.12.0.tar.gz::https://github.com/plotly/plotly.py/archive/v5.12.0.tar.gz
|
||||||
sha256sums = 33548f8abc3310acde8ba7d74a57a652ed278ef5c4a999a61ae9fb45cb1961e4
|
sha256sums = 33548f8abc3310acde8ba7d74a57a652ed278ef5c4a999a61ae9fb45cb1961e4
|
||||||
|
|||||||
45
PKGBUILD
45
PKGBUILD
@@ -5,25 +5,39 @@ pkgname=python-plotly
|
|||||||
pkgver=5.12.0
|
pkgver=5.12.0
|
||||||
pkgrel=2
|
pkgrel=2
|
||||||
pkgdesc="An open-source, interactive graphing library"
|
pkgdesc="An open-source, interactive graphing library"
|
||||||
|
arch=('x86_64')
|
||||||
url="https://github.com/plotly/plotly.py"
|
url="https://github.com/plotly/plotly.py"
|
||||||
depends=(python
|
license=('MIT')
|
||||||
python-tenacity)
|
depends=(
|
||||||
|
python
|
||||||
|
python-tenacity
|
||||||
|
)
|
||||||
# optdepends based on optional_requirements.txt
|
# optdepends based on optional_requirements.txt
|
||||||
optdepends=(
|
optdepends=(
|
||||||
'ipython'
|
ipython
|
||||||
'jupyterlab'
|
jupyterlab
|
||||||
'python-ipywidgets'
|
python-ipywidgets
|
||||||
'python-numpy'
|
python-numpy
|
||||||
'python-matplotlib'
|
python-matplotlib
|
||||||
'python-pillow'
|
python-pillow
|
||||||
'python-scipy')
|
python-scipy
|
||||||
makedepends=(python-setuptools
|
python-ipykernel
|
||||||
|
python-pandas
|
||||||
|
python-colorcet
|
||||||
|
python-inflect
|
||||||
|
python-psutil
|
||||||
|
)
|
||||||
|
makedepends=(
|
||||||
|
python-setuptools
|
||||||
python-jupyter_core
|
python-jupyter_core
|
||||||
python-tornado
|
python-tornado
|
||||||
jupyterlab
|
jupyterlab
|
||||||
npm)
|
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")
|
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
|
options=(!strip) # strip isn't useful for python files and takes forever
|
||||||
sha256sums=('33548f8abc3310acde8ba7d74a57a652ed278ef5c4a999a61ae9fb45cb1961e4')
|
sha256sums=('33548f8abc3310acde8ba7d74a57a652ed278ef5c4a999a61ae9fb45cb1961e4')
|
||||||
@@ -33,6 +47,11 @@ build() {
|
|||||||
NODE_OPTIONS=--openssl-legacy-provider python setup.py build
|
NODE_OPTIONS=--openssl-legacy-provider python setup.py build
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd plotly.py-${pkgver}/packages/python/plotly
|
||||||
|
pytest plotly/tests/test_core
|
||||||
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd plotly.py-${pkgver}/packages/python/plotly
|
cd plotly.py-${pkgver}/packages/python/plotly
|
||||||
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
|
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
|
||||||
|
|||||||
Reference in New Issue
Block a user