Skip to content

Commit 0847c84

Browse files
committed
Prep for jupyterlite
1 parent 555e746 commit 0847c84

File tree

3 files changed

+80
-2
lines changed

3 files changed

+80
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
- name: Setup Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.11'
21+
- name: Install the dependencies
22+
run: |
23+
python -m pip install -r requirements.txt
24+
- name: Build the JupyterLite site
25+
run: |
26+
cp README.md content
27+
jupyter lite build --contents content --output-dir dist
28+
- name: Upload artifact
29+
uses: actions/upload-pages-artifact@v1
30+
with:
31+
path: ./dist
32+
33+
deploy:
34+
needs: build
35+
if: github.ref == 'refs/heads/main'
36+
permissions:
37+
pages: write
38+
id-token: write
39+
40+
environment:
41+
name: github-pages
42+
url: ${{ steps.deployment.outputs.page_url }}
43+
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@v1

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ classifiers = [
3434
dependencies = [
3535
"ipywidgets>=7.0.0",
3636
]
37-
version = "0.1.0.dev0"
37+
version = "0.1.0"
3838

3939
[project.optional-dependencies]
4040
docs = [
@@ -104,7 +104,7 @@ file = [
104104
]
105105

106106
[tool.tbump.version]
107-
current = "0.1.0.dev0"
107+
current = "0.1.0"
108108
regex = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)((?P<channel>a|b|rc|.dev)(?P<release>\\d+))?"
109109

110110
[tool.tbump.git]

requirements.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Core modules (mandatory)
2+
jupyterlite-core==0.1.0
3+
jupyterlab~=3.5.1
4+
5+
# Python kernel (optional)
6+
jupyterlite-pyodide-kernel==0.0.6
7+
8+
# JavaScript kernel (optional)
9+
# jupyterlite-javascript-kernel==0.1.0b21
10+
11+
# Language support (optional)
12+
jupyterlab-language-pack-fr-FR
13+
jupyterlab-language-pack-zh-CN
14+
15+
# JupyterLab: dark theme
16+
jupyterlab-night
17+
# JupyterLab: Miami nights theme (optional)
18+
jupyterlab_miami_nights
19+
20+
# Python: ipywidget library for Jupyter notebooks (optional)
21+
ipywidgets>=8.0.0,<9
22+
# Python: ipyevents library for Jupyter notebooks (optional)
23+
ipyevents>=2.0.1
24+
# Python: interative Matplotlib library for Jupyter notebooks (optional)
25+
ipympl>=0.8.2
26+
# Python: ipycanvas library for Jupyter notebooks (optional)
27+
ipycanvas>=0.9.1
28+
29+
# Python: ipynao library for Nao robot
30+
ipynao>=0.1.0

0 commit comments

Comments
 (0)