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.
 
 
 

30 lines
731 B

  1. #!/bin/bash
  2. set -e
  3. pip install -q --upgrade pep8 autopep8
  4. #pip install -q --upgrade autopep8
  5. if ! python setup.py test; then
  6. echo "The test suite failed. Fix it!"
  7. exit 1
  8. fi
  9. autopep8 -i *.py
  10. # commented some errors temporarly, TODO: remove them and fix the code
  11. pep8 --max-line-length=180 --ignore=E502,E128,E123,E127,E125 src
  12. echo "Please don't run this as a user. This generates a new release for PyPI. Press ^C to exit or Enter to continue."
  13. read
  14. # Clear old distutils stuff
  15. rm -rf build dist MANIFEST &> /dev/null
  16. # Build installers, etc. and upload to PyPI
  17. # python setup.py register sdist bdist_wininst upload
  18. #python setup.py register sdist build_sphinx upload upload_sphinx
  19. python setup.py register sdist upload