Files
PyGithub/publish.sh
T
Zearin 4c6a70c24a Add encoding comment to source files
This is a minor thing.  It’s a convention, not a rule (obviously)—but it’s also a best practice.

Many text editors look for this kind of comment as the first line—or second line, if there is a shebang (the `#!/usr/bin/env python`, or whatever else)—and make use of this to determine the file’s encoding.
2012-11-01 11:43:56 -04:00

31 lines
816 B
Bash
Executable File

#!/bin/sh
# -*- coding: utf-8 -*-
pep8 --ignore=E501 github # pip install pep8
python setup.py test
previousVersion=$( grep 'version =' setup.py | sed 's/.*version = \"\(.*\)\".*/\1/' )
echo "Next version number? (previous: '$previousVersion')"
read version
sed -i -b "s/version = .*/version = \"$version\",/" setup.py
git add setup.py
git log v$previousVersion.. --oneline
echo "Edit ReadMe.md and doc/ChangeLog.md now, then press enter"
read foobar
git add ReadMe.md doc/ChangeLog.md
echo "Break (Ctrl+c) here if something is wrong. Else, press enter"
read foobar
git commit -m "Publish version $version"
git tag -m "Version $version" v$version
cp -r *.md doc COPYING* github
python setup.py sdist upload
rm -rf github/*.md github/doc github/COPYING*
git push origin master master:develop
git push --tags