-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (29 loc) · 851 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
34
35
.PHONY: doc runGittk runDemo build deploy buildTest deployTest
.venv:
python3 -m venv .venv
. .venv/bin/activate ; \
pip install -r docs/requirements.txt
# Regen requirements;
# pip freeze > docs/requirements.txt
build: .venv
. .venv/bin/activate ; \
rm -rf dist ; \
tools/prepareBuild.sh release ; \
cd tmp ; \
python3 -m build
buildTest: .venv
. .venv/bin/activate ; \
rm -rf dist ; \
tools/prepareBuild.sh test ; \
cd tmp ; \
python3 -m build ;
deployTest: .venv
. .venv/bin/activate ; \
python3 -m twine upload --repository testpypi tmp/dist/* --verbose
deploy: .venv
. .venv/bin/activate ; \
python3 -m twine upload tmp/dist/* --repository tlogg --verbose
#test: .venv
# . .venv/bin/activate ; \
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude .venv,build,tmp ; \
# pytest demo/demo.py