yumike / snake

Yet another port of Rake.

Home Page:http://yumatov.org/snake/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake

Snake is yet another Make-like tool, written on Python and inspired by Rake.

Usage Example

In a directory with snakefile.py (or in any sub-directory) containing such code:

from snake import *

@task
@depends_on('virtualenv', 'install')
def init():
    print("Activate your virtualenv with:")
    print("  $ source bin/activate")

@task
def virtualenv():
    sh('virtualenv -q --no-site-packages .')

@task
def install():
    sh('bin/pip -q install -e .')

run:

$ snake init
(in /Users/yumike/Projects/Snake)
[sh] virtualenv -q --no-site-packages .
[sh] bin/pip -q install -e .
Activate your virtualenv with:
  $ source bin/activate

About

Yet another port of Rake.

http://yumatov.org/snake/

License:BSD 2-Clause "Simplified" License


Languages

Language:Python 100.0%