##// END OF EJS Templates
some updates to the release scripts
Matthias Bussonnier -
Show More
@@ -9,14 +9,6 b" 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):'
13 read PREV_RELEASE
14 echo -n 'MILESTONE (X.y):'
15 read MILESTONE
16 echo -n 'VERSION (X.y.z):'
17 read VERSION
18 echo -n 'branch (master|X.y):'
19 read branch
20
12
21 BLACK=$(tput setaf 1)
13 BLACK=$(tput setaf 1)
22 RED=$(tput setaf 1)
14 RED=$(tput setaf 1)
@@ -28,30 +20,65 b' CYAN=$(tput setaf 6)'
28 WHITE=$(tput setaf 7)
20 WHITE=$(tput setaf 7)
29 NOR=$(tput sgr0)
21 NOR=$(tput sgr0)
30
22
31 echo
32 echo $BLUE"Updating what's new with informations from docs/source/whatsnew/pr"$NOR
33 python tools/update_whatsnew.py
34
23
35 echo
24 echo -n "PREV_RELEASE (X.y.z) [$PREV_RELEASE]: "
36 echo $BLUE"please move the contents of "docs/source/whatsnew/development.rst" to version-X.rst"$NOR
25 read input
37 echo $GREEN"Press enter to continue"$NOR
26 PREV_RELEASE=${input:-$PREV_RELEASE}
38 read
27 echo -n "MILESTONE (X.y) [$MILESTONE]: "
28 read input
29 MILESTONE=${input:-$MILESTONE}
30 echo -n "VERSION (X.y.z) [$VERSION]:"
31 read input
32 VERSION=${input:-$VERSION}
33 echo -n "branch (master|X.y) [$branch]:"
34 read input
35 branch=${input:-$branch}
36
37 ask_section(){
38 echo
39 echo $BLUE"$1"$NOR
40 echo -n $GREEN"Press Enter to continue, S to skip: "$GREEN
41 read -n1 value
42 echo
43 if [ -z $value ] || [ $value = 'y' ] ; then
44 return 0
45 fi
46 return 1
47 }
48
39
49
40 echo
41 echo $BLUE"here are all the authors that contributed to this release:"$NOR
42 git log --format="%aN <%aE>" $PREV_RELEASE... | sort -u -f
43
50
44 echo
51 echo
45 echo $BLUE"If you see any duplicates cancel (Ctrl-C), then edit .mailmap.\n"$GREEN"Press enter to continue:"$NOR
52 if ask_section "Updating what's new with informations from docs/source/whatsnew/pr"
46 read
53 then
54 python tools/update_whatsnew.py
47
55
48 echo $BLUE"generating stats"$NOR
56 echo
49 python tools/github_stats.py --milestone $MILESTONE > stats.rst
57 echo $BLUE"please move the contents of "docs/source/whatsnew/development.rst" to version-X.rst"$NOR
58 echo $GREEN"Press enter to continue"$NOR
59 read
60 fi
50
61
51 echo $BLUE"stats.rst files generated."$NOR
62 if ask_section "Gen Stats, and authors"
52 echo $GREEN"Please merge it with the right file (github-stats-X.rst) and commit."$NOR
63 then
53 echo $GREEN"press enter to continue."$NOR
64
54 read
65 echo
66 echo $BLUE"here are all the authors that contributed to this release:"$NOR
67 git log --format="%aN <%aE>" $PREV_RELEASE... | sort -u -f
68
69 echo
70 echo $BLUE"If you see any duplicates cancel (Ctrl-C), then edit .mailmap.\n"$GREEN"Press enter to continue:"$NOR
71 read
72
73 echo $BLUE"generating stats"$NOR
74 python tools/github_stats.py --milestone $MILESTONE > stats.rst
75
76 echo $BLUE"stats.rst files generated."$NOR
77 echo $GREEN"Please merge it with the right file (github-stats-X.rst) and commit."$NOR
78 echo $GREEN"press enter to continue."$NOR
79 read
80
81 fi
55
82
56 echo "Cleaning repository"
83 echo "Cleaning repository"
57 git clean -xfdi
84 git clean -xfdi
General Comments 0
You need to be logged in to leave comments. Login now