2024-05-31 23:35:13 +00:00
|
|
|
from xonsh.main import setup
|
|
|
|
setup()
|
|
|
|
del setup
|
|
|
|
|
2024-06-09 07:27:06 +00:00
|
|
|
import logging
|
|
|
|
|
2024-06-07 05:28:49 +00:00
|
|
|
from . import environment
|
|
|
|
from . import create_release
|
|
|
|
from . import keys
|
|
|
|
from . import version
|
|
|
|
from . import cli
|
|
|
|
from . import docker
|
2024-06-09 07:27:06 +00:00
|
|
|
from . import docker_assemble
|
2024-06-09 07:50:40 +00:00
|
|
|
from . import gitutils
|
2024-06-09 07:27:06 +00:00
|
|
|
|
|
|
|
rootLogger = logging.getLogger()
|
|
|
|
rootLogger.setLevel(logging.DEBUG)
|
|
|
|
log = logging.getLogger(__name__)
|
|
|
|
log.setLevel(logging.DEBUG)
|
|
|
|
|
|
|
|
fmt = logging.Formatter('{asctime} {levelname} {name}: {message}',
|
|
|
|
datefmt='%b %d %H:%M:%S',
|
|
|
|
style='{')
|
|
|
|
|
|
|
|
if not any(isinstance(h, logging.StreamHandler) for h in rootLogger.handlers):
|
|
|
|
hand = logging.StreamHandler()
|
|
|
|
hand.setFormatter(fmt)
|
|
|
|
rootLogger.addHandler(hand)
|
2024-05-31 23:35:13 +00:00
|
|
|
|
|
|
|
def reload():
|
|
|
|
import importlib
|
|
|
|
importlib.reload(environment)
|
|
|
|
importlib.reload(create_release)
|
|
|
|
importlib.reload(keys)
|
|
|
|
importlib.reload(version)
|
|
|
|
importlib.reload(cli)
|
2024-06-07 05:28:49 +00:00
|
|
|
importlib.reload(docker)
|
2024-06-09 07:27:06 +00:00
|
|
|
importlib.reload(docker_assemble)
|
2024-06-09 07:50:40 +00:00
|
|
|
importlib.reload(gitutils)
|