[arch-commits] Commit in jupyterlab-widgets/trunk (2 files)

Antonio Rojas arojas at gemini.archlinux.org
Sat Aug 27 10:29:14 UTC 2022


    Date: Saturday, August 27, 2022 @ 10:29:13
  Author: arojas
Revision: 1284672

upgpkg: jupyterlab-widgets 3.0.2-1: Update to 3.0.2

Modified:
  jupyterlab-widgets/trunk/PKGBUILD
Deleted:
  jupyterlab-widgets/trunk/drop-version-constraints.patch

--------------------------------+
 PKGBUILD                       |   22 ++++++----------------
 drop-version-constraints.patch |    8 --------
 2 files changed, 6 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-27 10:28:19 UTC (rev 1284671)
+++ PKGBUILD	2022-08-27 10:29:13 UTC (rev 1284672)
@@ -2,7 +2,7 @@
 
 _pipname=jupyterlab_widgets
 pkgname=${_pipname/_/-}
-pkgver=1.1.1
+pkgver=3.0.2
 pkgrel=1
 pkgdesc='JupyterLab extension to use ipywidgets'
 arch=(any)
@@ -9,28 +9,18 @@
 url='https://jupyter.org/'
 license=(custom)
 depends=(jupyterlab python-ipywidgets)
-makedepends=(python-setuptools python-jupyter_packaging)
-source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz
-        drop-version-constraints.patch)
-sha256sums=('67d0ef1e407e0c42c8ab60b9d901cd7a4c68923650763f75bf17fb06c1943b79'
-            '1e465155b135e86a66bcb0b112025f9a4be3fd0d28afa31ca5cf954e4d0dd4bc')
+makedepends=(python-build python-installer python-setuptools python-jupyter_packaging)
+source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz)
+sha256sums=('47ab54cd165aa0cb3bcef1232d77471580cd2c36bbe2153fc5ba31e26ad87320')
 
-prepare() {
-  patch -d $_pipname-$pkgver -p1 < drop-version-constraints.patch
-}
-
 build() {
   cd $_pipname-$pkgver
-  python setup.py build 
+  python -m build --wheel --skip-dependency-check --no-isolation
 }
 
 package() {
   cd $_pipname-$pkgver
-  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
 
-# These should be installed by setup.py, but they are not
-  mkdir -p "$pkgdir"/usr/share/jupyter/labextensions/@jupyter-widgets/
-  cp -r jupyterlab_widgets/labextension "$pkgdir"/usr/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager
-
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
 }

Deleted: drop-version-constraints.patch
===================================================================
--- drop-version-constraints.patch	2022-08-27 10:28:19 UTC (rev 1284671)
+++ drop-version-constraints.patch	2022-08-27 10:29:13 UTC (rev 1284672)
@@ -1,8 +0,0 @@
-diff -ru jupyterlab_widgets-1.1.0.orig/pyproject.toml jupyterlab_widgets-1.1.0/pyproject.toml
---- jupyterlab_widgets-1.1.0.orig/pyproject.toml	2022-03-16 08:53:32.364140285 +0100
-+++ jupyterlab_widgets-1.1.0/pyproject.toml	2022-03-16 08:54:00.704173882 +0100
-@@ -1,3 +1,3 @@
- [build-system]
--requires = ["jupyter_packaging~=0.7.9", "jupyterlab~=3.0", "setuptools>=40.8.0", "wheel"]
-+requires = ["jupyter_packaging", "jupyterlab", "setuptools>=40.8.0", "wheel"]
- build-backend = "setuptools.build_meta"



More information about the arch-commits mailing list