From 52923cc68ffb9fcd71ae2de152e288807398949e Mon Sep 17 00:00:00 2001 From: Ryan Boehning <1250684+ryboe@users.noreply.github.com> Date: Sat, 21 Feb 2026 18:07:49 -0800 Subject: [PATCH] feat: update for python 3.14 Also replace poetry with uv. --- .github/workflows/pr.yml | 2 +- .github/workflows/release.yml | 5 +++-- Dockerfile | 16 +++++----------- 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 39df6a9..db6d885 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -10,8 +10,8 @@ jobs: strategy: matrix: python-version: - - "3.12" - "3.13" + - "3.14" steps: - name: Set up Docker buildx uses: docker/setup-buildx-action@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b0d1fe..5c7231b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,9 +7,10 @@ on: push: branches: - main + workflow_dispatch: env: - LATEST_PYTHON_VERSION: "3.13" + LATEST_PYTHON_VERSION: "3.14" jobs: build_and_upload_image: @@ -17,8 +18,8 @@ jobs: strategy: matrix: python-version: - - "3.12" - "3.13" + - "3.14" steps: - name: Set up Docker buildx uses: docker/setup-buildx-action@v3 diff --git a/Dockerfile b/Dockerfile index 0c398a3..1f6f67d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1 -ARG PYTHON_VERSION="3.13" +ARG PYTHON_VERSION="3.14" FROM mcr.microsoft.com/devcontainers/python:${PYTHON_VERSION} LABEL org.opencontainers.image.authors="Ryan Boehning <1250684+ryboe@users.noreply.github.com>" @@ -20,16 +20,10 @@ RUN sed -i 's/\/home\/vscode:\/bin\/bash/\/home\/vscode:\/bin\/zsh/' /etc/passwd USER vscode # Remove shell configs from the base image. -RUN rm -rf ~/.bash_logout ~/.bashrc ~/.oh-my-zsh ~/.profile +RUN rm -rf ~/.bash_logout ~/.bashrc ~/.profile -# Enable pipefail to catch poetry install errors. +# Enable pipefail to catch uv install errors below. SHELL ["/bin/zsh", "-o", "pipefail", "-c"] -# Install poetry and enable its completions. -RUN <<-EOT - mkdir -p /home/vscode/.local/bin - curl -sSL https://install.python-poetry.org | python - - mkdir -p ~/.zfunc - poetry completions zsh > ~/.zfunc/_poetrywhic - fpath+=~/.zfunc -EOT +# Install uv. +RUN curl -LsSf https://astral.sh/uv/install.sh | sh