diff --git a/.github/workflows/pypi-gpu.yml b/.github/workflows/pypi-gpu.yml index e0f80512b..67cbec8b4 100644 --- a/.github/workflows/pypi-gpu.yml +++ b/.github/workflows/pypi-gpu.yml @@ -34,6 +34,7 @@ jobs: run: | mv pyproject.toml pyproject.toml.orig sed "s/ezkl/ezkl-gpu/" pyproject.toml.orig >pyproject.toml + sed "s/0\\.0\\.0/${RELEASE_TAG//v}/" pyproject.toml.orig >pyproject.toml - uses: actions-rs/toolchain@v1 with: diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index fe9168f09..7806e8342 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -233,6 +233,14 @@ jobs: python-version: 3.12 architecture: x64 + - name: Set pyproject.toml version to match github tag + shell: bash + env: + RELEASE_TAG: ${{ github.ref_name }} + run: | + mv pyproject.toml pyproject.toml.orig + sed "s/0\\.0\\.0/${RELEASE_TAG//v}/" pyproject.toml.orig >pyproject.toml + - name: Set Cargo.toml version to match github tag shell: bash env: @@ -242,7 +250,6 @@ jobs: sed "s/0\\.0\\.0/${RELEASE_TAG//v}/" Cargo.toml.orig >Cargo.toml mv Cargo.lock Cargo.lock.orig sed "s/0\\.0\\.0/${RELEASE_TAG//v}/" Cargo.lock.orig >Cargo.lock - - name: Install required libraries shell: bash run: | diff --git a/pyproject.toml b/pyproject.toml index b880c3ece..0e96d41c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,6 +12,7 @@ asyncio_mode = "auto" [project] name = "ezkl" +version = "0.0.0" requires-python = ">=3.7" classifiers = [ "Programming Language :: Rust",