Skip to content

Commit 570a4dc

Browse files
committed
wip
1 parent 4b44f28 commit 570a4dc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
- name: Check package version
2424
run: |
2525
# Ensure the version in pyproject.toml is equivalent to the latest git tag
26-
# use import metadata to get version
27-
PACKAGE_VERSION=$(python -c "import importlib.metadata; print(importlib.metadata.version('structkit'))")
26+
# Read version from pyproject.toml
27+
PACKAGE_VERSION=$(python -c "import tomllib; f = open('pyproject.toml', 'rb'); data = tomllib.load(f); f.close(); print(data['project']['version'])")
2828
echo "Package version: $PACKAGE_VERSION"
2929
3030
# Go to github releases to get latest tag

0 commit comments

Comments
 (0)