Skip to content
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
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

version: 2
updates:
- package-ecosystem: "pip"
- package-ecosystem: "uv"
directory: "/"
schedule:
interval: "monthly"
Expand Down
28 changes: 18 additions & 10 deletions .github/workflows/continuous-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,39 @@ on:
- main
workflow_dispatch:

pull_request:

permissions:
contents: read

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- uses: actions/setup-python@v5
- id: install-uv
name: Install uv
uses: astral-sh/setup-uv@v8.3.2
with:
python-version: "3.13"
version: "0.11.29"
enable-cache: true

- id: install-pipenv
name: Install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
shell: bash
- uses: actions/setup-python@v6
with:
python-version: '3.13'

- id: install-python-dependencies
name: Install Python dependencies
run: pipenv sync --dev
run: uv sync --all-groups --locked
shell: bash

- id: build-sphinx-documentation
name: Build Sphinx documentation
run: |
pipenv run python createconf.py;
pipenv run sphinx-build -b html src _build;
uv run python createconf.py;
uv run sphinx-build -b html src _build;
shell: bash
working-directory: docs
env:
Expand All @@ -49,6 +56,7 @@ jobs:
name: Deploy
runs-on: ubuntu-latest
needs: build
if: ${{ github.ref_name == 'main' }}
steps:
- name: Download release candidate
uses: actions/download-artifact@v8
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ target/
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.13
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ endef
# Python helpers
#

PIPENV := pipenv run
PYTHON := python -W ignore -m
UV := uv run
PYTHON := $(UV) python -W ignore -m

#
# Commands
Expand All @@ -71,16 +71,16 @@ serve: ## Test the site
@rm -rf docs/_build
@rm -rf docs/_build_html
@rm -rf docs/jupyter_execute
@cd docs && $(PIPENV) python createconf.py
@cd docs && $(PIPENV) make livehtml
@cd docs && $(UV) python createconf.py
@cd docs && $(UV) make livehtml


build: ## Build a release candidate
$(call banner,🏗️ Building release candidate 🏗️)
@cd docs && pipenv run sphinx-build -b html src _build
@cd docs && uv run sphinx-build -b html src _build
@mkdir -p docs/_build/_extra/
@mkdir _dist/
@pipenv run jupyter lite build --contents ./jupyterlite/ --output-dir=./_dist/
@uv run jupyter lite build --contents ./jupyterlite/ --output-dir=./_dist/
@mv ./_dist/* docs/_build/_extra/

#
Expand All @@ -89,7 +89,7 @@ build: ## Build a release candidate

format: ## automatically format Python code with black
$(call banner, 🪥 Cleaning code 🪥)
@$(PIPENV) black .
@$(UV) black .


help: ## Show this help. Example: make help
Expand Down
34 changes: 0 additions & 34 deletions Pipfile

This file was deleted.

Loading