Skip to content

Commit 4b4adf3

Browse files
committed
ci(release): fixup ModuleNotFoundError error in release workflow
1 parent c88bf95 commit 4b4adf3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ jobs:
3030
- uses: actions/checkout@v3
3131
- name: Install
3232
run: |
33-
PKGNAME=$(python setup.py --name)
34-
VERSION=$(python setup.py --version)
35-
while true; do python -m pip install $PKGNAME==$VERSION && break || sleep 5; done
33+
PROJECT=$(shell python3 -c "from xkits_command.attribute import __project__; print(__project__)")
34+
VERSION=$(shell python3 -c "from xkits_command.attribute import __version__; print(__version__)")
35+
while true; do python -m pip install $PROJECT==$VERSION && break || sleep 5; done

0 commit comments

Comments
 (0)