Makefile 753 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. clean: clean-eggs clean-build
  2. @find . -iname '*.pyc' -delete
  3. @find . -iname '*.pyo' -delete
  4. @find . -iname '*~' -delete
  5. @find . -iname '*.swp' -delete
  6. @find . -iname '__pycache__' -delete
  7. clean-eggs:
  8. @find . -name '*.egg' -print0|xargs -0 rm -rf --
  9. @rm -rf .eggs/
  10. clean-build:
  11. @rm -fr build/
  12. @rm -fr dist/
  13. @rm -fr *.egg-info
  14. clean-api-doc:
  15. @rm -rf docs/modules/*
  16. api-doc:
  17. @sphinx-apidoc -e -o docs/modules/ echo/
  18. test:
  19. python setup.py test
  20. release: clean
  21. git tag `python setup.py -q version`
  22. git push origin `python setup.py -q version`
  23. python setup.py sdist
  24. python setup.py bdist_wheel
  25. twine upload dist/*
  26. rst:
  27. @pandoc --from=markdown --to=rst --output=README.rst README.md
  28. docker:
  29. docker build -f Dockerfile_dev -t echod .