diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e87b00f..5fcd5db 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: - "setup.py" - "*.yml" - "*.md" - - "version.py" + - "skyflow/version.py" jobs: build-and-deploy: @@ -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 diff --git a/ci-scripts/bump_version.sh b/ci-scripts/bump_version.sh index 5f02750..b0a57a9 100755 --- a/ci-scripts/bump_version.sh +++ b/ci-scripts/bump_version.sh @@ -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" @@ -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" diff --git a/skyflow/_utils.py b/skyflow/_utils.py index 39d7e6d..1c56830 100644 --- a/skyflow/_utils.py +++ b/skyflow/_utils.py @@ -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) diff --git a/version.py b/skyflow/version.py similarity index 100% rename from version.py rename to skyflow/version.py diff --git a/tests/vault/test_url_encoder.py b/tests/vault/test_url_encoder.py index 9afdf51..1e4c844 100644 --- a/tests/vault/test_url_encoder.py +++ b/tests/vault/test_url_encoder.py @@ -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: