We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 298315a commit 221dc2eCopy full SHA for 221dc2e
.github/workflows/publish-to-pypi.yml
@@ -59,13 +59,13 @@ jobs:
59
60
# Extract version from pyproject.toml [tool.poetry] section
61
PACKAGE_VERSION=$(python << 'EOF'
62
+import tomllib
63
- import tomllib
64
- with open('pyproject.toml', 'rb') as f:
65
- data = tomllib.load(f)
66
- version = data['tool']['poetry']['version']
67
- print(version)
68
- EOF
+with open('pyproject.toml', 'rb') as f:
+ data = tomllib.load(f)
+ version = data['tool']['poetry']['version']
+ print(version)
+EOF
69
)
70
echo "Release tag version: $TAG_VERSION"
71
echo "Package version: $PACKAGE_VERSION"
0 commit comments