release_helper.sh
57 lines
| 1.2 KiB
| application/x-sh
|
BashLexer
/ tools / release_helper.sh
Matthias Bussonnier
|
r24981 | # Simple tool to help for release | ||
# when releasing with bash, simplei source it to get asked questions. | ||||
echo -n PREV_RELEASE: | ||||
read PREV_RELEASE | ||||
echo -n MILESTONE: | ||||
read MILESTONE | ||||
echo -n VERSION: | ||||
read VERSION | ||||
echo -n branch: | ||||
read branch | ||||
Matthias Bussonnier
|
r24982 | echo | ||
Matthias Bussonnier
|
r24981 | echo "updating what's new with informations from docs/source/whatsnew/pr" | ||
python tools/update_whatsnew.py | ||||
Matthias Bussonnier
|
r24982 | echo | ||
Matthias Bussonnier
|
r25016 | echo "please move the contents of "docs/source/whatsnew/development.rst" to version-X.rst" | ||
Matthias Bussonnier
|
r24982 | echo "Press enter to continue" | ||
read | ||||
echo | ||||
Matthias Bussonnier
|
r24981 | echo "here are all the authors that contributed to this release:" | ||
git log --format="%aN <%aE>" $PREV_RELEASE... | sort -u -f | ||||
Matthias Bussonnier
|
r24982 | echo | ||
Matthias Bussonnier
|
r24981 | echo "If you see any duplicates cancel (Ctrl-C), then edit .mailmap" Press enter to continue | ||
read | ||||
echo "generating stats" | ||||
python tools/github_stats.py --milestone $MILESTONE > stats.rst | ||||
echo "stats.rst files generated. Please merge it with the right file (github-stats-X.rst)" | ||||
echo "press enter to continue." | ||||
read | ||||
echo "Cleaning repository" | ||||
git clean -xfdi | ||||
echo "please update version number in IPython/core/release.py" | ||||
echo "Press enter to continue" | ||||
read | ||||
Matthias Bussonnier
|
r24982 | |||
echo | ||||
echo "Attempting to build the docs.." | ||||
make html -C docs | ||||
echo | ||||
echo "Check the docs, press enter to continue" | ||||
read | ||||
echo | ||||
echo "Attempting to build package..." | ||||
tools/build_release | ||||