refactor: use uv in client & ml modules & adapter the CI#257
Merged
imbajin merged 8 commits intoapache:mainfrom Jun 11, 2025
Merged
refactor: use uv in client & ml modules & adapter the CI#257imbajin merged 8 commits intoapache:mainfrom
imbajin merged 8 commits intoapache:mainfrom
Conversation
7379f31 to
1dd9614
Compare
1dd9614 to
e3602b0
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR migrates the Python client and ML modules to use uv tooling with pyproject.toml-based builds, removes legacy setup.py/requirements.txt, and updates installation instructions and CI workflows.
- Remove
setup.py/requirements.txtand addpyproject.tomlforhugegraph-python-clientandhugegraph-ml - Update README install commands to use
uv venvanduv pip install - Adjust GitHub Actions to install via
uv pip installand cache onpyproject.toml
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| hugegraph-python-client/setup.py | Removed legacy setuptools build |
| hugegraph-python-client/requirements.txt | Removed hardcoded dependencies |
| hugegraph-python-client/pyproject.toml | Added project metadata, dependencies, and build configuration |
| hugegraph-python-client/README.md | Switched install commands to uv, clarified description |
| hugegraph-ml/setup.py | Removed legacy setuptools build |
| hugegraph-ml/requirements.txt | Removed hardcoded dependencies |
| hugegraph-ml/pyproject.toml | Added project metadata, dependencies, hatchling build config |
| hugegraph-ml/README.md | Updated setup instructions to use uv and venv |
| hugegraph-llm/pyproject.toml | Renamed dependency from hugegraph-python to hugegraph-python-client |
| .github/workflows/pylint.yml | Install modules via uv pip install and cache on pyproject.toml |
| .github/workflows/hugegraph-python-client.yml | Install via uv pip install and updated cache key |
Comments suppressed due to low confidence (2)
hugegraph-python-client/README.md:171
- The Markdown link syntax is incorrect. It should be written as
[java-client-doc](https://hugegraph.apache.org/docs/clients/hugegraph-client/).
Other info is under 🚧 (Welcome to add more docs for it, users could refer [java-client-doc]([url](https://hugegraph.apache.org/docs/clients/hugegraph-client/)) for similar usage)
hugegraph-python-client/README.md:11
- [nitpick] The
uvCLI commands are introduced without explaining how to install or configureuv. Consider adding a brief note or link to theuvinstallation instructions.
```bash
uv pip install hugegraph-python # Note: may not the latest version, recommend to install from source
</details>
imbajin
approved these changes
Jun 11, 2025
Member
imbajin
left a comment
There was a problem hiding this comment.
TODO: we need update the doc & only create the .venv in root dir
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.
No description provided.