Skip to content

Commit

Permalink
chore: update python version to 3.12 in configuration files and Docke…
Browse files Browse the repository at this point in the history
…rfile
  • Loading branch information
libmartinito committed Mar 13, 2024
1 parent 198fe05 commit 90dd6b8
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
4 changes: 2 additions & 2 deletions compiled_starters/python/codecrafters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 17 additions & 0 deletions dockerfiles/python-3.12.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM python:3.12-alpine

RUN pip install --no-cache-dir "pipenv>=2023.12.1"

COPY Pipfile /app/Pipfile
COPY Pipfile.lock /app/Pipfile.lock

WORKDIR /app

ENV WORKON_HOME=/venvs

RUN pipenv install

# Force environment creation
RUN pipenv run python3 -c "1+1"

ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Pipfile,Pipfile.lock"
4 changes: 2 additions & 2 deletions solutions/python/01-init/code/codecrafters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions starter_templates/codecrafters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.1
Expand Down

0 comments on commit 90dd6b8

Please sign in to comment.