Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Renamed tool from development name bob to microbuild.

  • Loading branch information...
commit 9600109e7dc3e6a0665f096476866f4d6aac6747 1 parent 26e06a8
@CalumJEadie authored
View
2  README.md
@@ -1,4 +1,4 @@
-# bob - Really simple Python build tool.
+# microbuild - Really straightforward, lightweight, Python build tool.
## Useful references for Python decorators
View
6 bob/tests/build_scripts/annotation_misuse_1.py
@@ -1,6 +0,0 @@
-from ... import bob
-
-# Uses @bob.task form instead of @bob.task() form.
-@bob.task
-def clean():
- pass
View
10 build.py
@@ -2,21 +2,21 @@
import sys
import subprocess
-from bob import bob
+from microbuild import microbuild
-@bob.task()
+@microbuild.task()
def apidoc():
"""
Generate API documentation using epydoc.
"""
subprocess.call(["epydoc","--config","epydoc.config"])
-@bob.task()
+@microbuild.task()
def test():
"""
Run unit tests.
"""
- subprocess.call(["python","-m","bob.tests.bob"])
+ subprocess.call(["python","-m","microbuild.tests.microbuild"])
if __name__ == "__main__":
- bob.build(sys.modules[__name__],sys.argv[1:])
+ microbuild.build(sys.modules[__name__],sys.argv[1:])
View
6 epydoc.config
@@ -1,9 +1,9 @@
[epydoc]
-name: bob - Really simple Python build tool.
-url: https://github.com/CalumJEadie/bob
+name: microbuild - Really simple Python build tool.
+url: https://github.com/CalumJEadie/microbuild
-modules: bob/bob.py
+modules: microbuild/microbuild.py
output: html
target: apidocs
View
0  bob/tests/build_scripts/__init__.py → microbuild/__init__.py
File renamed without changes
View
4 bob/bob.py → microbuild/microbuild.py
@@ -1,11 +1,11 @@
"""
-bob - Really simple Python build tool.
+microbuild - Really simple Python build tool.
"""
import inspect
import argparse
-_CREDIT_LINE = "Powered by bob - A really simple Python build tool."
+_CREDIT_LINE = "Powered by microbuild - A really simple Python build tool."
def build(module,args):
"""
View
0  bob/tests/__init__.py → microbuild/tests/__init__.py
File renamed without changes
View
0  bob/__init__.py → microbuild/tests/build_scripts/__init__.py
File renamed without changes
View
6 microbuild/tests/build_scripts/annotation_misuse_1.py
@@ -0,0 +1,6 @@
+from ... import microbuild
+
+# Uses @microbuild.task form instead of @microbuild.task() form.
+@microbuild.task
+def clean():
+ pass
View
6 bob/tests/build_scripts/annotation_misuse_2.py → ...obuild/tests/build_scripts/annotation_misuse_2.py
@@ -1,6 +1,6 @@
-from ... import bob
+from ... import microbuild
-@bob.task()
+@microbuild.task()
def clean():
pass
@@ -9,6 +9,6 @@ def html():
pass
# References a non task.
-@bob.task(clean,html)
+@microbuild.task(clean,html)
def android():
pass
View
6 bob/tests/build_scripts/annotation_misuse_3.py → ...obuild/tests/build_scripts/annotation_misuse_3.py
@@ -1,10 +1,10 @@
-from ... import bob
+from ... import microbuild
-@bob.task()
+@microbuild.task()
def clean():
pass
# Referring to clean by name rather than reference.
-@bob.task("clean")
+@microbuild.task("clean")
def html():
pass
View
14 bob/tests/build_scripts/dependancies.py → microbuild/tests/build_scripts/dependancies.py
@@ -1,31 +1,31 @@
import sys
-from ... import bob
+from ... import microbuild
-@bob.task()
+@microbuild.task()
def clean():
"""Clean build directory."""
print "clean"
-@bob.task(clean)
+@microbuild.task(clean)
def html():
"""Generate HTML."""
print "html"
-@bob.task(clean)
+@microbuild.task(clean)
def images():
"""Prepare images."""
print "images"
-@bob.task(clean,html,images)
+@microbuild.task(clean,html,images)
def android():
"""Package Android app."""
print "android"
-@bob.task(clean,html,images)
+@microbuild.task(clean,html,images)
def ios():
"""Package iOS app."""
@@ -37,4 +37,4 @@ def some_utility_method():
print "some utility method"
if __name__ == "__main__":
- bob.build(sys.modules[__name__],sys.argv[1:])
+ microbuild.build(sys.modules[__name__],sys.argv[1:])
View
14 bob/tests/build_scripts/simple.py → microbuild/tests/build_scripts/simple.py
@@ -1,33 +1,33 @@
#!/usr/bin/python
import sys
-from ... import bob
+from ... import microbuild
-@bob.task()
+@microbuild.task()
def clean():
"""Clean build directory."""
print "clean"
-@bob.task()
+@microbuild.task()
def html():
"""Generate HTML."""
print "html"
-@bob.task()
+@microbuild.task()
def images():
"""Prepare images."""
print "images"
-@bob.task()
+@microbuild.task()
def android():
"""Package Android app."""
print "android"
-@bob.task()
+@microbuild.task()
def ios():
"""Package iOS app."""
@@ -39,4 +39,4 @@ def some_utility_method():
print "some utility method"
if __name__ == "__main__":
- bob.build(sys.modules[__name__],sys.argv[1:])
+ microbuild.build(sys.modules[__name__],sys.argv[1:])
View
16 bob/tests/bob.py → microbuild/tests/microbuild.py
@@ -1,20 +1,20 @@
#!/usr/bin/python
"""
-Unit tests for the bob.bob module.
+Unit tests for the microbuild.microbuild module.
-Run these tests using `python -m bob.tests.bob` from project root directory.
+Run these tests using `python -m microbuild.tests.microbuild` from project root directory.
"""
import unittest
-from .. import bob
+from .. import microbuild
class TestBuildSimple(unittest.TestCase):
def test_get_tasks(self):
import build_scripts.simple
- ts = bob._get_tasks(build_scripts.simple)
+ ts = microbuild._get_tasks(build_scripts.simple)
print ts
self.assertEqual(len(ts),5)
@@ -22,24 +22,24 @@ class TestBuildWithDependancies(unittest.TestCase):
def test_get_tasks(self):
import build_scripts.dependancies
- ts = bob._get_tasks(build_scripts.dependancies)
+ ts = microbuild._get_tasks(build_scripts.dependancies)
print ts
self.assertEqual(len(ts),5)
class TestDecorationValidation(unittest.TestCase):
def test_1(self):
- with self.assertRaises(bob.TaskDecorationException) as cm:
+ with self.assertRaises(microbuild.TaskDecorationException) as cm:
import build_scripts.annotation_misuse_1
print cm.exception
def test_2(self):
- with self.assertRaises(bob.TaskDecorationException) as cm:
+ with self.assertRaises(microbuild.TaskDecorationException) as cm:
import build_scripts.annotation_misuse_2
print cm.exception
def test_3(self):
- with self.assertRaises(bob.TaskDecorationException) as cm:
+ with self.assertRaises(microbuild.TaskDecorationException) as cm:
import build_scripts.annotation_misuse_3
print cm.exception
View
4 setup.py
@@ -1,10 +1,10 @@
from distutils.core import setup
setup(
- name="bob",
+ name="microbuild",
version="0.1.0",
author="Calum J. Eadie",
- packages=["bob"],
+ packages=["microbuild"],
license=open("LICENSE.txt").read(),
description="Really simple Python build tool.",
long_description=open("README.md").read(),
Please sign in to comment.
Something went wrong with that request. Please try again.