Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Copyright (C) 2015-2016 lpschedule-generator contributors. See CONTRIBUTORS.
  4. #
  5. # This file is part of lpschedule-generator.
  6. #
  7. # lpschedule-generator is free software: you can redistribute it
  8. # and/or modify it under the terms of the GNU General Public License
  9. # as published by the Free Software Foundation, either version 3 of
  10. # the License, or (at your option) any later version.
  11. #
  12. # lpschedule-generator is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. # General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with lpschedule-generator (see COPYING). If not, see
  19. # <http://www.gnu.org/licenses/>.
  20. test:
  21. @nosetests
  22. .PHONY: test
  23. build-dist:
  24. @python setup.py sdist bdist_wheel
  25. egg:
  26. @python setup.py egg_info
  27. upload:
  28. @twine upload -r pypi -s -i '1534 126D 8C8E AD29 EDD9 1396 6BE9 3D8B F866 4377' dist/*.tar.gz
  29. @twine upload -r pypi -s -i '1534 126D 8C8E AD29 EDD9 1396 6BE9 3D8B F866 4377' dist/*.whl
  30. .PHONY: build-dist egg upload
  31. docs:
  32. @$(MAKE) -C docs html
  33. upload-docs: docs
  34. @python setup.py upload_docs -r pypi --show-response --upload-dir docs/_build/html
  35. .PHONY: docs upload-docs
  36. clean-build:
  37. @rm -rf build/
  38. @rm -rf dist/
  39. @rm -rf *.egg-info
  40. clean-pyc:
  41. @find . -name '*.pyc' -exec rm -f {} +
  42. clean-venv:
  43. @rm -rf bin/
  44. @rm -rf include/
  45. @rm -rf lib/
  46. @rm -rf local/
  47. @rm -rf man/
  48. clean-docs:
  49. @$(MAKE) -C docs clean
  50. .PHONY: clean-build clean-pyc clean-venv clean-docs
  51. dev-packages:
  52. @pip install -U nose mock restructuredtext_lint
  53. @pip install -U wheel twine
  54. @pip install -U Sphinx
  55. .PHONY: dev-packages