-
Notifications
You must be signed in to change notification settings - Fork 13
Update install instructions to use uv sync instead of pip #169
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
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
c9142be
chore(docs): replace pip install with uv sync instructions
palaniappan-r 0b88125
refactor(Makefile): rewrite setup and checks to use uv
palaniappan-r 2b41125
refactor: use uv in dockerfiles
palaniappan-r badbfca
chore: update readme
palaniappan-r 013e8b4
chore: install uv in Dockerfiles
palaniappan-r 8f2f200
refactor(ci): install uv in CI workflow
palaniappan-r 00d20a3
fix: update mypy version to >=1.17.1 in pyproject.toml and uv.lock
palaniappan-r 06ec42d
chore: update pytest ini_options
palaniappan-r 4029c3b
chore: update base image to python:3.13.5-slim in Dockerfiles
palaniappan-r 6d059b3
refactor: update Dockerfiles to use pre-built uv images
palaniappan-r 6d09264
refactor(ci): simplify uv installation in CI workflow
palaniappan-r f8f7b5f
fix: update command to run chatbot script in README
palaniappan-r e796c39
fix: use uv run in post_install script execution
palaniappan-r f07e5bd
Merge branch 'master' into uv-deps
palaniappan-r 2c1a021
chore: update dependencies for mcp functionality
palaniappan-r 331e5d0
fix: update type hint for ORFS_DIR environment variable to Optional[str]
palaniappan-r 44d1ddf
fix: update graph type hint to use Optional
palaniappan-r 8995d07
ruff: fix formatting
palaniappan-r 19e1fa6
feat: use uv in all make targets
palaniappan-r File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 3.13 | ||
luarss marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or 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,31 +1,21 @@ | ||
| FROM python:3.12.3-slim | ||
| FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim | ||
|
|
||
| WORKDIR /ORAssistant-backend | ||
|
|
||
| RUN apt-get update && apt-get install -y \ | ||
| pandoc git wget curl \ | ||
| git-lfs | ||
| RUN apt-get update && apt-get install -y pandoc git wget curl git-lfs && git lfs install | ||
luarss marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| RUN git lfs install | ||
| RUN pip install uv | ||
|
|
||
| COPY ./requirements.txt /ORAssistant-backend/requirements.txt | ||
| COPY ./requirements-test.txt /ORAssistant-backend/requirements-test.txt | ||
| COPY ./pyproject.toml /ORAssistant-backend/pyproject.toml | ||
| COPY . . | ||
|
|
||
| RUN pip install --upgrade pip && \ | ||
| pip install --no-cache-dir -r requirements.txt && \ | ||
| pip install --no-cache-dir -r requirements-test.txt && \ | ||
| pip install --no-cache-dir -e . | ||
| RUN uv venv .venv && uv sync --dev && uv run /ORAssistant-backend/src/post_install.py | ||
|
|
||
| RUN git clone https://huggingface.co/datasets/The-OpenROAD-Project/ORAssistant_RAG_Dataset && \ | ||
| mkdir -p data && \ | ||
| mv ORAssistant_RAG_Dataset/* data/ && \ | ||
| rm -rf ORAssistant_RAG_Dataset | ||
|
|
||
| COPY . . | ||
|
|
||
| RUN python /ORAssistant-backend/src/post_install.py | ||
|
|
||
| EXPOSE 8000 | ||
|
|
||
| CMD ["uvicorn", "src.api.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"] | ||
| CMD ["uv", "run", "uvicorn", "src.api.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"] | ||
This file contains hidden or 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 hidden or 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,44 +1,35 @@ | ||
| .PHONY: init | ||
| init: | ||
| @python3 -m venv .venv && \ | ||
| . .venv/bin/activate && \ | ||
| pip install -r requirements.txt && \ | ||
| pip install -e . | ||
| @uv venv .venv && \ | ||
| uv sync | ||
|
|
||
| .PHONY: init-dev | ||
| init-dev: init | ||
| @. .venv/bin/activate && \ | ||
| pip install -r requirements-test.txt | ||
| init-dev: | ||
| @uv venv .venv && \ | ||
| uv sync --dev | ||
|
|
||
| .PHONY: format | ||
| format: | ||
| @. .venv/bin/activate && \ | ||
| ruff format && \ | ||
| ruff check --fix | ||
| @uv run ruff format && \ | ||
| uv run ruff check --fix | ||
|
|
||
| .PHONY: check | ||
| check: | ||
| @. .venv/bin/activate && \ | ||
| mypy . && \ | ||
| ruff check | ||
| @uv run mypy . && \ | ||
| uv run ruff check | ||
|
|
||
| .PHONY: build-docs | ||
| build-docs: | ||
| @. .venv/bin/activate && \ | ||
| python build_docs.py | ||
| @uv run python build_docs.py | ||
|
|
||
| .PHONY: test | ||
| test: | ||
| @. .venv/bin/activate && \ | ||
| pytest | ||
| @uv run pytest | ||
|
|
||
| # For MCP Development | ||
| .PHONY: mcp | ||
| mcp: | ||
| @. .venv/bin/activate && \ | ||
| python -m src.openroad_mcp.server.orfs.orfs_server | ||
| @uv run python -m src.openroad_mcp.server.orfs.orfs_server | ||
|
|
||
| .PHONY: chat | ||
| chat: | ||
| @. .venv/bin/activate && \ | ||
| python -m chatbot | ||
| @uv run python -m chatbot |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.