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 f5b0d08 commit d179f5dCopy full SHA for d179f5d
1 file changed
.github/workflows/publish.yml
@@ -32,11 +32,14 @@ jobs:
32
- name: Install dependencies
33
run: |
34
python -m pip install --upgrade pip
35
- pip install build twine toml
+ # 🔑 FIX: Install 'tomli' instead of 'toml' for robust TOML parsing
36
+ pip install build twine tomli
37
38
- name: Verify package version
39
- PACKAGE_VERSION=$(python -c "import toml; print(toml.load(open('pyproject.toml'))['project']['version'])")
40
+ # 🔑 FIX: Use 'tomli' (installed above) to read pyproject.toml in binary mode
41
+ PACKAGE_VERSION=$(python -c "import tomli; print(tomli.load(open('pyproject.toml', 'rb'))['project']['version'])")
42
+
43
TAG_VERSION="${{ github.ref_name }}"
44
45
# Remove 'v' prefix if it exists from the tag name
0 commit comments