skip to navigation
skip to content

Not Logged In

microbuild 0.1.0

Lightweight Python Build Tool.

Latest Version: 0.3.3

# microbuild - Lightweight Python Build Tool.

Calum J. Eadie

## Features

* Really quick to learn.
* Manages dependancies between tasks.
* Automatically generates a command line interface.

## Example

The build script is written in pure Python and microbuild takes care of managing
any dependancies between tasks and generating a command line interface.

Tasks are just regular Python functions marked with the `@task` decorator. Dependancies
are specified with `@task` too.

After defining all tasks `build(sys.modules[__name__],sys.argv[1:])` is called to
run the build.

import sys
from microbuild.microbuild import task,build

def clean():
"""Clean build directory."""
print "Cleaning build directory..."

def html():
"""Generate HTML."""
print "Generating HTML..."

def images():
"""Prepare images."""
print "Preparing images..."

def android():
"""Package Android app."""
print "Packaging android app..."

if __name__ == "__main__":

The command line interface and help is automatically generated. Task descriptions
are extracted from function docstrings.

$ ./ -h
usage: [-h] task

positional arguments:
task perform specified task and all it's dependancies

optional arguments:
-h, --help show this help message and exit

android Package Android app.
clean Clean build directory.
html Generate HTML.
images Prepare images.

Dependancies between tasks are taken care of too.

$ ./ android
Cleaning build directory...
Generating HTML...
Preparing images...
Packaging android app...

## Installation

You can install microbuild from the Python Package Index (PyPI) or from source.

Using pip:

$ pip microbuild

Using easy_install:

$ easy_install microbuild

# License

microbuild is licensed under a MIT license. See [LICENSE.txt][1].

File Type Py Version Uploaded on Size
microbuild-0.1.0.tar.gz (md5) Source 2012-08-28 4KB
  • Downloads (All Versions):
  • 20 downloads in the last day
  • 116 downloads in the last week
  • 185 downloads in the last month