diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b8058706b4..6b72a202eb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,15 @@ jobs: env: TAG: ${{ github.event.release.tag_name }} run: | - PKG_VERSION=$(uv run --no-sync python -c "from unstructured.__version__ import __version__; print(__version__)") + PKG_VERSION=$(uv run --script - <<'PYEOF' + # /// script + # requires-python = ">=3.11" + # dependencies = ["typing-extensions", "requests"] + # /// + from unstructured.__version__ import __version__ + print(__version__) + PYEOF + ) if [[ "$TAG" != "$PKG_VERSION" && "$TAG" != "v$PKG_VERSION" ]]; then echo "Tag '$TAG' does not match package version '$PKG_VERSION'" exit 1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 0835f38fbc..2db8354b37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.22.6 + +### Fixes +* Self-contained script for version extraction in release CI + ## 0.22.5 ### Fixes diff --git a/unstructured/__version__.py b/unstructured/__version__.py index 91491a0b68..81994eb128 100644 --- a/unstructured/__version__.py +++ b/unstructured/__version__.py @@ -1 +1 @@ -__version__ = "0.22.5" # pragma: no cover +__version__ = "0.22.6" # pragma: no cover