From f52d17e7001ba7cae90a900f672a2c8a712a4a1a Mon Sep 17 00:00:00 2001 From: sabjorn Date: Mon, 19 May 2025 13:32:09 -0700 Subject: [PATCH 1/2] change version number in pyproject.toml to 9.9.9 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 70f530c..107a021 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "numpysocket" -version = "2.0.1" +version = "9.9.9" description = "Socket.Socket Subclass for Sending Numpy Arrays" readme = "README.md" authors = [ From 08796e3b4aeda76b011c5bbccd387278749b4002 Mon Sep 17 00:00:00 2001 From: sabjorn Date: Mon, 19 May 2025 13:36:44 -0700 Subject: [PATCH 2/2] update CI publish step to get the version number from release tag --- .github/workflows/python-publish.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index ed46166..1194ecb 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -24,7 +24,20 @@ jobs: - name: Install uv run: pip install uv + + - name: Extract version from release tag + run: | + TAG_NAME=${GITHUB_REF#refs/tags/} + VERSION=${TAG_NAME#v} + echo "VERSION=$VERSION" >> $GITHUB_ENV + echo "Extracted version: $VERSION" + - name: Update version in pyproject.toml + run: | + sed -i "s/version = \"[0-9]*\.[0-9]*\.[0-9]*\"/version = \"$VERSION\"/" pyproject.toml + echo "Updated pyproject.toml with version $VERSION" + cat pyproject.toml | grep version + - name: Build package run: uv build