-
Notifications
You must be signed in to change notification settings - Fork 1
/
dodo.py
37 lines (25 loc) · 823 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
"""Task list for doit, used to build the project; run with `doit` or `doit list` to see commands"""
def task_update_readme():
"""Update README with CLI output"""
return {"actions": ["poetry run cog -r README.md"]}
def task_test():
"""Run tests"""
return {"actions": ["poetry run pytest"]}
# def task_docs():
# """Build docs"""
# return {"actions": ["poetry run mkdocs build"]}
# def task_gh_docs():
# """Build docs and push to gh-pages"""
# return {
# "actions": [
# "poetry run mkdocs gh-deploy --force",
# ]
# }
def task_clean_build_files():
"""Clean out old build files"""
return {
"actions": ["rm -rf dist/", "rm -rf build/"],
}
def task_build():
"""Build python project"""
return {"actions": ["python3 -m build"]}