Skip to content

Commit

Permalink
Merge branch 'master' of github.com:GrafeasGroup/Bubbles-V1
Browse files Browse the repository at this point in the history
  • Loading branch information
itsthejoker committed Aug 24, 2022
2 parents e75adb1 + ab8994c commit 0e4d05f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bubbles/commands/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
)


# the actual command that you run on the server to get the right version
PYTHON_VERSION = "python3.10"


class DeployError(Exception):
pass

Expand All @@ -23,7 +27,7 @@ def _deploy_service(service: str, payload: dict) -> None:
def check_for_new_version() -> dict:
StatusMessage.add_new_context_step("Checking for new release...")

output = subprocess.check_output(shlex.split(f"./{service}.pyz --version"))
output = subprocess.check_output(shlex.split(f"{PYTHON_VERSION} {service}.pyz --version"))
# starting from something like b'BubblesV2, version ?????\n'
current_version = output.decode().strip().split(", ")[-1].split()[-1]
github_response = requests.get(
Expand Down Expand Up @@ -66,7 +70,7 @@ def test_new_archive(new_archive):
StatusMessage.add_new_context_step("Validating new release...")

result = subprocess.run(
shlex.split(f"sh -c 'python3.10 {str(new_archive)} selfcheck'"),
shlex.split(f"sh -c '{PYTHON_VERSION} {str(new_archive)} selfcheck'"),
stdout=subprocess.DEVNULL,
)
if result.returncode != 0:
Expand Down

0 comments on commit 0e4d05f

Please sign in to comment.