We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b44f28 commit 570a4dcCopy full SHA for 570a4dc
1 file changed
.github/workflows/publish-pypi.yml
@@ -23,8 +23,8 @@ jobs:
23
- name: Check package version
24
run: |
25
# 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'))")
+ # Read version from pyproject.toml
+ PACKAGE_VERSION=$(python -c "import tomllib; f = open('pyproject.toml', 'rb'); data = tomllib.load(f); f.close(); print(data['project']['version'])")
28
echo "Package version: $PACKAGE_VERSION"
29
30
# Go to github releases to get latest tag
0 commit comments