Skip to content

Commit

Permalink
This should fix the regex issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjacobson95 committed Dec 6, 2023
1 parent c2dd142 commit 51f2403
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,9 @@ jobs:
if [ "$CURRENT_VERSION" == "$HIGHER_VERSION" ]; then
IFS='.' read -r -a VERSION_PARTS <<< "$CURRENT_VERSION"
PATCH=$((VERSION_PARTS[2] + 1))
NEW_VERSION=$(python -c "from packaging.version import parse as parse_version; \
print(max(parse_version('$CURRENT_VERSION'), parse_version('$LATEST_TAG')))")
echo "New version: $NEW_VERSION"
sed -i "s/version='[0-9]\+\.[0-9]\+\.[0-9]\+'/version='$NEW_VERSION'/" setup.py
# sed -i "s/version='\([0-9]\+\.[0-9]\+\.\)[0-9]\+'/'version='\1$PATCH'/" setup.py
NEW_VERSION="${VERSION_PARTS[0]}.${VERSION_PARTS[1]}.$PATCH"
echo "Incremented version: $NEW_VERSION"
sed -i "s/version='\([0-9]\+\.[0-9]\+\.\)[0-9]\+'/version='\1$PATCH'/" setup.py
# Commit and push the updated setup.py
git config --local user.email "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='coderdata',
'version='0.1.4',
version='0.1.4',
author='Jeremy Jacobson',
author_email='[email protected]',
description='A package to download, load, and process multiple benchmark multi-omic drug response datasets',
Expand Down

0 comments on commit 51f2403

Please sign in to comment.