From 9d3acb278994e31303a615da82ee42a444b006a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E7=9D=BF?= Date: Fri, 3 Apr 2026 20:46:26 +0800 Subject: [PATCH] feat(v2.2.2): update tag --- .github/workflows/python-publish.yml | 11 +++++++++++ src/excelalchemy/__init__.py | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index ad34640..4eea414 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -38,6 +38,17 @@ jobs: rm -rf dist uv build + - name: Verify release tag matches package version + env: + RELEASE_TAG: ${{ github.event.release.tag_name }} + run: | + PACKAGE_VERSION="$(uv run python -c "import excelalchemy; print(excelalchemy.__version__)")" + NORMALIZED_TAG="${RELEASE_TAG#v}" + if [ "$PACKAGE_VERSION" != "$NORMALIZED_TAG" ]; then + echo "Release tag ($RELEASE_TAG) does not match excelalchemy.__version__ ($PACKAGE_VERSION)" + exit 1 + fi + - name: Check package metadata run: uvx twine check dist/* diff --git a/src/excelalchemy/__init__.py b/src/excelalchemy/__init__.py index fed870b..5a0d9ea 100644 --- a/src/excelalchemy/__init__.py +++ b/src/excelalchemy/__init__.py @@ -1,6 +1,6 @@ """A Python Library for Reading and Writing Excel Files""" -__version__ = '2.1.0' +__version__ = '2.2.0' from excelalchemy._primitives.constants import CharacterSet, DataRangeOption, DateFormat, Option from excelalchemy._primitives.deprecation import ExcelAlchemyDeprecationWarning from excelalchemy._primitives.identity import (