Skip to content

Commit

Permalink
new version correctly integrated
Browse files Browse the repository at this point in the history
  • Loading branch information
XaverStiensmeier committed Sep 20, 2023
1 parent ca9c82c commit 26e48c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions bibigrid/core/actions/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,23 @@

import logging
import os

import seedir

from bibigrid.core.utility.handler import configuration_handler

LOG = logging.getLogger("bibigrid")

__version__ = "0.3.0"
__version__ = "0.4.0"
RELEASE_DATE = "2023"
GIT_HUB = "https://github.com/BiBiServ/bibigrid"


def version():
print(f"BiBiGrid {__version__} ({RELEASE_DATE})\nBielefeld University\n{GIT_HUB}\n\n"
"# Configuration Folders\n")
def version(log):
log.log(42, f"BiBiGrid {__version__} ({RELEASE_DATE})\nBielefeld University\n{GIT_HUB}\n\n"
"# Configuration Folders\n")
for directory in configuration_handler.CLOUDS_YAML_PATHS:
if os.path.isdir(os.path.expanduser(directory)):
print(f"## '{directory}'\n")
seedir.seedir(directory, exclude_folders=["keys"])
log.log(42, f"## '{directory}'\n")
dir_print = seedir.seedir(directory, exclude_folders=["keys"], printout=False)
log.log(42, dir_print)
2 changes: 1 addition & 1 deletion bibigrid/core/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def run_action(args, configurations, config_path):
"""
if args.version:
LOG.info("Action version selected")
version.version()
version.version(LOG)
return 0

start_time = time.time()
Expand Down

0 comments on commit 26e48c5

Please sign in to comment.