Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to lastest jupyterbook version #264

Merged
merged 1 commit into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions .github/workflows/build_book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ jobs:
build-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.11"

- name: Setup environment
run: pip install --upgrade jupyter-book jupytext beautifulsoup4
run: |
pip install uv
uv pip install --system jupyter-book jupytext beautifulsoup4

- name: Cache jupyter-cache folder
uses: actions/cache@v2
Expand All @@ -35,25 +37,25 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.11"

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install jupyter-book jupytext beautifulsoup4
python -m pip install --upgrade uv
uv pip install --system jupyter-book jupytext beautifulsoup4

- name: Install Headless Chrome dependencies
run: |
sudo apt-get update
sudo apt-get install -yq $(cat .github/workflows/pyppeteer_requirements.txt)

- name: Install Chromium
run: pip install pyppeteer
run: uv pip install --system pyppeteer

- name: Build PDF from HTML (Docs)
run: make pdf
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_environments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
"jupyter-book/multimodal_integration/advanced_integration.yml",
]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v2.3.3
uses: actions/checkout@v4

- name: Run Labeler
uses: crazy-max/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre_commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
10 changes: 5 additions & 5 deletions .github/workflows/publish_book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
build-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python 3.9
uses: actions/setup-python@v2
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11

- name: Setup environment
run: pip install --upgrade jupyter-book==0.13.2 jupytext beautifulsoup4
run: pip install --upgrade jupyter-book jupytext beautifulsoup4

- name: Cache jupyter-cache folder
uses: actions/cache@v2
Expand Down
6 changes: 0 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ repos:
rev: v2.5.1
hooks:
- id: prettier
# Newer versions of node don't work on systems that have an older version of GLIBC
# (in particular Ubuntu 18.04 and Centos 7)
# EOL of Centos 7 is in 2024-06, we can probably get rid of this then.
# See https://github.com/scverse/cookiecutter-scverse/issues/143 and
# https://github.com/jupyterlab/jupyterlab/issues/12675
language_version: "17.9.1"
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
Expand Down
8 changes: 4 additions & 4 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- defaults
- conda-forge
dependencies:
- conda-forge::python=3.10.6
- conda-forge::jupyter-book==0.13.1
- conda-forge::jupytext==1.14.4
- conda-forge::beautifulsoup4==4.11.1
- conda-forge::python=3.11.8
- conda-forge::jupyter-book==1.0.0
- conda-forge::jupytext==1.16.1
- conda-forge::beautifulsoup4==4.12.3
Loading