Skip to content

Commit 5cbfc3e

Browse files
Merge pull request #2 from jupyter-robotics/dev
Prep for jupyterlite
2 parents 1c0c753 + a24199a commit 5cbfc3e

File tree

3 files changed

+81
-2
lines changed

3 files changed

+81
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Deploy JupyterLite
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+
python -m pip install .
25+
- name: Build the JupyterLite site
26+
run: |
27+
cp README.md content
28+
jupyter lite build --contents content --output-dir dist
29+
- name: Upload artifact
30+
uses: actions/upload-pages-artifact@v1
31+
with:
32+
path: ./dist
33+
34+
deploy:
35+
needs: build
36+
if: github.ref == 'refs/heads/main'
37+
permissions:
38+
pages: write
39+
id-token: write
40+
41+
environment:
42+
name: github-pages
43+
url: ${{ steps.deployment.outputs.page_url }}
44+
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: Deploy to GitHub Pages
48+
id: deployment
49+
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)