Skip to content

Commit 62a2e52

Browse files
authored
Merge pull request #131 from codecrafters-io/CC-1646
[Sqlite] CC-1646: Upgrade Python support to 3.13
2 parents a610da0 + fbd024a commit 62a2e52

File tree

6 files changed

+29
-7
lines changed

6 files changed

+29
-7
lines changed

compiled_starters/python/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Time to move on to the next stage!
2929

3030
Note: This section is for stages 2 and beyond.
3131

32-
1. Ensure you have `python (3.8+)` installed locally
32+
1. Ensure you have `python (3.13)` installed locally
3333
1. Run `./your_program.sh` to run your program, which is implemented in
3434
`app/main.py`.
3535
1. Commit your changes and run `git push origin master` to submit your solution

compiled_starters/python/codecrafters.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ debug: false
77
# Use this to change the Python version used to run your code
88
# on Codecrafters.
99
#
10-
# Available versions: python-3.12
11-
language_pack: python-3.12
10+
# Available versions: python-3.13
11+
language_pack: python-3.13

dockerfiles/python-3.13.Dockerfile

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM python:3.13-alpine
2+
3+
RUN pip install --no-cache-dir "pipenv>=2024.4.0"
4+
5+
COPY Pipfile /app/Pipfile
6+
COPY Pipfile.lock /app/Pipfile.lock
7+
8+
WORKDIR /app
9+
10+
ENV LANG="en_US.UTF-8"
11+
ENV PIPENV_VENV_IN_PROJECT=1
12+
13+
RUN pipenv install
14+
15+
# Force environment creation
16+
RUN pipenv run python3 -c "import sqlparse" # Ensure the deps are available
17+
RUN pipenv --venv
18+
19+
RUN mkdir -p /app-cached
20+
RUN mv /app/.venv /app-cached/.venv
21+
22+
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Pipfile,Pipfile.lock"

solutions/python/01-dr6/code/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Time to move on to the next stage!
2929

3030
Note: This section is for stages 2 and beyond.
3131

32-
1. Ensure you have `python (3.8+)` installed locally
32+
1. Ensure you have `python (3.13)` installed locally
3333
1. Run `./your_program.sh` to run your program, which is implemented in
3434
`app/main.py`.
3535
1. Commit your changes and run `git push origin master` to submit your solution

solutions/python/01-dr6/code/codecrafters.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ debug: false
77
# Use this to change the Python version used to run your code
88
# on Codecrafters.
99
#
10-
# Available versions: python-3.12
11-
language_pack: python-3.12
10+
# Available versions: python-3.13
11+
language_pack: python-3.13

starter_templates/python/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
attributes:
2-
required_executable: python (3.8+)
2+
required_executable: python (3.13)
33
user_editable_file: app/main.py

0 commit comments

Comments
 (0)