-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* switch to uv from pdm * uv pip install * fix path for uv install * run venv * default .venv * update readme and gha * remove pdm from gha * update gha script for py version and install * init venv * modify cache glob * use uv natively, not in pip compatibility mode * fix up the docker file to run with uv sync * update the README for uv usage --------- Co-authored-by: jwatson <[email protected]>
- Loading branch information
1 parent
990008f
commit ebbdf89
Showing
10 changed files
with
2,001 additions
and
2,285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
FROM docker-private.infra.cloudera.com/cloudera_base/hardened/cloudera-python:3.10 | ||
RUN pip install pdm | ||
RUN pip install uv | ||
COPY ./pyproject.toml /app/ | ||
COPY ./pdm.lock /app/ | ||
COPY ./uv.lock /app/ | ||
WORKDIR /app | ||
RUN pdm install | ||
RUN uv sync | ||
|
||
COPY ./app /app | ||
WORKDIR /app | ||
COPY ./scripts /scripts | ||
ENV PATH="/app/.venv/bin:$PATH" | ||
|
||
# Reset the entrypoint, don't invoke `uv` | ||
ENTRYPOINT [] | ||
|
||
CMD [ "pdm", "run", "fastapi", "run", "--host", "0.0.0.0" ] | ||
CMD [ "fastapi", "run", "--host", "0.0.0.0" ] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[project] | ||
name = "llm-service" | ||
version = "0.1.0" | ||
description = "Default template for PDM package" | ||
description = "Default template for UV package" | ||
authors = [ | ||
{name = "Conrado Silva Miranda", email = "[email protected]"}, | ||
] | ||
|
@@ -11,7 +11,7 @@ dependencies = [ | |
"fastapi==0.111.0", | ||
"pydantic==2.8.2", | ||
"pydantic-settings==2.3.4", | ||
"boto3>=1.35.66", | ||
"boto3>=1.35.68", | ||
"llama-index-embeddings-bedrock==0.2.1", | ||
"llama-index-llms-bedrock==0.1.13", | ||
"llama-index-llms-openai==0.1.31", | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters