Skip to content

Commit 87b5187

Browse files
committed
Update publish.yml
1 parent daba24d commit 87b5187

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Extract version from setup.py
2222
id: get_version
2323
run: |
24-
VERSION=$(python -c "import setuptools; exec(open('setup.py').read()); print(setuptools.setup_keywords['version'])")
24+
VERSION=$(grep -oP '(?<=version=")[^\"]+' setup.py)
2525
echo "version=$VERSION" >> $GITHUB_OUTPUT
2626
echo "Package version: $VERSION"
2727

0 commit comments

Comments
 (0)