From 4eebb5a20b930614f7f5a0281156716f7fae920d Mon Sep 17 00:00:00 2001 From: John Freeman Date: Sun, 26 Jan 2025 19:09:25 +0000 Subject: [PATCH] Upgrade to Python 3.12 The version that comes with Ubuntu 24.04. --- .github/workflows/docker.yml | 12 ++++++------ .../.devcontainer/devcontainer.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) rename {devcontainer-python3.10 => devcontainer-python3.12}/.devcontainer/devcontainer.json (95%) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 66cae2e..a024795 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -54,7 +54,7 @@ jobs: cache-from: type=registry,ref=${{ fromJSON(steps.meta_base.outputs.json).tags[1] }} cache-to: type=inline no-cache: ${{ github.event_name != 'pull_request' }} - # Omit licenses label as there's no pratical way to get an accurate value for all the Ubuntu packages + # Omit licenses label as there's no practical way to get an accurate value for all the Ubuntu packages # org.opencontainers.image.licenses= labels: | org.opencontainers.image.title=${{ fromJSON(steps.meta_base.outputs.json).labels['org.opencontainers.image.title'] }} @@ -91,7 +91,7 @@ jobs: cache-from: type=registry,ref=${{ fromJSON(steps.meta_dind.outputs.json).tags[1] }} cache-to: type=inline no-cache: ${{ github.event_name != 'pull_request' }} - # Omit licenses label as there's no pratical way to get an accurate value for all the Ubuntu packages + # Omit licenses label as there's no practical way to get an accurate value for all the Ubuntu packages # org.opencontainers.image.licenses= labels: | org.opencontainers.image.title=${{ fromJSON(steps.meta_dind.outputs.json).labels['org.opencontainers.image.title'] }} @@ -128,7 +128,7 @@ jobs: cache-from: type=registry,ref=${{ fromJSON(steps.meta_k8s.outputs.json).tags[1] }} cache-to: type=inline no-cache: ${{ github.event_name != 'pull_request' }} - # Omit licenses label as there's no pratical way to get an accurate value for all the Ubuntu packages + # Omit licenses label as there's no practical way to get an accurate value for all the Ubuntu packages # org.opencontainers.image.licenses= labels: | org.opencontainers.image.title=${{ fromJSON(steps.meta_k8s.outputs.json).labels['org.opencontainers.image.title'] }} @@ -139,8 +139,8 @@ jobs: org.opencontainers.image.created=${{ fromJSON(steps.meta_k8s.outputs.json).labels['org.opencontainers.image.created'] }} org.opencontainers.image.revision=${{ fromJSON(steps.meta_k8s.outputs.json).labels['org.opencontainers.image.revision'] }} - - name: Build and push Docker image (devcontainer-python3.10) + - name: Build and push Docker image (devcontainer-python3.12) uses: devcontainers/ci@v0.3 with: - subFolder: devcontainer-python3.10 - imageName: ghcr.io/gantsign/devcontainer-python3.10 + subFolder: devcontainer-python3.12 + imageName: ghcr.io/gantsign/devcontainer-python3.12 diff --git a/devcontainer-python3.10/.devcontainer/devcontainer.json b/devcontainer-python3.12/.devcontainer/devcontainer.json similarity index 95% rename from devcontainer-python3.10/.devcontainer/devcontainer.json rename to devcontainer-python3.12/.devcontainer/devcontainer.json index cdd86e4..e2d374b 100644 --- a/devcontainer-python3.10/.devcontainer/devcontainer.json +++ b/devcontainer-python3.12/.devcontainer/devcontainer.json @@ -1,7 +1,7 @@ // For format details, see https://aka.ms/devcontainer.json. For config options, see the // README at: https://github.com/devcontainers/templates/tree/main/src/python { - "image": "mcr.microsoft.com/devcontainers/python:0-3.10", + "image": "mcr.microsoft.com/devcontainers/python:3.12", "features": { "ghcr.io/devcontainers/features/common-utils:2": { "installZsh": true,