Skip to content

Commit 05ee5e7

Browse files
committed
Open in binary mode
1 parent aaddc4d commit 05ee5e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Verify tag matches pyproject.toml version
2121
run: |
2222
TAG="${GITHUB_REF#refs/tags/v}"
23-
FILE_VER=$(python -c "import tomli;print(tomli.load(open('pyproject.toml', 'r', encoding='utf-8'))['project']['version'])")
23+
FILE_VER=$(python -c "import tomli;print(tomli.load(open('pyproject.toml', 'rb'))['project']['version'])")
2424
[ "$TAG" = "$FILE_VER" ] || { echo "Tag $TAG != pyproject $FILE_VER"; exit 1; }
2525
- name: Build dists
2626
run: python -m build

0 commit comments

Comments
 (0)