You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by ji...@apache.org on 2026/10/09 19:14:49 UTC
(hugegraph-ai) 01/01: chore: prepare ai 1.8.0 release
This is an automated email from the ASF dual-hosted git repository.
imbajin pushed a commit to branch release-ai-1.8.0
in repository https://gitbox.apache.org/repos/asf/hugegraph-ai.git
commit 56b538040d13a859c5bb57117b60eb8e23959724
Author: imbajin <ji...@apache.org>
AuthorDate: Sat Oct 10 03:11:36 2026 +0800
chore: prepare ai 1.8.0 release
- align AI, LLM and Python client versions
- include workspace metadata in Python source packages
- build release packages from Git archives in CI
- reduce duplicate CI runs and fix uv setup
- disable release tracing before credentials
---
.github/workflows/hugegraph-llm.yml | 4 +++
.github/workflows/hugegraph-python-client.yml | 14 +++++++--
.github/workflows/ruff.yml | 42 ++++++++++++++-------------
hugegraph-llm/pyproject.toml | 2 +-
hugegraph-python-client/pyproject.toml | 2 +-
pyproject.toml | 4 +--
scripts/apache-release.sh | 4 ++-
scripts/build_llm_image.sh | 2 +-
8 files changed, 46 insertions(+), 28 deletions(-)
diff --git a/.github/workflows/hugegraph-llm.yml b/.github/workflows/hugegraph-llm.yml
index f14bd567..0b260611 100644
--- a/.github/workflows/hugegraph-llm.yml
+++ b/.github/workflows/hugegraph-llm.yml
@@ -26,6 +26,10 @@ on:
- 'release-*'
pull_request:
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
permissions:
contents: read
diff --git a/.github/workflows/hugegraph-python-client.yml b/.github/workflows/hugegraph-python-client.yml
index ab8915f3..e94eb38f 100644
--- a/.github/workflows/hugegraph-python-client.yml
+++ b/.github/workflows/hugegraph-python-client.yml
@@ -7,6 +7,10 @@ on:
- 'release-*'
pull_request:
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
permissions:
contents: read
@@ -43,7 +47,7 @@ jobs:
with:
path: |
~/.cache/uv
- key: ${{ runner.os }}-uv-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}
+ key: ${{ runner.os }}-uv-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml', 'uv.lock') }}
restore-keys: |
${{ runner.os }}-uv-${{ matrix.python-version }}-
@@ -51,6 +55,12 @@ jobs:
run: |
uv sync --extra python-client --extra dev
+ - name: Build release packages from a source archive
+ run: |
+ archive_dir=$(mktemp -d)
+ git archive HEAD | tar -x -C "$archive_dir"
+ uv build --all-packages "$archive_dir" --out-dir "$archive_dir/dist"
+
- name: Run unit and contract tests
run: |
uv run pytest hugegraph-python-client/src/tests -m "unit or contract" --cov=pyhugegraph --cov-fail-under=45 --cov-report=term --cov-report=xml:client-unit-contract.xml -v --tb=short --durations=20
@@ -100,7 +110,7 @@ jobs:
with:
path: |
~/.cache/uv
- key: ${{ runner.os }}-uv-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}
+ key: ${{ runner.os }}-uv-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml', 'uv.lock') }}
restore-keys: |
${{ runner.os }}-uv-${{ matrix.python-version }}-
diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml
index 533ee420..f5311d91 100644
--- a/.github/workflows/ruff.yml
+++ b/.github/workflows/ruff.yml
@@ -7,39 +7,42 @@ on:
- "release-*"
pull_request:
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.run_id }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
permissions:
contents: read
+env:
+ UV_VERSION: "0.9.22"
+
jobs:
build:
runs-on: ubuntu-latest
- strategy:
- matrix:
- python-version: ["3.10", "3.11", "3.12"]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- - name: Setup Python ${{ matrix.python-version }}
- uses: actions/setup-python@v5
+ - name: Setup Python 3.11
+ uses: actions/setup-python@v6
with:
- python-version: ${{ matrix.python-version }}
+ python-version: "3.11"
- name: Install uv
run: |
- curl -LsSf https://astral.sh/uv/install.sh | sh
- echo "$HOME/.cargo/bin" >> $GITHUB_PATH
+ curl -LsSf "https://astral.sh/uv/${UV_VERSION}/install.sh" | sh
+ echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Cache dependencies
id: cache-deps
- uses: actions/cache@v4
+ uses: actions/cache@v5
with:
path: |
~/.cache/uv
- ~/.cache/pip
- key: ${{ runner.os }}-uv-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}
+ key: ${{ runner.os }}-uv-3.11-${{ hashFiles('**/pyproject.toml', 'uv.lock') }}
restore-keys: |
- ${{ runner.os }}-uv-${{ matrix.python-version }}-
+ ${{ runner.os }}-uv-3.11-
- name: Install dev dependencies
run: |
@@ -60,26 +63,25 @@ jobs:
python-version: ["3.10", "3.11"] # hugegraph-llm requires <3.12
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Setup Python ${{ matrix.python-version }}
- uses: actions/setup-python@v5
+ uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: |
- curl -LsSf https://astral.sh/uv/install.sh | sh
- echo "$HOME/.cargo/bin" >> $GITHUB_PATH
+ curl -LsSf "https://astral.sh/uv/${UV_VERSION}/install.sh" | sh
+ echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Cache dependencies
id: cache-deps
- uses: actions/cache@v4
+ uses: actions/cache@v5
with:
path: |
~/.cache/uv
- ~/.cache/pip
- key: ${{ runner.os }}-uv-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}
+ key: ${{ runner.os }}-uv-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml', 'uv.lock') }}
restore-keys: |
${{ runner.os }}-uv-${{ matrix.python-version }}-
diff --git a/hugegraph-llm/pyproject.toml b/hugegraph-llm/pyproject.toml
index 900e4389..c649e801 100644
--- a/hugegraph-llm/pyproject.toml
+++ b/hugegraph-llm/pyproject.toml
@@ -17,7 +17,7 @@
[project]
name = "hugegraph-llm"
-version = "1.7.0"
+version = "1.8.0"
description = "A tool for the implementation and research related to large language models."
authors = [
{ name = "Apache HugeGraph Contributors", email = "dev@hugegraph.apache.org" },
diff --git a/hugegraph-python-client/pyproject.toml b/hugegraph-python-client/pyproject.toml
index 3d1d9335..9cc9134e 100644
--- a/hugegraph-python-client/pyproject.toml
+++ b/hugegraph-python-client/pyproject.toml
@@ -17,7 +17,7 @@
[project]
name = "hugegraph-python"
-version = "1.7.1"
+version = "1.8.0"
description = "A Python SDK for Apache HugeGraph Database."
authors = [
{ name = "Apache HugeGraph Contributors", email = "dev@hugegraph.apache.org" },
diff --git a/pyproject.toml b/pyproject.toml
index 8cfb2d37..b0c41150 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -17,7 +17,7 @@
[project]
name = "hugegraph-ai"
-version = "1.7.0"
+version = "1.8.0"
description = "A repository for AI-related projects for Apache HugeGraph."
authors = [
{ name = "Apache HugeGraph Contributors", email = "dev@hugegraph.apache.org" },
@@ -82,7 +82,7 @@ packages = [
]
[tool.hatch.build.targets.sdist]
-include = ["*/src", "README.md", "LICENSE", "NOTICE"]
+include = ["*/src", "*/pyproject.toml", "*/README.md", "*/LICENSE", "*/NOTICE", "README.md", "LICENSE", "NOTICE"]
[tool.uv.sources]
hugegraph-llm = { workspace = true }
diff --git a/scripts/apache-release.sh b/scripts/apache-release.sh
index e4664bd0..f3b3cc39 100755
--- a/scripts/apache-release.sh
+++ b/scripts/apache-release.sh
@@ -17,7 +17,9 @@
#
# if we don't want to exit after '|', remove "-o pipefail"
-set -exo pipefail
+# Do not trace commands: positional arguments can contain SVN credentials.
+set +x
+set -eo pipefail
GROUP="hugegraph"
# current repository name
diff --git a/scripts/build_llm_image.sh b/scripts/build_llm_image.sh
index 7425b3df..3f8c203b 100755
--- a/scripts/build_llm_image.sh
+++ b/scripts/build_llm_image.sh
@@ -18,7 +18,7 @@
set -e
-tag="1.7.0"
+tag="1.8.0"
script_dir=$(realpath "$(dirname "$0")")