Skip to content

Commit

Permalink
change pyproject.toml and setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pritamd47 committed May 2, 2023
1 parent fa6539b commit c092c7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/python-package-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,19 @@ jobs:
# from refs/tags/v1.2.3 get 1.2.3
VERSION=$(echo $GITHUB_REF | sed 's#.*/##')
PLACEHOLDER='version = \"develop\"'
VERSION_FILE='setup.py'
VERSION_FILE1='setup.py'
VERSION_FILE2='setup.py'
echo "VERSION=$VERSION"
echo "PLACEHOLDER=$PLACEHOLDER"
echo "VERSION_FILE=$VERSION_FILE"
echo "VERSION_FILE1=$VERSION_FILE1"
echo "VERSION_FILE2=$VERSION_FILE2"
# ensure the placeholder is there. If grep doesn't find the placeholder
# it exits with exit code 1 and github actions aborts the build.
grep "$PLACEHOLDER" "$VERSION_FILE"
sed -i "s/$PLACEHOLDER/version = \"${VERSION}\"/g" "$VERSION_FILE"
sed -i "s/$PLACEHOLDER/version = \"${VERSION}\"/g" "$VERSION_FILE1"
sed -i "s/$PLACEHOLDER/version = \"${VERSION}\"/g" "$VERSION_FILE2"
shell: bash
- name: Build a binary wheel and a source tarball
run: >-
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "rat"
version = "3.0.0.alpha.4"
version = "develop"
authors = [
{ name="Pritam Das", email="pdas47@uw.edu" },
{ name="Sanchit Minocha", email="msanchit@uw.edu" },
Expand Down

0 comments on commit c092c7e

Please sign in to comment.