Show More
@@ -7,7 +7,7 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 |
|
10 | python -c 'import pytest' | |
11 |
|
11 | |||
12 |
|
12 | |||
13 | BLACK=$(tput setaf 1) |
|
13 | BLACK=$(tput setaf 1) | |
@@ -21,6 +21,7 WHITE=$(tput setaf 7) | |||||
21 | NOR=$(tput sgr0) |
|
21 | NOR=$(tput sgr0) | |
22 |
|
22 | |||
23 |
|
23 | |||
|
24 | echo "Will use $BLUE'$EDITOR'$NOR to edit files when necessary" | |||
24 | echo -n "PREV_RELEASE (X.y.z) [$PREV_RELEASE]: " |
|
25 | echo -n "PREV_RELEASE (X.y.z) [$PREV_RELEASE]: " | |
25 | read input |
|
26 | read input | |
26 | PREV_RELEASE=${input:-$PREV_RELEASE} |
|
27 | PREV_RELEASE=${input:-$PREV_RELEASE} | |
@@ -36,7 +37,7 BRANCH=${input:-$BRANCH} | |||||
36 |
|
37 | |||
37 | ask_section(){ |
|
38 | ask_section(){ | |
38 | echo |
|
39 | echo | |
39 |
echo $BLUE"$1"$NOR |
|
40 | echo $BLUE"$1"$NOR | |
40 | echo -n $GREEN"Press Enter to continue, S to skip: "$NOR |
|
41 | echo -n $GREEN"Press Enter to continue, S to skip: "$NOR | |
41 | if [ "$ZSH_NAME" = "zsh" ] ; then |
|
42 | if [ "$ZSH_NAME" = "zsh" ] ; then | |
42 | read -k1 value |
|
43 | read -k1 value | |
@@ -51,9 +52,27 ask_section(){ | |||||
51 | } |
|
52 | } | |
52 |
|
53 | |||
53 |
|
54 | |||
|
55 | maybe_edit(){ | |||
|
56 | echo | |||
|
57 | echo $BLUE"$1"$NOR | |||
|
58 | echo -n $GREEN"Press ${BLUE}e$GREEN to Edit ${BLUE}$1$GREEN, any other keys to skip: "$NOR | |||
|
59 | if [ "$ZSH_NAME" = "zsh" ] ; then | |||
|
60 | read -k1 value | |||
|
61 | value=${value%$'\n'} | |||
|
62 | else | |||
|
63 | read -n1 value | |||
|
64 | fi | |||
|
65 | ||||
|
66 | echo | |||
|
67 | if [ $value = 'e' ] ; then | |||
|
68 | $=EDITOR $1 | |||
|
69 | fi | |||
|
70 | } | |||
|
71 | ||||
|
72 | ||||
54 |
|
73 | |||
55 | echo |
|
74 | echo | |
56 |
if ask_section "Updating what's new with information |
|
75 | if ask_section "Updating what's new with information from docs/source/whatsnew/pr" | |
57 | then |
|
76 | then | |
58 | python tools/update_whatsnew.py |
|
77 | python tools/update_whatsnew.py | |
59 |
|
78 | |||
@@ -107,7 +126,8 echo $GREEN"please update version number in ${RED}IPython/core/release.py${NOR} | |||||
107 | echo $GREEN"I tried ${RED}sed -i bkp -e '/Uncomment/s/^# //g' IPython/core/release.py${NOR}" |
|
126 | echo $GREEN"I tried ${RED}sed -i bkp -e '/Uncomment/s/^# //g' IPython/core/release.py${NOR}" | |
108 | sed -i bkp -e '/Uncomment/s/^# //g' IPython/core/release.py |
|
127 | sed -i bkp -e '/Uncomment/s/^# //g' IPython/core/release.py | |
109 | rm IPython/core/release.pybkp |
|
128 | rm IPython/core/release.pybkp | |
110 | git diff |
|
129 | git diff | cat | |
|
130 | maybe_edit IPython/core/release.py | |||
111 |
|
131 | |||
112 | echo $GREEN"Press enter to continue"$NOR |
|
132 | echo $GREEN"Press enter to continue"$NOR | |
113 | read |
|
133 | read | |
@@ -153,8 +173,9 then | |||||
153 | echo $GREEN"I tried ${RED}sed -i bkp -e '/Uncomment/s/^/# /g' IPython/core/release.py${NOR}" |
|
173 | echo $GREEN"I tried ${RED}sed -i bkp -e '/Uncomment/s/^/# /g' IPython/core/release.py${NOR}" | |
154 | sed -i bkp -e '/Uncomment/s/^/# /g' IPython/core/release.py |
|
174 | sed -i bkp -e '/Uncomment/s/^/# /g' IPython/core/release.py | |
155 | rm IPython/core/release.pybkp |
|
175 | rm IPython/core/release.pybkp | |
156 | git diff |
|
176 | git diff | cat | |
157 | echo $GREEN"Please bump ${RED}the minor version number${NOR}" |
|
177 | echo $GREEN"Please bump ${RED}the minor version number${NOR}" | |
|
178 | maybe_edit IPython/core/release.py | |||
158 | echo ${BLUE}"Do not commit yet – we'll do it later."$NOR |
|
179 | echo ${BLUE}"Do not commit yet – we'll do it later."$NOR | |
159 |
|
180 | |||
160 |
|
181 |
General Comments 0
You need to be logged in to leave comments.
Login now