-
Notifications
You must be signed in to change notification settings - Fork 1
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
Switch to UV from PDM #40
Changes from 9 commits
87405ad
79eb146
0b8e677
f12a0b6
f912e47
703a2f1
7581235
17f21c0
2200886
17c7c28
fdf13ac
e338967
eb2bc7a
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
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 install | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The other places used There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that seems right There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should be |
||
|
||
COPY ./app /app | ||
WORKDIR /app | ||
|
This file was deleted.
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]"}, | ||
] | ||
|
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,11 +65,11 @@ docker run --name qdrant_dev --rm -d -p 6333:6333 -p 6334:6334 -v $(pwd)/databas | |
cd llm-service | ||
python3.10 -m venv venv | ||
source venv/bin/activate | ||
python -m pip install pdm | ||
pdm install | ||
pdm run pytest -sxvvra | ||
python -m pip install uv | ||
uv pip install -r pyproject.toml | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same |
||
uv run pytest -sxvvra | ||
|
||
pdm run fastapi dev & | ||
uv run fastapi dev & | ||
|
||
# start up the jarva | ||
cd ../backend | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,8 +46,9 @@ cd ui/express | |
npm install | ||
|
||
cd ../../llm-service | ||
pip install pdm | ||
pdm install -v | ||
pip install uv | ||
uv venv | ||
uv pip install -r pyproject.toml | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same |
||
|
||
cd .. | ||
mkdir -p artifacts | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we install from the locked versions instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe? Let me see if that's possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not seeing a way to install from the lock file instead of the toml.
docs here: https://docs.astral.sh/uv/pip/packages/#installing-packages-from-files