File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737 env :
3838 TAG : ${{ github.event.release.tag_name }}
3939 run : |
40- PKG_VERSION=$(uv run --no-sync python -c "from unstructured.__version__ import __version__; print(__version__)")
40+ PKG_VERSION=$(uv run --script - <<'PYEOF'
41+ # /// script
42+ # requires-python = ">=3.11"
43+ # dependencies = ["typing-extensions", "requests"]
44+ # ///
45+ from unstructured.__version__ import __version__
46+ print(__version__)
47+ PYEOF
48+ )
4149 if [[ "$TAG" != "$PKG_VERSION" && "$TAG" != "v$PKG_VERSION" ]]; then
4250 echo "Tag '$TAG' does not match package version '$PKG_VERSION'"
4351 exit 1
Original file line number Diff line number Diff line change 1+ ## 0.22.6
2+
3+ ### Fixes
4+ * Self-contained script for version extraction in release CI
5+
16## 0.22.5
27
38### Fixes
Original file line number Diff line number Diff line change 1- __version__ = "0.22.5 " # pragma: no cover
1+ __version__ = "0.22.6 " # pragma: no cover
You can’t perform that action at this time.
0 commit comments