-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
fabfile.py
39 lines (26 loc) · 645 Bytes
/
fabfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# -*- coding: utf-8 -*-
from fabric.api import local, task
@task
def clean():
# Clean-up compiled files
local('python ./bin/clean.py && fclear python')
@task(alias='i')
def install():
# Install dependencies
local('pip install -r requirements.txt')
@task(default=True)
def test():
# Check code for errors
local('flake8 --show-source --count')
@task
def fix():
# Automatically fix code errors with yapf
local('yapf -ir .')
@task
def start():
# Run the API
local('python -m moviebox.main')
@task
def dist():
# Build the source code
local('python setup.py sdist bdist_wheel --universal')