-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (26 loc) · 865 Bytes
/
Makefile
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
prepare:
rm -rf env build dist
virtualenv env --python=python3.10
. env/bin/activate && \
env/bin/pip3 install -e .
env/bin/pip3 install -e ".[dev]"
env/bin/pip3 install -e ".[aiohttp]"
env/bin/pip3 install -e ".[doc]"
install:
pip3 install -e ".[dev]"
pip3 install -e ".[aiohttp]"
pip3 install -e ".[doc]"
activate:
@echo '. env/bin/activate'
test:
env/bin/pytest -s --cov=madframe --cov-report=term-missing --cov-fail-under=100
report:
env/bin/coverage report
pydoc:
cd madframe ; ../env/bin/python3.10 -m pydoc -b -p 9000 madframe
pdoc:
env/bin/pdoc madframe !madframe.command !madframe.utils !madframe.options !madframe.setup !madframe.perpetuate !madframe.autofill -o docs/ --logo 'logo.png' -t './doc-template' --no-show-source
upload:
env/bin/pip3 install twine
env/bin/python3 setup.py sdist bdist_wheel
env/bin/twine upload dist/*