From c6db931608e05b288ebbe85492d1f6b420f55b01 Mon Sep 17 00:00:00 2001 From: krassowski <5832902+krassowski@users.noreply.github.com> Date: Sun, 8 Oct 2023 21:28:54 +0100 Subject: [PATCH] Init submodules, update binder setup --- .github/workflows/build.yml | 8 ++++++-- binder/postBuild | 11 ++++++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d07f351..0d884d4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,17 +13,21 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + submodules: true - name: Base Setup uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 - name: Install dependencies run: | + python -m pip install -U "jupyterlab>=4.0.0,<5" + python -m pip install hatch build cd jupyterlab - python -m pip install -e . + # see https://github.com/jupyterlab/hatch-jupyter-builder/issues/131 + # python -m pip install -e . jlpm install jlpm build - # python -m pip install -U "jupyterlab>=4.0.0,<5" - name: Lint the extension run: | diff --git a/binder/postBuild b/binder/postBuild index ceba3e6..6c7e48d 100755 --- a/binder/postBuild +++ b/binder/postBuild @@ -11,7 +11,7 @@ import subprocess import sys from pathlib import Path - +import os ROOT = Path.cwd() @@ -26,6 +26,15 @@ def _(*args, **kwargs): print("\nERROR", return_code, " ".join(args)) sys.exit(return_code) +_("git", "submodule", "update", "--init") + +cwd = os.getcwd() +os.chdir('jupyterlab') +_("python", "-m", "pip", "install", "-e", ".") +_("jlpm", "install") +_("jlpm", "build") +os.chdir(cwd) + # verify the environment is self-consistent before even starting _(sys.executable, "-m", "pip", "check")