Update version info

Former-commit-id: b0947081de
This commit is contained in:
David Boreham 2023-01-17 22:38:30 -07:00
parent a60fb08c8a
commit 5a4220ff41
4 changed files with 10 additions and 6 deletions

View File

@ -1,5 +1,5 @@
version: "1.0" version: "1.0"
name: laconicd-fixturenet name: fixturenet-laconicd
repos: repos:
- cerc-io/laconicd - cerc-io/laconicd
- cerc-io/laconic-sdk - cerc-io/laconic-sdk

View File

@ -1,2 +1,2 @@
# This file should be re-generated running: scripts/update-version-file.sh script # This file should be re-generated running: scripts/update-version-file.sh script
v1.0.9-alpha-32b4c00 v1.0.9-alpha-04a3049

View File

@ -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: with importlib.resources.open_text(data, "repository-list.txt") as repository_list_file:
all_repos = repository_list_file.read().splitlines() all_repos = repository_list_file.read().splitlines()
repos_in_scope = []
if stack: if stack:
# In order to be compatible with Python 3.8 we need to use this hack to get the path: # 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 # 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") stack_file_path = Path(__file__).absolute().parent.joinpath("data", "stacks", stack, "stack.yml")
with stack_file_path: with stack_file_path:
stack_config = yaml.safe_load(open(stack_file_path, "r")) 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: if verbose:
print(f"Repos: {all_repos}") print(f"Repos: {repos_in_scope}")
if stack: if stack:
print(f"Stack: {stack}") print(f"Stack: {stack}")
repos = [] repos = []
for repo in all_repos: for repo in repos_in_scope:
if include_exclude_check(repo, include, exclude): if include_exclude_check(repo, include, exclude):
repos.append(repo) repos.append(repo)
else: else:

View File

@ -6,7 +6,7 @@ with open("requirements.txt", "r", encoding="utf-8") as fh:
requirements = fh.read() requirements = fh.read()
setup( setup(
name='laconic-stack-orchestrator', name='laconic-stack-orchestrator',
version='0.0.5', version='1.0.9',
author='Cerc', author='Cerc',
author_email='info@cerc.io', author_email='info@cerc.io',
license='GNU Affero General Public License', license='GNU Affero General Public License',