@@ -26,7 +26,7 @@ BROWSER := python -c "$$BROWSER_PYSCRIPT"
2626help :
2727 @python -c " $$ PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST )
2828
29- clean : clean-build clean-pyc clean-test # # remove all build, test, coverage and Python artifacts
29+ clean : clean-build clean-pyc clean-test clean-env
3030
3131clean-build : # # remove build artifacts
3232 rm -fr build/
@@ -47,38 +47,46 @@ clean-test: ## remove test and coverage artifacts
4747 rm -fr htmlcov/
4848 rm -fr .pytest_cache
4949
50+ clean-env :
51+ rm -fr .env/
52+
5053lint : # # check style with flake8
51- flake8 minos tests
54+ poetry run flake8
5255
5356test : # # run tests quickly with the default Python
54- pytest
57+ poetry run pytest
5558
5659test-all : # # run tests on every Python version with tox
57- tox
60+ poetry run tox
5861
5962coverage : # # check code coverage quickly with the default Python
60- coverage run --source minos -m pytest
61- coverage report -m
62- coverage xml
63+ poetry run coverage run --source minos -m pytest
64+ poetry run coverage report -m
65+ poetry run coverage xml
66+ # # $(BROWSER) htmlcov/index.html
67+
68+ reformat : # # check code coverage quickly with the default Python
69+ poetry run black --line-length 120 minos tests
70+ poetry run isort --recursive minos tests
6371
6472docs : # # generate Sphinx HTML documentation, including API docs
65- rm -f docs/discovery_service .rst
73+ rm -f docs/minos_discovery .rst
6674 rm -f docs/modules.rst
67- sphinx-apidoc -o docs/ discovery_service
68- $(MAKE ) -C docs clean
69- $(MAKE ) -C docs html
70- $(BROWSER ) docs/_build/html/index.html
75+ poetry run sphinx-apidoc -o docs/api minos
76+ poetry run $(MAKE ) -C docs clean
77+ poetry run $(MAKE ) -C docs html
7178
7279servedocs : docs # # compile the docs watching for changes
7380 watchmedo shell-command -p ' *.rst' -c ' $(MAKE) -C docs html' -R -D .
7481
7582release : dist # # package and upload a release
76- twine upload dist/ *
83+ poetry publish
7784
7885dist : clean # # builds source and wheel package
79- python setup.py sdist
80- python setup.py bdist_wheel
86+ poetry build
8187 ls -l dist
8288
83- install : clean # # install the package to the active Python's site-packages
84- python setup.py install
89+ install :
90+ poetry install
91+
92+ full-install : clean install
0 commit comments