.PHONY: doc, runGittk, runDemo, build, deploy, buildTest, deployTest, .venv: python3 -m venv .venv . .venv/bin/activate pip3 install --upgrade pdoc3 pip3 install --upgrade GitPython pip3 install --upgrade build pip3 install --upgrade twine pip3 install --upgrade pytest flake8 doc: .venv . .venv/bin/activate rm -rf docs/html pdoc --html TermTk -o docs/html runGittk: .venv . .venv/bin/activate demo/gittk.py -f runDemo: .venv . .venv/bin/activate demo/demo.py -f build: .venv . .venv/bin/activate rm -rf dist tools/prepareBuild.sh release python3 -m build buildTest: .venv . .venv/bin/activate rm -rf dist tools/prepareBuild.sh test python3 -m build deployDoc: git checkout gh-pages find index.html TTk* libbpytop -name "*.html" | rm -rf cp -a docs/html/TermTk/* . find index.html TTk* libbpytop -name "*.html" | xargs git add git commit -m "Doc Updated" git push origin gh-pages git checkout main deployTest: .venv . .venv/bin/activate python3 -m twine upload --repository testpypi dist/* --verbose deploy: .venv . .venv/bin/activate python3 -m twine upload dist/* test: .venv . .venv/bin/activate flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude .venv,build,tmp pytest demo/demo.py