If things look a little dusty around here, it's because I'm away on a mission for two years. I'll be back in August 2012, but in the mean time feel free to fork my projects on github.
PBJ: python build jelly
by Jared

Python Build Jelly

PBJ is a simple, extensible pythonic build framework, whose purpose is to be dead simple for the basic cases.

Here's an example:

from pbj import Builder, cmd
import os

build = Builder("PJs")

build.cmd("jstest", ("js", "test/runtests.js"))

build.clean("build", "test/py/*.js")

@build.file("build/pjslib.js", depends="jslib/*.js")
def jslib(name):
    text = cmd("cat", "jslib/*.js")
    if not os.path.exists("build"):
        os.mkdir("build")
    open("build/pjslib.js").write(text)

if __name__ == "__main__":
    build.run()

Cool things: targets are classes, and decorate functions.

And...this project is just starting out, so I'll fill the rest in later.

Cheers.

Bookmark and Share comments
project comments powered by Disqus