Skip to content

Commit ac9beae

Browse files
authored
Merge pull request #190 from fustom/codex/fix-pypi-release-version
fix: align package version with release tag
2 parents cd40ada + 4bdb339 commit ac9beae

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

‎.github/workflows/python-publish.yml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,21 @@ jobs:
2626
uses: actions/setup-python@v3
2727
with:
2828
python-version: '3.x'
29+
- name: Verify package version matches release tag
30+
run: |
31+
python - <<'PY'
32+
import os
33+
import tomllib
34+
35+
with open("pyproject.toml", "rb") as pyproject_file:
36+
package_version = tomllib.load(pyproject_file)["project"]["version"]
37+
38+
release_version = os.environ["GITHUB_REF_NAME"]
39+
if package_version != release_version:
40+
raise SystemExit(
41+
f"Package version {package_version} does not match release tag {release_version}"
42+
)
43+
PY
2944
- name: Install dependencies
3045
run: |
3146
python -m pip install --upgrade pip

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies = [
1414
]
1515
requires-python = ">=3.11"
1616
license = { file = "LICENSE" }
17-
version = "0.19.9"
17+
version = "0.19.10"
1818
dynamic = ['description']
1919

2020
[project.urls]

0 commit comments

Comments
 (0)