-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdodo.py
39 lines (26 loc) · 817 Bytes
/
dodo.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
from doitpy.pyflakes import Pyflakes
DOIT_CONFIG = {'default_tasks': ['pyflakes', 'test']}
def task_pyflakes():
yield Pyflakes().tasks('*.py')
def task_test():
return {
'actions': ['py.test'],
'file_dep': ['mergedict.py', 'test_mergedict.py'],
}
def task_coverage():
return {
'actions': [
'coverage run --source=mergedict,test_mergedict `which py.test`',
'coverage report --show-missing'],
'verbosity': 2,
}
def task_manifest():
"""create manifest file for distutils """
cmd = "git ls-tree --name-only -r HEAD > MANIFEST"
return {'actions': [cmd]}
def task_pypi():
"""upload package to pypi"""
return {
'actions': ["python setup.py sdist upload"],
'task_dep': ['manifest'],
}