From 8d9c1770d860a1bb78d2eed890d20697337816fe Mon Sep 17 00:00:00 2001 From: zongz Date: Mon, 9 Dec 2024 10:27:03 +0800 Subject: [PATCH 1/3] fix: fix python lib release Signed-off-by: zongz --- python/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pyproject.toml b/python/pyproject.toml index 108069e7..1fedd18c 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -4,13 +4,13 @@ build-backend = "maturin" [project] name = "kcl_lib" +version = "0.11.0-alpha.1" requires-python = ">=3.7" classifiers = [ "Programming Language :: Rust", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ] -dynamic = ["version"] description = "KCL Programming Language Python Lib" license = { text = "Apache-2.0" } From 4ca814c1baa154ec5c484cb4ef0c196a0661516b Mon Sep 17 00:00:00 2001 From: zongz Date: Mon, 9 Dec 2024 10:29:51 +0800 Subject: [PATCH 2/3] fix: add a manual trigger for python release Signed-off-by: zongz --- .github/workflows/python-test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-test.yaml b/.github/workflows/python-test.yaml index 9f48ae55..db8d3709 100644 --- a/.github/workflows/python-test.yaml +++ b/.github/workflows/python-test.yaml @@ -99,7 +99,7 @@ jobs: release: name: Release runs-on: ubuntu-latest - if: "startsWith(github.ref, 'refs/tags/')" + if: "startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'" permissions: contents: read id-token: write @@ -114,4 +114,4 @@ jobs: with: password: ${{ secrets.PYPI_API_TOKEN }} skip-existing: true - packages-dir: python/dist + packages-dir: python/dist \ No newline at end of file From a507d2d9d71c73e3364d08fe7d15770ce9e9caca Mon Sep 17 00:00:00 2001 From: zongz Date: Mon, 9 Dec 2024 10:31:29 +0800 Subject: [PATCH 3/3] fix: rm useless newline Signed-off-by: zongz --- .github/workflows/python-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yaml b/.github/workflows/python-test.yaml index db8d3709..15ba52f4 100644 --- a/.github/workflows/python-test.yaml +++ b/.github/workflows/python-test.yaml @@ -114,4 +114,4 @@ jobs: with: password: ${{ secrets.PYPI_API_TOKEN }} skip-existing: true - packages-dir: python/dist \ No newline at end of file + packages-dir: python/dist