Beispiel #1
0
import os
import zlib
import binascii
from wasp.util import first
from wasp import shell, tool, ctx, recurse
from wasp.ext.watch import watch
import wasp
from wasp.fs import find_exe, Directory, files
from wasp.task import TaskFailedError

sphinx = tool("sphinx")

recurse("buildtest")


@wasp.command("doc", description="Build project documentation.")
def doc():
    return sphinx.html("doc")


@watch(dirs=["doc", "src/wasp"], regexp="^[a-z-_]*\.(rst|py)$", command="watch-doc")
def autorebuild_doc():
    return doc()


@wasp.command("test", description="Run unit and integration tests.")
def test():
    yield find_exe("py.test", argprefix="pytest").produce(":pytest")
    yield shell("{pytest} tests").use(":pytest")

Beispiel #2
0
from wasp import recurse


recurse('one', 'two')
Beispiel #3
0
from wasp import recurse

recurse('one/nested')