aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-06-23 09:27:00 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-06-23 09:27:00 -0400
commitdefbf2d0d1ff6520bb3f7aab9904c0f239de784e (patch)
treeb371829f87e212f9e6e3e1eaedd903afa6db4e52
parentcd5eb8d28e2e641b7aed9d21ab188c54deeee84d (diff)
downloadcbc-defbf2d0d1ff6520bb3f7aab9904c0f239de784e.tar.gz
Initial commit of build.py
-rw-r--r--cbc/__init__.py2
-rwxr-xr-xcbc/build.py29
2 files changed, 30 insertions, 1 deletions
diff --git a/cbc/__init__.py b/cbc/__init__.py
index 1e05628..bf8011a 100644
--- a/cbc/__init__.py
+++ b/cbc/__init__.py
@@ -1,2 +1,2 @@
from . import environment
-from cbc import meta \ No newline at end of file
+from . import meta \ No newline at end of file
diff --git a/cbc/build.py b/cbc/build.py
new file mode 100755
index 0000000..8717504
--- /dev/null
+++ b/cbc/build.py
@@ -0,0 +1,29 @@
+''' NOTES:
+I'm not sure how I want the build system to work yet.
+
+Maybe I want:
+ Controller -> CONFIG_FILES as Task -> Monitor each Task
+
+* How should I reliably weigh tasks? This part may get tedious if the weights
+are in the configuration files.
+
+ * I could use the old 000filename.conf style...
+ * weight= in a config
+'''
+import os
+from configparser import SafeConfigParser, ExtendedInterpolation
+
+class Controller(object):
+ def __init__(self):
+ pass
+
+
+class Task(object):
+ def __init__(self, filename):
+ self.config = SafeConfigParser(interpolation=ExtendedInterpolation(), allow_no_value=True)
+
+ def check_config(self):
+ pass
+
+ def run(self):
+ pass \ No newline at end of file