Debian Codegraph @

Makefile

raw
1 .PHONY: all dist docs install upload clean test
2 PYTHON=python3
3
4 all:
5 @echo "targets: dist, docs, upload, clean, test"
6
7 docs:
8 sphinx-build docs/source build/docs
9
10 dist:
11 $(PYTHON) -m build --sdist --wheel
12
13 upload: dist
14 @echo "Uploading to Pypi using twine...."
15 twine upload dist/*
16
17 test:
18 PYTHONPATH=. python3 -m pytest tests
19
20 clean:
21 @echo "Removing tox dirs, logfiles, temp files, .pyo/.pyc files..."
22 rm -rf .tox .eggs .cache .pytest_cache *.egg-info
23 find . -name __pycache__ -print0 | xargs -0 rm -rf
24 find . -name \*_log -print0 | xargs -0 rm -f
25 find . -name \*.log -print0 | xargs -0 rm -f
26 find . -name \*_URI -print0 | xargs -0 rm -f
27 find . -name \*.pyo -print0 | xargs -0 rm -f
28 find . -name \*.pyc -print0 | xargs -0 rm -f
29 find . -name \*.class -print0 | xargs -0 rm -f
30 find . -name \*.DS_Store -print0 | xargs -0 rm -f
31 find . -name \.coverage -print0 | xargs -0 rm -f
32 find . -name \coverage.xml -print0 | xargs -0 rm -f
33 rm -f MANIFEST
34 rm -rf build
35 rm -rf dist
36 rm -rf tests/test-reports
37 find . -name '.#*' -print0 | xargs -0 rm -f
38 find . -name '#*#' -print0 | xargs -0 rm -f
39 @echo "clean!"