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 (