1234567891011121314151617181920212223242526272829303132333435363738394041 |
- .PHONY: test
- test: develop
- @python setup.py test
- .PHONY: develop
- develop:
- @pip install -e .[dev]
- pre-commit install
- .PHONY: docs
- docs:
- @pip install -e .[docs]
- $(MAKE) --directory=docs/ html
- clean-build:
- rm -fr build/
- rm -fr dist/
- rm -fr *.egg-info
- rm -fr *.egg
- clean-pyc:
- find . -name '*.pyc' -exec rm -f {} +
- find . -name '*.pyo' -exec rm -f {} +
- find . -name '*~' -exec rm -f {} +
- find . -name '__pycache__' -exec rm -fr {} +
- .PHONY: dist
- dist:
- @pip install twine
- @python setup.py sdist
- .PHONY: upload-test
- upload-test: dist
- @python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
- upload: dist
- @python -m twine upload dist/*
- .PHONY: clean-pyc clean-build clean
- clean: clean-build clean-pyc
|