You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hugegraph.apache.org by "returnToInnocence (via GitHub)" <gi...@apache.org> on 2025/04/08 09:11:49 UTC
[PR] chore(hg-llm): use uv instead poetry [incubator-hugegraph-ai]
returnToInnocence opened a new pull request, #206:
URL: https://github.com/apache/incubator-hugegraph-ai/pull/206
# chore(hg-llm): use uv instead poetry
## PR 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.
### Key Changes
- **Dependency Management**: Removed `[tool.poetry.dependencies]` section and replaced it with the standard `[project.dependencies]` format
- **Package Index Configuration**: Added `[tool.uv]` section to configure PyPI sources, including multiple mirror repositories
- **Build System**: Switched from Poetry's build system to Hatchling, updating the `requires` and `build-backend` fields accordingly
- **Local Dependencies**: Used Hatch for managing local path dependencies, maintaining development integration with hugegraph-python-client
- **Removed Files**: Deleted the `poetry.lock` lockfile
### Detailed Setup Instructions
To set up the development environment with uv:
1. **Install the uv tool**:
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
```
2. **Create a virtual environment in the incubator-hugegraph-ai/hugegraph-llm directory**:
```bash
cd incubator-hugegraph-ai/hugegraph-llm
uv venv .venv-hg-llm # The name .venv-hg-llm can be customized
```
3. **Activate the virtual environment** (if the activation script isn't executable, add execute permission):
```bash
source .venv-hg-llm/bin/activate
# If not executable, run: chmod +x .venv-hg-llm/bin/activate
```
4. **Install dependencies in development mode**:
```bash
uv pip install -e .
```
This change does not affect project functionality and only optimizes the dependency management and build process.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [PR] chore(hg-llm): use uv instead poetry [incubator-hugegraph-ai]
Posted by "returnToInnocence (via GitHub)" <gi...@apache.org>.
returnToInnocence closed pull request #206: chore(hg-llm): use uv instead poetry
URL: https://github.com/apache/incubator-hugegraph-ai/pull/206
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org