Я перерыл множество проектов "создать для Python", но не смог найти ни одного с такой же простотой, как файл торта . Я ищу эквивалент Python, который позволит мне:
Я представляю что-то подобное:
from pymake import task, main
@task('reset_tables', 'Drop and recreate all MySQL tables')
def reset_tables():
#...
@task('build_stylus', 'Build the stylus files to public/css/*')
def build_stylus():
from myproject import stylus_builder
#...
@task('build_cscript', 'Build the coffee-script files to public/js/*')
def build_cscript():
#...
@task('build', 'Build everything buildable')
def build():
build_cscript()
build_stylus()
# etc...
# Function that parses command line args etc...
main()
Я искал и искал, но ничего подобного не нашел. Если его нет, я сделаю его сам и, возможно, отвечу на этот вопрос с его помощью.
Спасибо за вашу помощь!