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
7 changes: 5 additions & 2 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ runs:
steps:
- name: Set up Python
uses: actions/setup-python@v6
- name: Set up uv
uses: astral-sh/setup-uv@v6
with:
cache: pip
enable-cache: true
cache-dependency-glob: requirements.txt
- name: Install packages
run: pip install -r requirements.txt
run: uv pip install --system -r requirements.txt
# https://stackoverflow.com/a/71042698/358804
shell: bash
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
},
"workbench.externalBrowser": "chrome",
"python-envs.defaultEnvManager": "ms-python.python:venv",
"python-envs.defaultPackageManager": "ms-python.python:pip"
"python-envs.defaultPackageManager": "ms-python.python:uv"
}
9 changes: 3 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,13 @@ site:
jupyter-book build --all -W -n --keep-going .

setup:
python -m venv .venv
. .venv/bin/activate && \
pip install \
uv venv .venv
uv pip install --python .venv/bin/python \
-r requirements.txt \
-r extras/autograder/source/requirements.txt

update_packages:
. .venv/bin/activate && \
pip install --upgrade pip && \
pip install --upgrade -r requirements.txt
uv pip install --python .venv/bin/python --upgrade -r requirements.txt

./extras/scripts/update_lectures.sh

Expand Down
6 changes: 4 additions & 2 deletions extras/autograder/source/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -ex

apt-get install -y python3 python3-pip
apt-get install -y python3 curl
curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"

pip3 install -r /autograder/source/requirements.txt
uv pip install --system -r /autograder/source/requirements.txt
Loading