-
Notifications
You must be signed in to change notification settings - Fork 14
CC-2005: [grep] [Python] Use uv and upgrade to 3.14 #177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,4 +8,4 @@ | |
|
|
||
| set -e # Exit on failure | ||
|
|
||
| exec pipenv run python3 -m app.main "$@" | ||
| exec uv run --quiet -m app.main "$@" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 3.14 |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| [project] | ||
| name = "codecrafters-grep" | ||
| version = "0.1.0" | ||
| requires-python = ">=3.14" | ||
| dependencies = [] | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # syntax=docker/dockerfile:1.7-labs | ||
| FROM astral/uv:python3.14-alpine | ||
|
|
||
| # Ensures the container is re-built if dependency files change | ||
| ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="pyproject.toml,uv.lock" | ||
|
|
||
| # Prevents Python from buffering stdout and stderr | ||
| ENV PYTHONUNBUFFERED=1 | ||
|
|
||
| ENV PYTHONPATH=/app:$PYTHONPATH | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| # .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses | ||
| COPY --exclude=.git --exclude=README.md . /app | ||
|
|
||
| # Force environment creation | ||
| RUN uv sync |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,4 +8,4 @@ | |
|
|
||
| set -e # Exit on failure | ||
|
|
||
| exec pipenv run python3 -m app.main "$@" | ||
| exec uv run --quiet -m app.main "$@" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 3.14 |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| [project] | ||
| name = "codecrafters-grep" | ||
| version = "0.1.0" | ||
| requires-python = ">=3.14" | ||
| dependencies = [] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,4 +8,4 @@ | |
|
|
||
| set -e # Exit on failure | ||
|
|
||
| exec pipenv run python3 -m app.main "$@" | ||
| exec uv run --quiet -m app.main "$@" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 3.14 |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.