https://github.com/jaredly/pbj
python build jelly - a simple, extensible pythonic build framework
https://github.com/jaredly/pbj
Last synced: about 1 year ago
JSON representation
python build jelly - a simple, extensible pythonic build framework
- Host: GitHub
- URL: https://github.com/jaredly/pbj
- Owner: jaredly
- Created: 2010-05-29T21:29:42.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2013-04-25T13:02:58.000Z (about 13 years ago)
- Last Synced: 2025-04-18T00:06:03.328Z (about 1 year ago)
- Language: Python
- Homepage: http://jaredforsyth.com/projects/pbj
- Size: 164 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Python Build Jelly
**New**
just added zsh completion! found in the file ``zsh.sugar``
Anyway, 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.
Included:
disttest - a drop-in plugin to add a "setup.py test" for distutils
Cheers.