You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

61 lines
1.2 KiB

  1. # Makefile for KISS Python Module.
  2. #
  3. # Source:: https://github.com/ampledata/kiss
  4. # Author:: Greg Albrecht W2GMD <oss@undef.net>
  5. # Copyright:: Copyright 2017 Greg Albrecht and Contributors
  6. # License:: Apache License, Version 2.0
  7. #
  8. .DEFAULT_GOAL := all
  9. all: develop
  10. install_requirements:
  11. pip install -r requirements.txt
  12. develop: remember
  13. python setup.py develop
  14. install: remember
  15. python setup.py install
  16. uninstall:
  17. pip uninstall -y kiss
  18. reinstall: uninstall install
  19. remember:
  20. @echo
  21. @echo "Hello from the Makefile..."
  22. @echo "Don't forget to run: 'make install_requirements'"
  23. @echo
  24. clean:
  25. @rm -rf *.egg* build dist *.py[oc] */*.py[co] cover doctest_pypi.cfg \
  26. nosetests.xml pylint.log output.xml flake8.log tests.log \
  27. test-result.xml htmlcov fab.log .coverage
  28. publish:
  29. python setup.py register sdist upload
  30. nosetests: remember
  31. python setup.py nosetests
  32. pep8: remember
  33. flake8 --max-complexity 12 --exit-zero kiss/*.py tests/*.py
  34. flake8: pep8
  35. lint: remember
  36. pylint --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" \
  37. -r n --ignore-imports=y kiss/*.py tests/*.py || exit 0
  38. pylint: lint
  39. coverage:
  40. coverage report -m
  41. test: lint pep8 nosetests coverage