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 8bc15e4 commit 879f4b5Copy full SHA for 879f4b5
.github/workflows/release.yml
@@ -233,7 +233,8 @@ jobs:
233
id: get_version
234
run: |
235
# Read the __version__ variable from the generated _version.py
236
- VERSION=$(python -c "import _version; print(_version.__version__)")
+ # Add current directory to PYTHONPATH to allow importing _version.py
237
+ VERSION=$(PYTHONPATH=. python -c "import _version; print(_version.__version__)")
238
# Remove leading 'v' if present (e.g., v1.0.0 -> 1.0.0)
239
VERSION="${VERSION#v}"
240
# Extract major version (e.g., 1.0.0 -> 1)
0 commit comments