mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-25 12:40:30 +01:00
upgpkg: python-plotly 5.20.0-2
Rework sources as a git package rather than relying on tarballs, which have repeatedly changed checksums for unknown reasons.
This commit is contained in:
@@ -1,12 +1,16 @@
|
|||||||
pkgbase = python-plotly
|
pkgbase = python-plotly
|
||||||
pkgdesc = An open-source, interactive graphing library
|
pkgdesc = An open-source, interactive graphing library
|
||||||
pkgver = 5.20.0
|
pkgver = 5.20.0
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://github.com/plotly/plotly.py
|
url = https://github.com/plotly/plotly.py
|
||||||
arch = x86_64
|
arch = any
|
||||||
license = MIT
|
license = MIT
|
||||||
checkdepends = python-requests
|
checkdepends = python-requests
|
||||||
checkdepends = python-pytest
|
checkdepends = python-pytest
|
||||||
|
makedepends = git
|
||||||
|
makedepends = python-wheel
|
||||||
|
makedepends = python-build
|
||||||
|
makedepends = python-installer
|
||||||
makedepends = python-setuptools
|
makedepends = python-setuptools
|
||||||
makedepends = python-jupyter_core
|
makedepends = python-jupyter_core
|
||||||
makedepends = python-tornado
|
makedepends = python-tornado
|
||||||
@@ -26,7 +30,8 @@ pkgbase = python-plotly
|
|||||||
optdepends = python-inflect
|
optdepends = python-inflect
|
||||||
optdepends = python-psutil
|
optdepends = python-psutil
|
||||||
options = !strip
|
options = !strip
|
||||||
source = python-plotly-5.20.0.tar.gz::https://github.com/plotly/plotly.py/archive/v5.20.0.tar.gz
|
options = !debug
|
||||||
sha256sums = 5f871e5ec2ec5c554210f735414f1d12031175a401cf90bbca7556501a48b1df
|
source = python-plotly::git+https://github.com/plotly/plotly.py#tag=v5.20.0
|
||||||
|
sha256sums = SKIP
|
||||||
|
|
||||||
pkgname = python-plotly
|
pkgname = python-plotly
|
||||||
|
|||||||
@@ -3,60 +3,67 @@
|
|||||||
|
|
||||||
pkgname=python-plotly
|
pkgname=python-plotly
|
||||||
pkgver=5.20.0
|
pkgver=5.20.0
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="An open-source, interactive graphing library"
|
pkgdesc="An open-source, interactive graphing library"
|
||||||
arch=('x86_64')
|
arch=('any')
|
||||||
url="https://github.com/plotly/plotly.py"
|
url="https://github.com/plotly/plotly.py"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
depends=(
|
depends=(
|
||||||
python
|
python
|
||||||
python-tenacity
|
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
|
||||||
python-ipykernel
|
python-ipykernel
|
||||||
python-pandas
|
python-pandas
|
||||||
python-colorcet
|
python-colorcet
|
||||||
python-inflect
|
python-inflect
|
||||||
python-psutil
|
python-psutil
|
||||||
)
|
)
|
||||||
makedepends=(
|
makedepends=(
|
||||||
python-setuptools
|
git
|
||||||
python-jupyter_core
|
python-wheel
|
||||||
python-tornado
|
python-build
|
||||||
jupyterlab
|
python-installer
|
||||||
|
python-setuptools
|
||||||
|
python-jupyter_core
|
||||||
|
python-tornado
|
||||||
|
jupyterlab
|
||||||
)
|
)
|
||||||
checkdepends=(
|
checkdepends=(
|
||||||
python-requests
|
python-requests
|
||||||
python-pytest
|
python-pytest
|
||||||
)
|
)
|
||||||
source=(
|
source=(
|
||||||
"${pkgname}-${pkgver}.tar.gz::https://github.com/plotly/plotly.py/archive/v${pkgver}.tar.gz"
|
"${pkgname}::git+https://github.com/plotly/plotly.py#tag=v$pkgver"
|
||||||
)
|
)
|
||||||
options=(!strip) # strip isn't useful for python files and takes forever
|
options=(!strip !debug) # strip and debug aren't useful for python files and take forever
|
||||||
sha256sums=('5f871e5ec2ec5c554210f735414f1d12031175a401cf90bbca7556501a48b1df')
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd plotly.py-${pkgver}/packages/python/plotly
|
cd python-plotly/packages/python/plotly
|
||||||
SKIP_NPM=1 python setup.py build
|
|
||||||
|
# Skip the dependency check as the version bounds on jupyterlab are too tight
|
||||||
|
# and don't allow 4.x, which Arch currently ships.
|
||||||
|
SKIP_NPM=1 python -m build --wheel --no-isolation --skip-dependency-check
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd plotly.py-${pkgver}/packages/python/plotly
|
cd python-plotly/packages/python/plotly
|
||||||
pytest plotly/tests/test_core
|
pytest plotly/tests/test_core
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd plotly.py-${pkgver}/packages/python/plotly
|
cd python-plotly/packages/python/plotly
|
||||||
SKIP_NPM=1 python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
|
python -m installer --destdir="$pkgdir"/ dist/*.whl
|
||||||
mv ${pkgdir}/usr/etc ${pkgdir}
|
mv "${pkgdir}/usr/etc" "${pkgdir}"
|
||||||
|
|
||||||
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user