Skip to content

Commit

Permalink
Merge pull request #4 from brett-fitz/0.1.2
Browse files Browse the repository at this point in the history
bug fix for schema path
  • Loading branch information
brett-fitz authored Oct 11, 2023
2 parents a39dc0a + 5ad61da commit 4c6818a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
14 changes: 1 addition & 13 deletions awsssomanager/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 4c6818a

Please sign in to comment.