Python client for The TVDB REST API

Makefile 679B

1234567891011121314151617181920212223242526272829303132
  1. TARGET?=test
  2. test:
  3. PYTHONPATH="." python -m pytest tests/ --junit-xml testresults.xml -rxsw -v
  4. compile:
  5. @echo Compiling python code
  6. python -m compileall tvdbrest
  7. compile_optimized:
  8. @echo Compiling python code optimized
  9. python -O -m compileall tvdbrest
  10. coverage:
  11. coverage erase
  12. PYTHONPATH="." coverage run --source='tvdbrest' --branch -m py.test -qq tests/
  13. coverage xml -i
  14. coverage report -m
  15. clean:
  16. find -name "*.py?" -delete
  17. rm -f coverage.xml
  18. rm -f testresults.xml
  19. rm -fr htmlcov dist *.egg-info
  20. travis: compile compile_optimized test coverage
  21. install_deps:
  22. pip install -r requirements.txt
  23. pip install -r requirements_dev.txt
  24. jenkins: install_deps travis