forked from jodal/pyspotify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfabfile.py
More file actions
34 lines (22 loc) · 737 Bytes
/
Copy pathfabfile.py
File metadata and controls
34 lines (22 loc) · 737 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
from fabric.api import local
build_dir = 'build/lib/'
def clean():
local('rm -rf build/')
def build():
clean()
local('python setup.py build --with-mock --build-lib {build_dir}'.format(
build_dir=build_dir))
def test():
build()
local('PYTHONPATH={build_dir} nosetests'.format(build_dir=build_dir))
def autotest():
while True:
local('clear')
test()
local(
'inotifywait -q -e create -e modify -e delete '
'--exclude ".*\.(pyc|sw.)" -r spotify/ src/ tests/')
def update_authors():
# Keep authors in the order of appearance and use awk to filter out dupes
local(
"git log --format='- %aN <%aE>' --reverse | awk '!x[$0]++' > AUTHORS")