diff --git a/awsssomanager/constants.py b/awsssomanager/constants.py index b62f0be..376a54c 100644 --- a/awsssomanager/constants.py +++ b/awsssomanager/constants.py @@ -13,16 +13,4 @@ CREDENTIALS_FILE: Final = f"{AWS_DIR}credentials" SSO_MANAGER_CONFIG_FILE: Final = f"{AWS_DIR}aws-sso-manager.yml" - -def find_repo_root(path: str) -> Path: - """Find repository root from the path's parents""" - - for parent in Path(path).parents: - # Check whether "path/.git" exists and is a directory - git_dir = parent.joinpath(".git") - if git_dir.is_dir(): - return parent - - raise ValueError("Could not find .git folder") - -SCHEMA_PATH: Final = Path("config/schema.yml") +SCHEMA_PATH: Final = Path(__file__).resolve().parent / "config" / "schema.yml" diff --git a/pyproject.toml b/pyproject.toml index d33c316..d1455d1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "awsssomanager" -version = "0.1.1" +version = "0.1.2" description = "AWS SSO Manager" authors = ["Brett Fitzpatrick"] license = "MIT"