Commit c4bc887e authored by Shin, Woong's avatar Shin, Woong
Browse files

initial commit



* Initial import from prior project

Signed-off-by: default avatarWoong Shin <shinw@ornl.gov>
parents
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+7 −0
Original line number Diff line number Diff line
.pdo-venv
__pycache__
*.swp
.*.swp
*.pyc
tmp
*.egg-info

Makefile

0 → 100644
+26 −0
Original line number Diff line number Diff line
.PHONY: help

help:
	-@echo "[pdo make]"
	-@echo "development:"
	-@echo "  init|fini: initialize / finalize development environment"
	-@echo "  env: printout environment to activate the virtualenv"
	-@echo "  test: run unittests"

VENV=./.pdo-venv

.PHONY: init fini env
init:
	-@echo "@ initializing development environment"
	if [ ! -e $(VENV) ]; then python3 -m venv $(VENV) && pip install --upgrade pip; fi
	$(VENV)/bin/pip3 install -r ./requirements.txt
	$(VENV)/bin/pip3 install -r ./requirements_dev.txt
	$(VENV)/bin/pip3 install -e .
	-@echo "@ virtual environment setup finished"
	-@echo '@ . ./.pdo-venv/bin/activate'

fini:
	-rm -rf $(VENV)

test:
	$(VENV)/bin/pytest -sv

README.md

0 → 100644
+4 −0
Original line number Diff line number Diff line
pdo toolkit
===========

Tools for container based development orchestration

pdo/__init__.py

0 → 100644
+20 −0
Original line number Diff line number Diff line
import os
import sys
import logging
from .environ import *
from .exceptions import *

# Logger object
LOG_LEVEL = os.environ.get('PDO_LOG_LEVEL', 'INFO')
logging.basicConfig(
    level=LOG_LEVEL.upper(),
    format='[%(asctime)s] {%(filename)s:%(lineno)d} %(levelname)s - %(message)s',
    handlers=[logging.StreamHandler(sys.stdout)]
)

# Version from the scm
__version__ = 'tbd'
try:
    from .version import __version__
except ImportError:
    pass

pdo/cli/__init__.py

0 → 100644
+1 −0
Original line number Diff line number Diff line
from .cli import pdo_cli