From 93078f8231b3edbf8845e13fa0da2292cb92393f Mon Sep 17 00:00:00 2001 From: yyj Date: Thu, 25 Jun 2026 22:18:05 +0800 Subject: [PATCH 1/2] ci(release-pypi): set up Python in publish-pypi job (fixes PEP 668) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The publish-pypi job ran ``pip install --upgrade pip && pip install twine`` against the system Python on the self-hosted runner. On Ubuntu 22.04+ (PEP 668 / EXTERNALLY-MANAGED) this fails with ``error: externally-managed-environment``, e.g. run 28170902392. Add ``actions/setup-python@v4`` — the same step the build-kt-kernel and build-and-publish-sglang-kt jobs already use — so pip operates against the tool-cache Python instead of the system one. Validated end-to-end on yyj6666667/ktransformers run 28175402103: all four jobs (sglang-kt build+publish, two kt-kernel build matrix entries, publish-pypi) finished green, ``twine upload --skip-existing`` correctly skipped the already-published v0.6.3 wheels. --- .github/workflows/release-pypi.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml index eeae33f75..6cf8abe62 100644 --- a/.github/workflows/release-pypi.yml +++ b/.github/workflows/release-pypi.yml @@ -197,6 +197,11 @@ jobs: with: path: artifacts/ + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.12' + - name: Organize wheels into dist/ run: | mkdir -p dist/ From 99cf022b0add1980358f380eafa38171b6495709 Mon Sep 17 00:00:00 2001 From: yyj Date: Thu, 25 Jun 2026 22:38:00 +0800 Subject: [PATCH 2/2] release: bump version to 0.6.3.post1 --- version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.py b/version.py index 874c52b8c..2769b1602 100644 --- a/version.py +++ b/version.py @@ -3,4 +3,4 @@ Shared across the top-level package and kt-kernel. """ -__version__ = "0.6.3" +__version__ = "0.6.3.post1"