Skip to content

refactor: use uv in client & ml modules & adapter the CI#257

Merged
imbajin merged 8 commits intoapache:mainfrom
cgwer:uv-for-hg-python-client
Jun 11, 2025
Merged

refactor: use uv in client & ml modules & adapter the CI#257
imbajin merged 8 commits intoapache:mainfrom
cgwer:uv-for-hg-python-client

Conversation

@cgwer
Copy link
Copy Markdown
Contributor

@cgwer cgwer commented May 26, 2025

No description provided.

@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label May 26, 2025
@dosubot dosubot Bot added the dependencies Pull requests that update a dependency file label May 26, 2025
@github-actions github-actions Bot added the ml label Jun 9, 2025
@imbajin imbajin requested a review from Copilot June 9, 2025 10:25
@imbajin imbajin force-pushed the uv-for-hg-python-client branch from 7379f31 to 1dd9614 Compare June 9, 2025 10:27
@github-actions github-actions Bot added the llm label Jun 9, 2025
@imbajin imbajin force-pushed the uv-for-hg-python-client branch from 1dd9614 to e3602b0 Compare June 9, 2025 10:41
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.txt and add pyproject.toml for hugegraph-python-client and hugegraph-ml
  • Update README install commands to use uv venv and uv pip install
  • Adjust GitHub Actions to install via uv pip install and cache on pyproject.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 uv CLI commands are introduced without explaining how to install or configure uv. Consider adding a brief note or link to the uv installation instructions.
```bash
uv pip install hugegraph-python # Note: may not the latest version, recommend to install from source
</details>

Comment thread hugegraph-python-client/README.md
@imbajin imbajin changed the title Uv for hg python client refactor: use uv in client & ml modules & adapter the CI Jun 9, 2025
Copy link
Copy Markdown
Member

@imbajin imbajin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: we need update the doc & only create the .venv in root dir

@imbajin imbajin merged commit 6ea1102 into apache:main Jun 11, 2025
9 of 10 checks passed
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file lgtm This PR has been approved by a maintainer llm ml python-client size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants