From 5a4220ff41bb7e1bf69ff1983616a07ce4199743 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Tue, 17 Jan 2023 22:38:30 -0700 Subject: [PATCH] Update version info Former-commit-id: b0947081debe122007617b4355a134a95099b53c --- app/data/stacks/laconicd/stack.yml | 2 +- app/data/version.txt | 2 +- app/setup_repositories.py | 10 +++++++--- setup.py | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/data/stacks/laconicd/stack.yml b/app/data/stacks/laconicd/stack.yml index 6e262a08..d47a6fe5 100644 --- a/app/data/stacks/laconicd/stack.yml +++ b/app/data/stacks/laconicd/stack.yml @@ -1,5 +1,5 @@ version: "1.0" -name: laconicd-fixturenet +name: fixturenet-laconicd repos: - cerc-io/laconicd - cerc-io/laconic-sdk diff --git a/app/data/version.txt b/app/data/version.txt index 09f6b7b3..b583e2ff 100644 --- a/app/data/version.txt +++ b/app/data/version.txt @@ -1,2 +1,2 @@ # This file should be re-generated running: scripts/update-version-file.sh script -v1.0.9-alpha-32b4c00 +v1.0.9-alpha-04a3049 diff --git a/app/setup_repositories.py b/app/setup_repositories.py index 1969c29c..6f148b87 100644 --- a/app/setup_repositories.py +++ b/app/setup_repositories.py @@ -100,21 +100,25 @@ def command(ctx, include, exclude, git_ssh, check_only, pull, branches_file): with importlib.resources.open_text(data, "repository-list.txt") as repository_list_file: all_repos = repository_list_file.read().splitlines() + repos_in_scope = [] if stack: # In order to be compatible with Python 3.8 we need to use this hack to get the path: # See: https://stackoverflow.com/questions/25389095/python-get-path-of-root-project-structure stack_file_path = Path(__file__).absolute().parent.joinpath("data", "stacks", stack, "stack.yml") with stack_file_path: stack_config = yaml.safe_load(open(stack_file_path, "r")) - print(f"stack is: {stack_config}") + # TODO: syntax check the input here + repos_in_scope = stack_config['repos'] + else: + repos_in_scope = all_repos if verbose: - print(f"Repos: {all_repos}") + print(f"Repos: {repos_in_scope}") if stack: print(f"Stack: {stack}") repos = [] - for repo in all_repos: + for repo in repos_in_scope: if include_exclude_check(repo, include, exclude): repos.append(repo) else: diff --git a/setup.py b/setup.py index 19e416b2..759c8c1e 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ with open("requirements.txt", "r", encoding="utf-8") as fh: requirements = fh.read() setup( name='laconic-stack-orchestrator', - version='0.0.5', + version='1.0.9', author='Cerc', author_email='info@cerc.io', license='GNU Affero General Public License',