Skip to content

Commit 52bd515

Browse files
committed
fix(ci): replace tomllib with poetry version --short for Python 3.10 compat
1 parent 9485694 commit 52bd515

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Check tag matches pyproject version
4848
run: |
49-
VERSION=$(python3 -c "import tomllib; d=tomllib.load(open('pyproject.toml','rb')); print(d['tool']['poetry']['version'])")
49+
VERSION=$(poetry version --short)
5050
TAG="${GITHUB_REF_NAME#v}"
5151
5252
echo "pyproject version: $VERSION"

.github/workflows/publish-testpypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747

4848
- name: Check tag matches pyproject version
4949
run: |
50-
VERSION=$(python3 -c "import tomllib; d=tomllib.load(open('pyproject.toml','rb')); print(d['tool']['poetry']['version'])")
50+
VERSION=$(poetry version --short)
5151
TAG="${GITHUB_REF_NAME#v}"
5252
5353
echo "pyproject version: $VERSION"

0 commit comments

Comments
 (0)