Makefile 735 B

12345678910111213141516171819202122232425262728293031323334
  1. EXECUTABLE_NAME := nesi
  2. init:
  3. @echo "Installing development dependencies"
  4. pip install flake8
  5. pip install pylint
  6. pip install nose
  7. test:
  8. @echo "Executing all tests"
  9. nosetests
  10. lint:
  11. @echo "Checking code for PEP8 compliance and common code smells"
  12. flake8 $(EXECUTABLE_NAME)
  13. flake8 **/*.py
  14. @echo "Checking code more aggressively for code smells"
  15. pylint -E $(EXECUTABLE_NAME)
  16. pylint -E **/*.py
  17. deploy-test:
  18. @echo "Uploading package to PyPi Test Server"
  19. python setup.py register -r pypitest
  20. deploy:
  21. @echo "Uploading package to PyPi"
  22. python setup.py register -r pypi
  23. python setup.py sdist upload -r pypi
  24. install:
  25. @echo "Installing development build"
  26. pip install -e .
  27. .PHONY: init test lint deploy-test deploy install