Makefile 886 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. contrib/doc2ghpages
  9. autodoc:
  10. contrib/doc4allmods celery
  11. flakes:
  12. find . -name "*.py" | xargs pyflakes
  13. clean_readme:
  14. rm -f README.rst
  15. readme: clean_readme
  16. python contrib/sphinx-to-rst.py docs/introduction.rst > README.rst
  17. bump:
  18. contrib/bump -c celery
  19. coverage2:
  20. [ -d testproj/temp ] || mkdir -p testproj/temp
  21. (cd testproj; python manage.py test --figleaf)
  22. coverage:
  23. [ -d testproj/temp ] || mkdir -p testproj/temp
  24. (cd testproj; python manage.py test --coverage)
  25. test:
  26. (cd testproj; python manage.py test)
  27. testverbose:
  28. (cd testproj; python manage.py test --verbosity=2)
  29. releaseok: pep8 autodoc test
  30. removepyc:
  31. find . -name "*.pyc" | xargs rm
  32. release: releaseok ghdocs removepyc