1-
21.PHONY : clean clean-test clean-pyc clean-build docs help
32.DEFAULT_GOAL := help
43
@@ -22,10 +21,10 @@ for line in sys.stdin:
2221endef
2322export PRINT_HELP_PYSCRIPT
2423
25- BROWSER := python -c "$$BROWSER_PYSCRIPT"
24+ BROWSER := python3 -c "$$BROWSER_PYSCRIPT"
2625
2726help :
28- @python -c " $$ PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST )
27+ @python3 -c " $$ PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST )
2928
3029clean : clean-build clean-pyc clean-test # # remove all build, test, coverage and Python artifacts
3130
@@ -48,21 +47,21 @@ clean-test: ## remove test and coverage artifacts
4847lint : # # check style with flake8
4948 flake8 ahead tests
5049
51- coverage : # # check code coverage quickly with the default Python
52- coverage run --source ahead setup.py test
53- coverage report -m
54- coverage html
55- $(BROWSER ) htmlcov/index.html
50+ coverage : # # check code coverage quickly with the default Python
51+ coverage report --omit=" venv/*,ahead/tests/*" --show-missing
5652
57- docs : # # generate docs
53+ docs : install # # generate docs
5854 # pip install black pdoc
5955 # black ahead/* --line-length=80
60- pdoc -t docs ahead/* --output-dir ahead-docs
56+ # find ahead/ -name "*.py" -exec autopep8 --max-line-length=80 --in-place {} +
57+ R_HOME=$(shell R RHOME) pdoc -t docs ahead/* --output-dir ahead-docs
6158 find . -name ' __pycache__' -exec rm -fr {} +
59+ cp -rf ahead-docs/* ../../Pro_Website/Techtonique.github.io/ahead
6260
63- servedocs : # # compile the docs watching for change
64- pip install black pdoc
65- black ahead/* --line-length=80
61+ servedocs : install # # compile the docs watching for change
62+ # pip install black pdoc
63+ # black ahead/* --line-length=80
64+ # find ahead/ -name "*.py" -exec autopep8 --max-line-length=80 --in-place {} +
6665 pdoc -t docs ahead/*
6766 find . -name ' __pycache__' -exec rm -fr {} +
6867
@@ -76,12 +75,28 @@ dist: clean ## builds source and wheel package
7675 ls -l dist
7776
7877install : clean # # install the package to the active Python's site-packages
79- python3 -m pip install . --verbose
78+ pip install -e .
79+
80+ build-site : docs # # export mkdocs website to a folder
81+ cp -rf ahead-docs/* ../../Pro_Website/Techtonique.github.io/ahead
82+ find . -name ' __pycache__' -exec rm -fr {} +
8083
81- build-site : docs # # put docs website in a directory
82- cd docs&& mkdocs build
83- cp -rf docs/site/* ../../Pro_Website/Techtonique.github.io/ahead_python
84- cd ..
84+ run-custom : # # run all custom examples with one command
85+ find examples -maxdepth 2 -name " *custom*.py" -exec python3 {} \;
8586
8687run-examples : # # run all examples with one command
8788 find examples -maxdepth 2 -name " *.py" -exec python3 {} \;
89+
90+ run-mts : # # run all mts examples with one command
91+ find examples -maxdepth 2 -name " *mts*.py" -exec python3 {} \;
92+
93+ run-lazy : # # run all lazy examples with one command
94+ find examples -maxdepth 2 -name " lazy*.py" -exec python3 {} \;
95+
96+ run-conformal : # # run all lazy examples with one command
97+ find examples -maxdepth 2 -name " *conformal*.py" -exec python3 {} \;
98+
99+ run-tests : install # # run all the tests with one command
100+ pip3 install coverage nose2
101+ python3 -m coverage run -m unittest discover -s ahead/tests -p " *.py"
102+
0 commit comments