Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / 
jupyter-collaboration


Commits:
e7855cfe by Antonio Rojas at 2024-11-05T21:03:08+01:00
Fix packaging

Fixes 
https://gitlab.archlinux.org/archlinux/packaging/packages/jupyter-collaboration/-/issues/1

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = jupyter-collaboration
        pkgdesc = A Jupyter Server Extension Providing Support for Y Documents
        pkgver = 3.0.0
-       pkgrel = 1
+       pkgrel = 2
        url = 
https://jupyterlab-realtime-collaboration.readthedocs.io/en/latest/
        arch = any
        license = custom
@@ -21,7 +21,6 @@ pkgbase = jupyter-collaboration
        makedepends = python-installer
        depends = jupyter-server
        depends = jupyter-server-fileid
-       depends = jupyter-server-ydoc
        depends = python
        depends = python-jupyter-events
        depends = python-jupyter-ydoc
@@ -29,6 +28,8 @@ pkgbase = jupyter-collaboration
        depends = python-pycrdt-websocket
        depends = python-tornado
        depends = python-traitlets
+       conflicts = jupyter-server-ydoc
+       replaces = jupyter-server-ydoc
        source = 
git+https://github.com/jupyterlab/jupyter-collaboration#tag=v3.0.0
        sha256sums = 
4db645f8e58672a0a1c54c67cbd390bbb17c752df5e0945e0df6d852535383a6
 


=====================================
PKGBUILD
=====================================
@@ -2,14 +2,13 @@
 
 pkgname=jupyter-collaboration
 pkgver=3.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc='A Jupyter Server Extension Providing Support for Y Documents'
 arch=(any)
 url='https://jupyterlab-realtime-collaboration.readthedocs.io/en/latest/'
 license=(custom)
 depends=(jupyter-server
          jupyter-server-fileid
-         jupyter-server-ydoc
          python
          python-jupyter-events
          python-jupyter-ydoc
@@ -31,21 +30,32 @@ checkdepends=(python-jupyter-server-terminals
               python-pytest-jupyter
               python-pytest-timeout
               python-websockets)
+conflicts=(jupyter-server-ydoc)
+replaces=(jupyter-server-ydoc)
 source=(git+https://github.com/jupyterlab/jupyter-collaboration#tag=v$pkgver)
 sha256sums=('4db645f8e58672a0a1c54c67cbd390bbb17c752df5e0945e0df6d852535383a6')
 
 build() {
-  cd $pkgname
-  python -m build --wheel --no-isolation --skip-dependency-check
+  for _proj in jupyter-server-ydoc jupyter-docprovider 
jupyter-collaboration-ui; do
+    cd "$srcdir"/$pkgname/projects/$_proj
+    python -m build --wheel --no-isolation --skip-dependency-check
+  done
 }
 
 check() {
   cd $pkgname
-  pytest -v # -k 'not test_room_sequential_opening' # 
https://github.com/jupyterlab/jupyter-collaboration/issues/252
+  python -m venv --system-site-packages test-env
+  for _wheel in projects/*/dist/*.whl; do
+    test-env/bin/python -m installer $_wheel
+  done
+  test-env/bin/python -m pytest -v
 }
 
 package() {
   cd $pkgname
-  python -m installer --destdir="$pkgdir" dist/*.whl
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+  for _wheel in projects/*/dist/*.whl; do
+    python -m installer --destdir="$pkgdir" $_wheel
+  done
+  mv "$pkgdir"/{usr/,}etc
+  install -Dm644 "$srcdir"/$pkgname/LICENSE -t 
"$pkgdir"/usr/share/licenses/$pkgname
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/jupyter-collaboration/-/commit/e7855cfec2fc5d12c850c04e255b1359461673b0

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/jupyter-collaboration/-/commit/e7855cfec2fc5d12c850c04e255b1359461673b0
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to