chore(hg-llm): use uv instead poetry#226
Merged
imbajin merged 18 commits intoapache:mainfrom May 22, 2025
Merged
Conversation
imbajin
reviewed
May 12, 2025
Comment on lines
+66
to
+70
| [project.urls] | ||
| Homepage = "https://hugegraph.apache.org/" | ||
| Repository = "https://github.com/apache/incubator-hugegraph-ai" | ||
| Documentation = "https://hugegraph.apache.org/docs/quickstart/hugegraph-ai/" | ||
| "Bug Tracker" = "https://github.com/apache/incubator-hugegraph-ai/issues" |
| *.out | ||
| *.zip | ||
| *.tar.gz | ||
| hugegraph-llm/pyproject.toml |
Comment on lines
+74
to
+75
| requires = ["hatchling"] | ||
| build-backend = "hatchling.build" |
This was referenced May 14, 2025
imbajin
reviewed
May 19, 2025
Comment on lines
+46
to
+47
| uv venv llm1 | ||
| source llm1/bin/activate |
Member
There was a problem hiding this comment.
Suggested change
| uv venv llm1 | |
| source llm1/bin/activate | |
| uv venv && source .venv/bin/activate |
| 6. Start the gradio interactive demo of **Graph RAG**, you can run with the following command and open http://127.0.0.1:8001 after starting | ||
| ```bash | ||
| python -m hugegraph_llm.demo.rag_demo.app # same as "poetry run xxx" | ||
| python3 src/hugegraph_llm/demo/rag_demo/app.py # same as "poetry run xxx" |
imbajin
reviewed
May 20, 2025
| include = [ | ||
| "src/hugegraph_llm", | ||
| "README.md", | ||
| "LICENSE", |
imbajin
approved these changes
May 22, 2025
Member
imbajin
left a comment
There was a problem hiding this comment.
THX, next step is python-client & the whole project
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
1 Description
This PR migrates the dependency management in the hugegraph-llm project from Poetry to uv. uv is a high-performance Python package manager written in Rust that provides 10-100x performance improvement over Poetry.
2 Key Changes
[tool.poetry.dependencies]section and replaced it with the standard[project.dependencies]format inpyproject.toml.[tool.uv]section to configure PyPI sources, including multiple mirror repositories inpyproject.toml.poetry.locklockfile andsetup.py(as it's no longer needed with uv configuration).3 Detailed Setup Instructions
To set up the development environment with uv:
Install the uv tool:
curl -LsSf https://astral.sh/uv/install.sh | shCreate a virtual environment in the
incubator-hugegraph-ai/hugegraph-llmdirectory:Activate the virtual environment (if the activation script isn't executable, add execute permission):
source .venv/bin/activateInstall dependencies in development mode:
uv pip install -e .This change does not affect project functionality and only optimizes the dependency management and build process.
More information about Hatch build can be referred to Hatch
More information about uv can be referred to uv