1
0
mirror of https://github.com/bertptrs/aur.git synced 2025-12-28 05:50:31 +01:00

Compare commits

...

2 Commits

Author SHA1 Message Date
3f7a0537b2 upgpkg: python-plotly 5.20.0-3
Include checksums. Thanks lahwaacz
2024-03-31 23:00:33 +02:00
62d0dbef64 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.
2024-03-31 22:31:35 +02:00
2 changed files with 53 additions and 35 deletions

View File

@@ -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 = 3
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 = b0e4718894929e788aa5823d999f18246997dc256d94adc51e26b205c318ef50
pkgname = python-plotly pkgname = python-plotly

View File

@@ -3,9 +3,9 @@
pkgname=python-plotly pkgname=python-plotly
pkgver=5.20.0 pkgver=5.20.0
pkgrel=1 pkgrel=3
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=(
@@ -28,6 +28,10 @@ python-inflect
python-psutil python-psutil
) )
makedepends=( makedepends=(
git
python-wheel
python-build
python-installer
python-setuptools python-setuptools
python-jupyter_core python-jupyter_core
python-tornado python-tornado
@@ -38,25 +42,34 @@ 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 sha256sums=('b0e4718894929e788aa5823d999f18246997dc256d94adc51e26b205c318ef50')
sha256sums=('5f871e5ec2ec5c554210f735414f1d12031175a401cf90bbca7556501a48b1df') options=(!strip !debug) # strip and debug aren't useful for python files and take forever
prepare() {
cd python-plotly/packages/python/plotly
git clean -dfx
}
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"
} }