Skip to content

Commit

Permalink
Changed version to 2.0.0-alpha (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-astus authored Nov 28, 2023
1 parent cbde767 commit 501185e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/snowcli/__about__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from __future__ import annotations

VERSION = "2.0.0-dev"
VERSION = "2.0.0-alpha.1"
12 changes: 10 additions & 2 deletions tests_e2e/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import tempfile
from pathlib import Path
from tempfile import TemporaryDirectory
from typing import List

import pytest
from snowcli import __about__
Expand Down Expand Up @@ -60,14 +61,14 @@ def _build_snowcli(venv_path: Path, test_root_path: Path) -> None:
def _install_snowcli_with_external_plugin(
venv_path: Path, test_root_path: Path
) -> None:
version = __about__.VERSION.replace("-", ".")
whl_file = _find_whl_file(os.listdir(test_root_path / f"../dist/"))
subprocess.check_call(
[
_python_path(venv_path),
"-m",
"pip",
"install",
test_root_path / f"../dist/snowflake_cli_labs-{version}0-py3-none-any.whl",
test_root_path / f"../dist/{whl_file}",
]
)
subprocess.check_call(
Expand All @@ -86,3 +87,10 @@ def _install_snowcli_with_external_plugin(

def _python_path(venv_path: Path) -> Path:
return venv_path / "bin" / "python"


def _find_whl_file(files: List[str]) -> str:
for file in files:
if file.endswith(".whl"):
return file
raise RuntimeError(f"Not found whl file in: {files}")

0 comments on commit 501185e

Please sign in to comment.