forked from SanchoMerkushev/PokerClient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdodo.py
46 lines (40 loc) · 1 KB
/
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
40
41
42
43
44
45
46
"""Tasks for doit"""
def task_html():
"""Return html documentation."""
return {
"actions":[
"sphinx-apidoc -o docs/ src",
"sphinx-build -M html docs build"
]
}
def task_wheel():
"""Build client wheel"""
return {
'actions': ['python -m build -n -w'],
}
def task_client():
"""Run client"""
return {
'actions': ['python -m src.client -n %(name)s'],
'params': [{'name': 'name',
'short': 'n',
'default': '',
'help': "Choose name for PokerClient"}]
}
def task_server():
"""Run server"""
return {
'actions': ['python -m src.server']
}
def task_tests():
"""Run tests."""
return {
"actions": [
"python -m unittest tests/test_* -v",
]
}
def task_int():
"""Gen internationalization"""
return {
"actions": ["pybabel compile -D msg -l ru_RU.UTF-8 -d po -i po/ru_RU.UTF-8/LC_MESSAGES/msg.po"]
}