Skip to content

Commit 9832a84

Browse files
committed
Update Python version to 3.14 across all starter templates and solutions, remove Pipfile and Pipfile.lock, and adjust run scripts to use 'uv' for execution.
1 parent 7f8599a commit 9832a84

File tree

35 files changed

+85
-141
lines changed

35 files changed

+85
-141
lines changed

compiled_starters/python/.codecrafters/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
set -e # Exit on failure
1010

11-
exec pipenv run python3 -m app.main "$@"
11+
exec uv run --quiet -m app.main "$@"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.14

compiled_starters/python/Pipfile

Lines changed: 0 additions & 11 deletions
This file was deleted.

compiled_starters/python/Pipfile.lock

Lines changed: 0 additions & 20 deletions
This file was deleted.

compiled_starters/python/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ That's all!
2626

2727
Note: This section is for stages 2 and beyond.
2828

29-
1. Ensure you have `python (3.13)` installed locally
29+
1. Ensure you have `uv` installed locally
3030
1. Run `./your_program.sh` to run your Redis server, which is implemented in
3131
`app/main.py`.
3232
1. Commit your changes and run `git push origin master` to submit your solution

compiled_starters/python/codecrafters.yml

Lines changed: 2 additions & 2 deletions
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.13
11-
buildpack: python-3.13
10+
# Available versions: python-3.14
11+
buildpack: python-3.14
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[project]
2+
name = "codecrafters-redis"
3+
version = "0.1.0"
4+
requires-python = ">=3.14"
5+
dependencies = []

compiled_starters/python/uv.lock

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiled_starters/python/your_program.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ set -e # Exit early if any commands fail
1212
#
1313
# - Edit this to change how your program runs locally
1414
# - Edit .codecrafters/run.sh to change how your program runs remotely
15-
exec pipenv run python3 -m app.main "$@"
15+
exec uv run --quiet -m app.main "$@"

dockerfiles/python-3.14.Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# syntax=docker/dockerfile:1.7-labs
2+
FROM astral/uv:python3.14-alpine
3+
4+
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="pyproject.toml,uv.lock"
5+
6+
WORKDIR /app
7+
8+
# .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
9+
COPY --exclude=.git --exclude=README.md . /app
10+
11+
# Force environment creation
12+
RUN uv sync

0 commit comments

Comments
 (0)