Skip to content

Commit

Permalink
Create isolated environment for lab extension build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhad6 committed Oct 2, 2023
1 parent bc58834 commit e6614ba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ jobs:
- name: Install dependencies
run: yarn

- name: Build frontend
run: yarn build:lib

- name: Build lab extension
run: yarn build
run: hatch run jupyterlab:build

- name: Build package
run: hatch build
Expand Down
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ dependencies = [
[tool.hatch.envs.default.env-vars]
PIP_EXTRA_INDEX_URL = "https://painterqubits.github.io/datalogger/releases"

[tool.hatch.envs.jupyterlab]
detached = true
dependencies = [
"jupyterlab>=4.0.6,<5",
]

[tool.hatch.envs.jupyterlab.scripts]
build = "jupyter labextension build ."

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

0 comments on commit e6614ba

Please sign in to comment.