Skip to content

Commit

Permalink
Merge pull request #81 from skyflowapi/release/23.6.1
Browse files Browse the repository at this point in the history
SK-734 updated path of version.py
  • Loading branch information
skyflow-bharti authored Jun 7, 2023
2 parents 44a9964 + 879dc39 commit a1d17ce
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- "setup.py"
- "*.yml"
- "*.md"
- "version.py"
- "skyflow/version.py"

jobs:
build-and-deploy:
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
git config user.name ${{ github.actor }}
git config user.email ${{ github.actor }}@users.noreply.github.com
git add setup.py
git add version.py
git add skyflow/version.py
git commit -m "[AUTOMATED] Public Release - ${{ steps.previoustag.outputs.tag }}"
git push origin
Expand Down
4 changes: 2 additions & 2 deletions ci-scripts/bump_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ then
echo "Bumping package version to $1"

sed -E "s/current_version = .+/current_version = \'$SEMVER\'/g" setup.py > tempfile && cat tempfile > setup.py && rm -f tempfile
sed -E "s/SDK_VERSION = .+/SDK_VERSION = \'$SEMVER\'/g" version.py > tempfile && cat tempfile > version.py && rm -f tempfile
sed -E "s/SDK_VERSION = .+/SDK_VERSION = \'$SEMVER\'/g" skyflow/version.py > tempfile && cat tempfile > skyflow/version.py && rm -f tempfile

echo --------------------------
echo "Done, Package now at $1"
Expand All @@ -15,7 +15,7 @@ else
echo "Bumping package version to $1-dev.$2"

sed -E "s/current_version = .+/current_version = \'$SEMVER-dev.$2\'/g" setup.py > tempfile && cat tempfile > setup.py && rm -f tempfile
sed -E "s/SDK_VERSION = .+/SDK_VERSION = \'$SEMVER-dev.$2\'/g" version.py > tempfile && cat tempfile > version.py && rm -f tempfile
sed -E "s/SDK_VERSION = .+/SDK_VERSION = \'$SEMVER-dev.$2\'/g" skyflow/version.py > tempfile && cat tempfile > skyflow/version.py && rm -f tempfile

echo --------------------------
echo "Done, Package now at $1-dev.$2"
Expand Down
2 changes: 1 addition & 1 deletion skyflow/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from enum import Enum
import platform
import sys
from version import SDK_VERSION
from skyflow.version import SDK_VERSION

skyflowLog = logging.getLogger('skyflow')
skyflowLog.setLevel(logging.ERROR)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/vault/test_url_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import unittest
from unittest import mock
from skyflow._utils import http_build_query, getMetrics
from version import SDK_VERSION
from skyflow.version import SDK_VERSION

class TestUrlEncoder(unittest.TestCase):
def setUp(self) -> None:
Expand Down

0 comments on commit a1d17ce

Please sign in to comment.