Show More
@@ -7,7 +7,7 b" python -c 'import keyring'" | |||
|
7 | 7 | python -c 'import twine' |
|
8 | 8 | python -c 'import sphinx' |
|
9 | 9 | python -c 'import sphinx_rtd_theme' |
|
10 |
python -c 'import |
|
|
10 | python -c 'import pytest' | |
|
11 | 11 | |
|
12 | 12 | |
|
13 | 13 | BLACK=$(tput setaf 1) |
@@ -21,6 +21,7 b' WHITE=$(tput setaf 7)' | |||
|
21 | 21 | NOR=$(tput sgr0) |
|
22 | 22 | |
|
23 | 23 | |
|
24 | echo "Will use $EDITOR to edit files when necessary" | |
|
24 | 25 | echo -n "PREV_RELEASE (X.y.z) [$PREV_RELEASE]: " |
|
25 | 26 | read input |
|
26 | 27 | PREV_RELEASE=${input:-$PREV_RELEASE} |
@@ -38,18 +39,40 b' ask_section(){' | |||
|
38 | 39 | echo |
|
39 | 40 | echo $BLUE"$1"$NOR |
|
40 | 41 | echo -n $GREEN"Press Enter to continue, S to skip: "$NOR |
|
41 | read -n1 value | |
|
42 | echo | |
|
43 | if [ -z $value ] || [ $value = 'y' ] ; then | |
|
42 | if [ "$ZSH_NAME" = "zsh" ] ; then | |
|
43 | read -k1 value | |
|
44 | value=${value%$'\n'} | |
|
45 | else | |
|
46 | read -n1 value | |
|
47 | fi | |
|
48 | if [ -z "$value" ] || [ $value = 'y' ]; then | |
|
44 | 49 | return 0 |
|
45 | 50 | fi |
|
46 | 51 | return 1 |
|
47 | 52 | } |
|
48 | 53 | |
|
49 | 54 | |
|
55 | maybe_edit(){ | |
|
56 | echo | |
|
57 | echo $BLUE"$1"$NOR | |
|
58 | echo -n $GREEN"Press e to Edit $1, 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 | ||
|
50 | 73 | |
|
51 | 74 | echo |
|
52 |
if ask_section "Updating what's new with information |
|
|
75 | if ask_section "Updating what's new with information from docs/source/whatsnew/pr" | |
|
53 | 76 | then |
|
54 | 77 | python tools/update_whatsnew.py |
|
55 | 78 | |
@@ -100,6 +123,11 b' echo "Cleaning repository"' | |||
|
100 | 123 | git clean -xfdi |
|
101 | 124 | |
|
102 | 125 | echo $GREEN"please update version number in ${RED}IPython/core/release.py${NOR} , Do not commit yet – we'll do it later."$NOR |
|
126 | echo $GREEN"I tried ${RED}sed -i bkp -e '/Uncomment/s/^# //g' IPython/core/release.py${NOR}" | |
|
127 | sed -i bkp -e '/Uncomment/s/^# //g' IPython/core/release.py | |
|
128 | rm IPython/core/release.pybkp | |
|
129 | git diff | cat | |
|
130 | maybe_edit IPython/core/release.py | |
|
103 | 131 | |
|
104 | 132 | echo $GREEN"Press enter to continue"$NOR |
|
105 | 133 | read |
@@ -142,7 +170,14 b' then' | |||
|
142 | 170 | |
|
143 | 171 | |
|
144 | 172 | echo $GREEN"please update version number and back to .dev in ${RED}IPython/core/release.py" |
|
173 | echo $GREEN"I tried ${RED}sed -i bkp -e '/Uncomment/s/^/# /g' IPython/core/release.py${NOR}" | |
|
174 | sed -i bkp -e '/Uncomment/s/^/# /g' IPython/core/release.py | |
|
175 | rm IPython/core/release.pybkp | |
|
176 | git diff | cat | |
|
177 | echo $GREEN"Please bump ${RED}the minor version number${NOR}" | |
|
178 | maybe_edit IPython/core/release.py | |
|
145 | 179 | echo ${BLUE}"Do not commit yet – we'll do it later."$NOR |
|
180 | ||
|
146 | 181 | |
|
147 | 182 | echo $GREEN"Press enter to continue"$NOR |
|
148 | 183 | read |
General Comments 0
You need to be logged in to leave comments.
Login now