From ef7a39d9fc8d6ae5f1fcfaf9031bd148f59047de Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Tue, 26 Jun 2012 13:33:41 +0100 Subject: [PATCH] version 0.4 pep8 fixes and replaced few prints with logging.debug() calls --- MANIFEST.in | 5 +++++ release.sh | 29 +++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 MANIFEST.in create mode 100755 release.sh diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..527c14d --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,5 @@ +include README.txt +include CHANGES.txt +include README +recursive-include src *.txt *.py *.tar.gz + diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..680ff95 --- /dev/null +++ b/release.sh @@ -0,0 +1,29 @@ +#!/bin/bash +set -e + +pip install -q --upgrade pep8 autopep8 +#pip install -q --upgrade autopep8 + +if ! python setup.py test; then + echo "The test suite failed. Fix it!" + exit 1 +fi + +autopep8 -i *.py + +# commented some errors temporarly, TODO: remove them and fix the code +pep8 --max-line-length=180 --ignore=E502,E128,E123,E127,E125 src + +echo "Please don't run this as a user. This generates a new release for PyPI. Press ^C to exit or Enter to continue." +read + + +# Clear old distutils stuff +rm -rf build dist MANIFEST &> /dev/null + +# Build installers, etc. and upload to PyPI +# python setup.py register sdist bdist_wininst upload + +#python setup.py register sdist build_sphinx upload upload_sphinx +python setup.py register sdist upload +