|
1 |
| -.PHONY: help install-dependencies install-dependencies-dev test lint coverage docs-test build build-test release clean clean-pyc clean-tests clean-coverage clean-build |
2 |
| - |
3 |
| -help: |
4 |
| - @echo "" |
5 |
| - @echo "install-dependencies installs dependencies" |
6 |
| - @echo "install-dependencies-dev installs dev dependencies" |
7 |
| - @echo "" |
8 |
| - @echo "test runs tests" |
9 |
| - @echo "lint runs linter" |
10 |
| - @echo "coverage runs coverage test" |
11 |
| - @echo "docs-test tests docs for build errors and serves them locally" |
12 |
| - @echo "" |
13 |
| - @echo "build builds python package (sdist)" |
14 |
| - @echo "build-test tests build for errors and uploads to test.pypi.org" |
15 |
| - @echo "release builds and uploads python package to pypi.org" |
16 |
| - @echo "" |
17 |
| - @echo "clean-tests removes temp test files and folders" |
18 |
| - @echo "clean-coverage removes coverage files" |
19 |
| - @echo "clean-build removes packaging artifacts" |
20 |
| - @echo "clean-pyc removes python file artifacts" |
21 |
| - @echo "clean runs all cleaning functions" |
22 |
| - @echo "" |
23 |
| - |
24 |
| -install-dependencies: |
25 |
| - python -m pip install -r requirements.txt |
26 |
| - |
27 |
| -install-dependencies-dev: |
28 |
| - python -m pip install -r requirements-dev.txt |
29 |
| - |
30 |
| -test: |
31 |
| - # python -m unittest <tests folder> |
32 |
| - # python -m pytest tests -vv |
33 |
| - # nose2 -s ./tests -t . |
34 |
| - |
35 |
| -lint: |
36 |
| - python -m pylint <project_folder_name> setup.py |
37 |
| - |
38 |
| -coverage: |
39 |
| - # python -m coverage run --source <project_folder_name> -m unittest <tests folder> |
40 |
| - # python -m coverage run --source <project_folder_name> -m pytest tests -q |
41 |
| - # python -m coverage run --source <project_folder_name> nose2 -s ./tests -t . |
42 |
| - python -m coverage report -m |
43 |
| - |
44 |
| -docs-test: |
45 |
| - mkdocs serve -s -f .mkdocs.yml |
46 |
| - |
47 |
| -build: clean-pyc clean-build |
48 |
| - python setup.py sdist bdist_wheel |
49 |
| - |
50 |
| -build-test: |
51 |
| - twine check dist/* |
52 |
| - twine upload --repository-url https://test.pypi.org/legacy/ dist/* |
53 |
| - |
54 |
| -release: build |
55 |
| - twine upload dist/* |
56 |
| - |
57 |
| -clean-tests: |
58 |
| - rm -rf .pytest_cache/ |
59 |
| - |
60 |
| -clean-coverage: |
61 |
| - python -m coverage erase |
62 |
| - |
63 |
| -clean-build: |
64 |
| - rm -rf build/ |
65 |
| - rm -rf dist/ |
66 |
| - rm -rf <project_folder_name>.egg-info/ |
67 |
| - |
68 |
| -clean-pyc: |
69 |
| - rm -rf <project_folder_name>/__pycache__ tests/__pycache__ |
70 |
| - rm -f <project_folder_name>/*.pyc tests/*.pyc |
71 |
| - rm -f <project_folder_name>/*.pyo tests/*.pyo |
72 |
| - rm -f <project_folder_name>/*~ tests/*~ |
73 |
| - |
74 |
| -clean: clean-tests clean-coverage clean-build clean-pyc |
| 1 | +.PHONY: help install-dependencies install-dependencies-dev test lint coverage docs-test build build-test release clean clean-pyc clean-tests clean-coverage clean-build |
| 2 | + |
| 3 | +help: |
| 4 | + @echo "" |
| 5 | + @echo "install-dependencies installs dependencies" |
| 6 | + @echo "install-dependencies-dev installs dev dependencies" |
| 7 | + @echo "" |
| 8 | + @echo "test runs tests" |
| 9 | + @echo "lint runs linter" |
| 10 | + @echo "coverage runs coverage test" |
| 11 | + @echo "docs-test tests docs for build errors and serves them locally" |
| 12 | + @echo "" |
| 13 | + @echo "build builds python package (sdist)" |
| 14 | + @echo "build-test tests build for errors and uploads to test.pypi.org" |
| 15 | + @echo "release builds and uploads python package to pypi.org" |
| 16 | + @echo "" |
| 17 | + @echo "clean-tests removes temp test files and folders" |
| 18 | + @echo "clean-coverage removes coverage files" |
| 19 | + @echo "clean-build removes packaging artifacts" |
| 20 | + @echo "clean-pyc removes python file artifacts" |
| 21 | + @echo "clean runs all cleaning functions" |
| 22 | + @echo "" |
| 23 | + |
| 24 | +install-dependencies: |
| 25 | + python -m pip install -r requirements.txt |
| 26 | + |
| 27 | +install-dependencies-dev: |
| 28 | + python -m pip install -r requirements-dev.txt |
| 29 | + |
| 30 | +test: |
| 31 | + # python -m unittest <tests folder> |
| 32 | + # python -m pytest tests -vv |
| 33 | + # nose2 -s ./tests -t . |
| 34 | + |
| 35 | +lint: |
| 36 | + python -m pylint <project_folder_name> setup.py |
| 37 | + |
| 38 | +coverage: |
| 39 | + # python -m coverage run --source <project_folder_name> -m unittest <tests folder> |
| 40 | + # python -m coverage run --source <project_folder_name> -m pytest tests -q |
| 41 | + # python -m coverage run --source <project_folder_name> nose2 -s ./tests -t . |
| 42 | + python -m coverage report -m |
| 43 | + |
| 44 | +docs-test: |
| 45 | + mkdocs serve -s -f .mkdocs.yml |
| 46 | + |
| 47 | +build: clean-pyc clean-build |
| 48 | + python setup.py sdist bdist_wheel |
| 49 | + |
| 50 | +build-test: |
| 51 | + twine check dist/* |
| 52 | + twine upload --repository-url https://test.pypi.org/legacy/ dist/* |
| 53 | + |
| 54 | +release: build |
| 55 | + twine upload dist/* |
| 56 | + |
| 57 | +clean-tests: |
| 58 | + rm -rf .pytest_cache/ |
| 59 | + |
| 60 | +clean-coverage: |
| 61 | + python -m coverage erase |
| 62 | + |
| 63 | +clean-build: |
| 64 | + rm -rf build/ |
| 65 | + rm -rf dist/ |
| 66 | + rm -rf <project_folder_name>.egg-info/ |
| 67 | + |
| 68 | +clean-pyc: |
| 69 | + rm -rf <project_folder_name>/__pycache__ tests/__pycache__ |
| 70 | + rm -f <project_folder_name>/*.pyc tests/*.pyc |
| 71 | + rm -f <project_folder_name>/*.pyo tests/*.pyo |
| 72 | + rm -f <project_folder_name>/*~ tests/*~ |
| 73 | + |
| 74 | +clean: clean-tests clean-coverage clean-build clean-pyc |
0 commit comments