Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages /
python-ipywidgets
Commits:
ebe09bd4 by Antonio Rojas at 2024-04-23T22:14:46+02:00
upgpkg: 8.1.2-3: Use pytest 8
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,13 +1,14 @@
pkgbase = python-ipywidgets
pkgdesc = IPython HTML widgets for Jupyter
pkgver = 8.1.2
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/ipython/ipywidgets
arch = any
license = BSD-3-Clause
checkdepends = python-ipykernel
- checkdepends = python-pytest7
+ checkdepends = python-pytest
checkdepends = python-pytz
+ makedepends = git
makedepends = python-build
makedepends = python-installer
makedepends = python-setuptools
@@ -15,9 +16,13 @@ pkgbase = python-ipywidgets
depends = ipython
depends = python
depends = python-comm
+ depends = python-ipykernel
depends = python-jsonschema
+ depends = python-traitlets
optdepends = jupyterlab-widgets: widgets for Jupyter lab
- source =
https://pypi.io/packages/source/i/ipywidgets/ipywidgets-8.1.2.tar.gz
- sha256sums =
d0b9b41e49bae926a866e613a39b0f0097745d2b9f1f3dd406641b4a57ec42c9
+ source = git+https://github.com/jupyter-widgets/ipywidgets#tag=8.1.2
+ source =
https://github.com/jupyter-widgets/ipywidgets/commit/bbc6c064.patch
+ sha256sums =
146cac83855ac40dd7264a654ebd8efbe81fff089405865f5456fd21afe5e1e6
+ sha256sums =
df055ab534084dbcb88cfbf21a87e30bd63f0b22201fdbd531fd8c4177af45e2
pkgname = python-ipywidgets
=====================================
PKGBUILD
=====================================
@@ -4,7 +4,7 @@
pkgname=python-ipywidgets
_pipname=ipywidgets
pkgver=8.1.2
-pkgrel=2
+pkgrel=3
pkgdesc='IPython HTML widgets for Jupyter'
arch=(any)
url='https://github.com/ipython/ipywidgets'
@@ -12,30 +12,40 @@ license=(BSD-3-Clause)
depends=(ipython
python
python-comm
- python-jsonschema)
-makedepends=(python-build
+ python-ipykernel
+ python-jsonschema
+ python-traitlets)
+makedepends=(git
+ python-build
python-installer
python-setuptools
python-wheel)
optdepends=('jupyterlab-widgets: widgets for Jupyter lab')
checkdepends=(python-ipykernel
- python-pytest7
+ python-pytest
python-pytz)
-source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz)
-sha256sums=('d0b9b41e49bae926a866e613a39b0f0097745d2b9f1f3dd406641b4a57ec42c9')
+source=(git+https://github.com/jupyter-widgets/ipywidgets#tag=$pkgver
+ https://github.com/jupyter-widgets/ipywidgets/commit/bbc6c064.patch)
+sha256sums=('146cac83855ac40dd7264a654ebd8efbe81fff089405865f5456fd21afe5e1e6'
+ 'df055ab534084dbcb88cfbf21a87e30bd63f0b22201fdbd531fd8c4177af45e2')
+
+prepare() {
+ cd ipywidgets
+ patch -p1 -i "$srcdir"/bbc6c064.patch # Fix tests with pytest 8
+}
build() {
- cd ipywidgets-$pkgver
+ cd ipywidgets/python/ipywidgets
python -m build --wheel --no-isolation
}
check() {
- cd ipywidgets-$pkgver
+ cd ipywidgets/python/ipywidgets
pytest -v
}
package() {
- cd ipywidgets-$pkgver
+ cd ipywidgets/python/ipywidgets
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-ipywidgets/-/commit/ebe09bd4670c665841457415645f7a65e05ac7b7
--
This project does not include diff previews in email notifications.
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-ipywidgets/-/commit/ebe09bd4670c665841457415645f7a65e05ac7b7
You're receiving this email because of your account on gitlab.archlinux.org.