From e0bc1ca62e3e51ecbad5181c7d1d2e3104863ac8 Mon Sep 17 00:00:00 2001 From: libmartinito Date: Wed, 13 Mar 2024 22:04:25 +0800 Subject: [PATCH] chore: update Python version to 3.12 in configuration and Dockerfile --- compiled_starters/python/codecrafters.yml | 4 ++-- dockerfiles/python-3.12.Dockerfile | 8 ++++++++ solutions/python/01-init/code/codecrafters.yml | 4 ++-- starter_templates/codecrafters.yml | 4 ++-- 4 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 dockerfiles/python-3.12.Dockerfile diff --git a/compiled_starters/python/codecrafters.yml b/compiled_starters/python/codecrafters.yml index 7ff8fea..ec2956e 100644 --- a/compiled_starters/python/codecrafters.yml +++ b/compiled_starters/python/codecrafters.yml @@ -7,5 +7,5 @@ debug: false # Use this to change the Python version used to run your code # on Codecrafters. # -# Available versions: python-3.11 -language_pack: python-3.11 +# Available versions: python-3.12 +language_pack: python-3.12 diff --git a/dockerfiles/python-3.12.Dockerfile b/dockerfiles/python-3.12.Dockerfile new file mode 100644 index 0000000..59ccedf --- /dev/null +++ b/dockerfiles/python-3.12.Dockerfile @@ -0,0 +1,8 @@ +FROM python:3.12-alpine + +RUN apk add --no-cache 'curl>=7.66' + +# Download docker-explorer. +ARG docker_explorer_version=v18 +RUN curl --fail -Lo /usr/local/bin/docker-explorer https://github.com/codecrafters-io/docker-explorer/releases/download/${docker_explorer_version}/${docker_explorer_version}_linux_amd64 +RUN chmod +x /usr/local/bin/docker-explorer diff --git a/solutions/python/01-init/code/codecrafters.yml b/solutions/python/01-init/code/codecrafters.yml index 7ff8fea..ec2956e 100644 --- a/solutions/python/01-init/code/codecrafters.yml +++ b/solutions/python/01-init/code/codecrafters.yml @@ -7,5 +7,5 @@ debug: false # Use this to change the Python version used to run your code # on Codecrafters. # -# Available versions: python-3.11 -language_pack: python-3.11 +# Available versions: python-3.12 +language_pack: python-3.12 diff --git a/starter_templates/codecrafters.yml b/starter_templates/codecrafters.yml index 4db5f8b..991496d 100644 --- a/starter_templates/codecrafters.yml +++ b/starter_templates/codecrafters.yml @@ -8,8 +8,8 @@ debug: false # on Codecrafters. # {{# language_is_python }} -# Available versions: python-3.11 -language_pack: python-3.11 +# Available versions: python-3.12 +language_pack: python-3.12 {{/ language_is_python }} {{# language_is_swift }} # Available versions: swift-5.6