Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. PEP8=pep8
  2. pep8:
  3. (find . -name "*.py" | xargs pep8 | perl -nle'\
  4. print; $$a=1 if $$_}{exit($$a)')
  5. cycomplex:
  6. find celery -type f -name "*.py" | xargs pygenie.py complexity
  7. ghdocs:
  8. rm -rf docs/.build
  9. contrib/doc2ghpages
  10. upload_github_docs: ghdocs
  11. upload_pypi_docs:
  12. python setup.py build_sphinx && python setup.py upload_sphinx
  13. upload_docs: upload_github_docs upload_pypi_docs
  14. autodoc:
  15. contrib/doc4allmods celery
  16. verifyindex:
  17. contrib/verify-reference-index.sh
  18. flakes:
  19. find . -name "*.py" | xargs pyflakes
  20. clean_readme:
  21. rm -f README.rst README
  22. readme: clean_readme
  23. python contrib/sphinx-to-rst.py docs/templates/readme.txt > README.rst
  24. ln -s README.rst README
  25. bump:
  26. contrib/bump -c celery
  27. cover:
  28. (cd testproj; python manage.py test --coverage)
  29. coverage: cover
  30. quickcover:
  31. (cd testproj; env QUICKTEST=1 SKIP_RLIMITS=1 python manage.py test --coverage)
  32. test:
  33. (cd testproj; python manage.py test)
  34. quicktest:
  35. (cd testproj; SKIP_RLIMITS=1 python manage.py test)
  36. testverbose:
  37. (cd testproj; python manage.py test --verbosity=2)
  38. releaseok: pep8 autodoc verifyindex test gitclean
  39. removepyc:
  40. find . -name "*.pyc" | xargs rm
  41. release: releaseok ghdocs removepyc
  42. gitclean: removepyc
  43. git clean -xdn
  44. gitcleanforce: removepyc
  45. git clean -xdf