-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfabfile.py
More file actions
34 lines (22 loc) · 725 Bytes
/
fabfile.py
File metadata and controls
34 lines (22 loc) · 725 Bytes
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
import os
from fabric.api import local, lcd
def clean():
with lcd(os.path.dirname(__file__)):
# local("python3.6 setup.py clean --all")
local("find . | grep -E \"(__pycache__|\.pyc$)\" | xargs rm -rf")
local("rm -rf ./docs/build || true")
local("rm -rf ./docs/source/reference/_autosummary || true")
def make():
local("python3.6 setup.py bdist_wheel")
def deploy():
test()
make()
local("twine upload dist/*")
def test():
local("python3.6 -m unittest")
def time():
local("python3 -m unittest discover --start-directory=./test/performance/ --patter=\"time*.py\"")
def docs():
with lcd("./docs"):
local("make clean")
local("make html")