File tree 6 files changed +29
-7
lines changed
solutions/python/01-dr6/code
6 files changed +29
-7
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Time to move on to the next stage!
29
29
30
30
Note: This section is for stages 2 and beyond.
31
31
32
- 1 . Ensure you have ` python (3.8+ ) ` installed locally
32
+ 1 . Ensure you have ` python (3.13 ) ` installed locally
33
33
1 . Run ` ./your_program.sh ` to run your program, which is implemented in
34
34
` app/main.py ` .
35
35
1 . Commit your changes and run ` git push origin master ` to submit your solution
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ debug: false
7
7
# Use this to change the Python version used to run your code
8
8
# on Codecrafters.
9
9
#
10
- # Available versions: python-3.12
11
- language_pack : python-3.12
10
+ # Available versions: python-3.13
11
+ language_pack : python-3.13
Original file line number Diff line number Diff line change
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"
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Time to move on to the next stage!
29
29
30
30
Note: This section is for stages 2 and beyond.
31
31
32
- 1 . Ensure you have ` python (3.8+ ) ` installed locally
32
+ 1 . Ensure you have ` python (3.13 ) ` installed locally
33
33
1 . Run ` ./your_program.sh ` to run your program, which is implemented in
34
34
` app/main.py ` .
35
35
1 . Commit your changes and run ` git push origin master ` to submit your solution
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ debug: false
7
7
# Use this to change the Python version used to run your code
8
8
# on Codecrafters.
9
9
#
10
- # Available versions: python-3.12
11
- language_pack : python-3.12
10
+ # Available versions: python-3.13
11
+ language_pack : python-3.13
Original file line number Diff line number Diff line change 1
1
attributes :
2
- required_executable : python (3.8+ )
2
+ required_executable : python (3.13 )
3
3
user_editable_file : app/main.py
You can’t perform that action at this time.
0 commit comments