Show More
@@ -1,82 +1,89 b'' | |||||
1 | # Simple tool to help for release |
|
1 | # Simple tool to help for release | |
2 | # when releasing with bash, simplei source it to get asked questions. |
|
2 | # when releasing with bash, simplei source it to get asked questions. | |
3 |
|
3 | |||
4 | # misc check before starting |
|
4 | # misc check before starting | |
5 |
|
5 | |||
6 | python -c 'import keyring' |
|
6 | python -c 'import keyring' | |
7 | python -c 'import twine' |
|
7 | python -c 'import twine' | |
8 | python -c 'import sphinx' |
|
8 | python -c 'import sphinx' | |
9 | python -c 'import sphinx_rtd_theme' |
|
9 | python -c 'import sphinx_rtd_theme' | |
10 | python -c 'import nose' |
|
10 | python -c 'import nose' | |
11 |
|
11 | |||
12 | echo -n 'PREV_RELEASE (X.y.z):' |
|
12 | echo -n 'PREV_RELEASE (X.y.z):' | |
13 | read PREV_RELEASE |
|
13 | read PREV_RELEASE | |
14 | echo -n 'MILESTONE (X.y):' |
|
14 | echo -n 'MILESTONE (X.y):' | |
15 | read MILESTONE |
|
15 | read MILESTONE | |
16 | echo -n 'VERSION (X.y.z):' |
|
16 | echo -n 'VERSION (X.y.z):' | |
17 | read VERSION |
|
17 | read VERSION | |
18 | echo -n 'branch (master|X.y):' |
|
18 | echo -n 'branch (master|X.y):' | |
19 | read branch |
|
19 | read branch | |
20 |
|
20 | |||
|
21 | BLACK=$(tput setaf 1) | |||
21 | RED=$(tput setaf 1) |
|
22 | RED=$(tput setaf 1) | |
|
23 | GREEN=$(tput setaf 2) | |||
|
24 | YELLOW=$(tput setaf 3) | |||
|
25 | BLUE=$(tput setaf 4) | |||
|
26 | MAGENTA=$(tput setaf 5) | |||
|
27 | CYAN=$(tput setaf 6) | |||
|
28 | WHITE=$(tput setaf 7) | |||
22 | NOR=$(tput sgr0) |
|
29 | NOR=$(tput sgr0) | |
23 |
|
30 | |||
24 | echo |
|
31 | echo | |
25 |
echo |
|
32 | echo $BLUE"Updating what's new with informations from docs/source/whatsnew/pr"$NOR | |
26 | python tools/update_whatsnew.py |
|
33 | python tools/update_whatsnew.py | |
27 |
|
34 | |||
28 | echo |
|
35 | echo | |
29 | echo "please move the contents of "docs/source/whatsnew/development.rst" to version-X.rst" |
|
36 | echo $BLUE"please move the contents of "docs/source/whatsnew/development.rst" to version-X.rst"$NOR | |
30 | echo "Press enter to continue" |
|
37 | echo $GREEN"Press enter to continue"$NOR | |
31 | read |
|
38 | read | |
32 |
|
39 | |||
33 | echo |
|
40 | echo | |
34 | echo "here are all the authors that contributed to this release:" |
|
41 | echo $BLUE"here are all the authors that contributed to this release:"$NOR | |
35 | git log --format="%aN <%aE>" $PREV_RELEASE... | sort -u -f |
|
42 | git log --format="%aN <%aE>" $PREV_RELEASE... | sort -u -f | |
36 |
|
43 | |||
37 | echo |
|
44 | echo | |
38 |
echo "If you see any duplicates cancel (Ctrl-C), then edit .mailmap |
|
45 | echo $BLUE"If you see any duplicates cancel (Ctrl-C), then edit .mailmap."$GREEN"Press enter to continue:"$NOR | |
39 | read |
|
46 | read | |
40 |
|
47 | |||
41 | echo "generating stats" |
|
48 | echo $BLUE"generating stats"NOR | |
42 | python tools/github_stats.py --milestone $MILESTONE > stats.rst |
|
49 | python tools/github_stats.py --milestone $MILESTONE > stats.rst | |
43 |
|
50 | |||
44 |
echo "stats.rst files generated. |
|
51 | echo $BLUE"stats.rst files generated."$GREEN"Please merge it with the right file (github-stats-X.rst)"$NOR | |
45 | echo "press enter to continue." |
|
52 | echo $GREEN"press enter to continue."$NOR | |
46 | read |
|
53 | read | |
47 |
|
54 | |||
48 | echo "Cleaning repository" |
|
55 | echo "Cleaning repository" | |
49 | git clean -xfdi |
|
56 | git clean -xfdi | |
50 |
|
57 | |||
51 | echo "please update version number in ${RED}IPython/core/release.py${NOR} , Do not commit yet βΒ we'll do it later." |
|
58 | echo "please update version number in ${RED}IPython/core/release.py${NOR} , Do not commit yet βΒ we'll do it later." | |
52 |
|
59 | |||
53 | echo "Press enter to continue" |
|
60 | echo "Press enter to continue" | |
54 | read |
|
61 | read | |
55 |
|
62 | |||
56 | echo |
|
63 | echo | |
57 | echo "Attempting to build the docs.." |
|
64 | echo "Attempting to build the docs.." | |
58 | make html -C docs |
|
65 | make html -C docs | |
59 |
|
66 | |||
60 | echo |
|
67 | echo | |
61 | echo "Check the docs, press enter to continue" |
|
68 | echo "Check the docs, press enter to continue" | |
62 | read |
|
69 | read | |
63 |
|
70 | |||
64 | echo |
|
71 | echo | |
65 | echo "Attempting to build package..." |
|
72 | echo "Attempting to build package..." | |
66 |
|
73 | |||
67 | tools/build_release |
|
74 | tools/build_release | |
68 |
|
75 | |||
69 | echo |
|
76 | echo | |
70 | echo "Let\'s commit : git commit -am \"release $VERSION\" -S" |
|
77 | echo "Let\'s commit : git commit -am \"release $VERSION\" -S" | |
71 | echo $"Press enter to continue" |
|
78 | echo $"Press enter to continue" | |
72 | read |
|
79 | read | |
73 | git commit -am "release $VERSION" -S |
|
80 | git commit -am "release $VERSION" -S | |
74 |
|
81 | |||
75 | echo |
|
82 | echo | |
76 | echo "git push origin \$BRANCH ?" |
|
83 | echo "git push origin \$BRANCH ?" | |
77 | echo "Press enter to continue" |
|
84 | echo "Press enter to continue" | |
78 | read |
|
85 | read | |
79 | git push origin $BRANCH |
|
86 | git push origin $BRANCH | |
80 | # git tag -am "release $VERSION" "$VERSION" -s |
|
87 | # git tag -am "release $VERSION" "$VERSION" -s | |
81 | # git push origin $VERSION |
|
88 | # git push origin $VERSION | |
82 |
|
89 |
General Comments 0
You need to be logged in to leave comments.
Login now