Makefile 740 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .PHONY: test
  2. test: develop
  3. @python setup.py test
  4. .PHONY: develop
  5. develop:
  6. @pip install -e .[dev]
  7. pre-commit install
  8. .PHONY: docs
  9. docs:
  10. @pip install -e .[docs]
  11. $(MAKE) --directory=docs/ html
  12. clean-build:
  13. rm -fr build/
  14. rm -fr dist/
  15. rm -fr *.egg-info
  16. rm -fr *.egg
  17. clean-pyc:
  18. find . -name '*.pyc' -exec rm -f {} +
  19. find . -name '*.pyo' -exec rm -f {} +
  20. find . -name '*~' -exec rm -f {} +
  21. find . -name '__pycache__' -exec rm -fr {} +
  22. .PHONY: dist
  23. dist:
  24. @pip install twine
  25. @python setup.py sdist
  26. .PHONY: upload-test
  27. upload-test: dist
  28. @python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
  29. upload: dist
  30. @python -m twine upload dist/*
  31. .PHONY: clean-pyc clean-build clean
  32. clean: clean-build clean-pyc