mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
34 lines
829 B
Bash
Executable File
34 lines
829 B
Bash
Executable File
#!/bin/sh
|
|
# -*- coding: utf-8 -*-
|
|
|
|
python setup.py publish || exit
|
|
|
|
### @todo make_doc AFTER having incremented version
|
|
|
|
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.rst and doc/changes.rst now, then press enter"
|
|
read foobar
|
|
git add README.rst doc/changes.rst
|
|
|
|
git commit -m "Publish version $version"
|
|
|
|
echo "Break (Ctrl+c) here if something is wrong. Else, press enter"
|
|
read foobar
|
|
|
|
cp COPYING* github
|
|
python setup.py sdist upload
|
|
rm -rf github/COPYING*
|
|
|
|
git tag -m "Version $version" v$version
|
|
|
|
git push github master master:develop
|
|
git push --force github gh-pages
|
|
git push --tags
|