Skip to content

Commit

Permalink
Hardcode the name of the package in release action to avoid needing s…
Browse files Browse the repository at this point in the history
…etuptools and invocation of setup.py

Per #254 (comment)

Closes #254
  • Loading branch information
yarikoptic committed Jan 17, 2024
1 parent 330e4e3 commit f551c13
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
pypi-token: ${{ secrets.PYPI_TOKEN }}
pre-tag: |
pip install setuptools # needed for setup.py --version
pkg="$(python setup.py --name)"
printf '__version__ = "%s"\n' "$new_version" > "$pkg"/version.py
git commit -m "Update __version__ to $new_version" "$pkg"/version.py
version_file=datalad_container/version.py
printf '__version__ = "%s"\n' "$new_version" > "$version_file"
git commit -m "Update __version__ to $new_version" "$version_file"
# vim:set et sts=2:

0 comments on commit f551c13

Please sign in to comment.