Skip to content

Commit

Permalink
add branch and log the version
Browse files Browse the repository at this point in the history
  • Loading branch information
circa10a committed Jan 15, 2019
1 parent 324ee7a commit 9ba28e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyouroboros/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
VERSION = "0.5.0"
BRANCH = "develop"
3 changes: 2 additions & 1 deletion pyouroboros/ouroboros.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from pyouroboros.logger import OuroborosLogger
from pyouroboros.dataexporters import DataManager
from pyouroboros.notifiers import NotificationManager
from pyouroboros.__init__ import VERSION
from pyouroboros import VERSION, BRANCH


def main():
Expand Down Expand Up @@ -154,6 +154,7 @@ def main():
else:
log_level = args.LOG_LEVEL
ol = OuroborosLogger(level=log_level)
ol.logger.info('Version: %s-%s', VERSION, BRANCH)
config = Config(environment_vars=environ, cli_args=args)
config_dict = {key: value for key, value in vars(config).items() if key.upper() in config.options}
ol.logger.debug("Ouroboros configuration: %s", config_dict)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from setuptools import setup, find_packages
from pyouroboros.__init__ import VERSION
from pyouroboros import VERSION

requirements = ['docker>=3.7.0',
'schedule>=0.5.0',
Expand Down

0 comments on commit 9ba28e6

Please sign in to comment.