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
@@ -1,6 +1,6 @@
version: 2
updates:
- package-ecosystem: "pip"
- package-ecosystem: "uv"
directory: "/"
schedule:
interval: "monthly"
Expand Down
31 changes: 17 additions & 14 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,33 @@ on:
- main
workflow_dispatch:

pull_request:

permissions:
contents: read

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

- id: setup-python
name: Setup Python
uses: actions/setup-python@v5
- id: install-uv
name: Install uv
uses: astral-sh/setup-uv@v8.3.2
with:
python-version: '3.11'
cache: 'pipenv'

- id: install-pipenv
name: Install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
shell: bash

version: "0.11.29"
enable-cache: true

- id: install-python
name: Install Python
run: uv python install 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
Expand Down Expand Up @@ -73,4 +76,4 @@ jobs:
dir: ./docs/
should-cache: false
use-accelerate-endpoint: false
public: true
public: true
30 changes: 16 additions & 14 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,32 @@ on:
pull_request:
workflow_dispatch:


permissions:
contents: read

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

- id: setup-python
name: Setup Python
uses: actions/setup-python@v5
- id: install-uv
name: Install uv
uses: astral-sh/setup-uv@v8.3.2
with:
python-version: '3.11'
cache: 'pipenv'

- id: install-pipenv
name: Install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
shell: bash

version: "0.11.29"
enable-cache: true

- id: install-python
name: Install Python
run: uv python install 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
Expand All @@ -38,7 +40,7 @@ jobs:

- id: upload-release-candidate
name: Upload release candidate
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: release-candidate
path: ./docs/_build/
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,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
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ Change into the project directory:
cd first-python-notebook
```

Install the dependencies using pipenv:
Install the dependencies using uv:

```bash
pipenv install
uv sync --all-groups
```

## Contributing
Expand Down
12 changes: 6 additions & 6 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 @@ -70,15 +70,15 @@ serve: ## Test the site
$(call banner, 🧪 Serving test site 🧪)
@rm -rf docs/_build
@rm -rf docs/jupyter_execute
@cd docs && $(PIPENV) make livehtml
@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 @@ -87,7 +87,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
23 changes: 0 additions & 23 deletions Pipfile

This file was deleted.

Loading