##// END OF EJS Templates
release 7.29.0
Matthias Bussonnier -
Show More
@@ -1,119 +1,119 b''
1 1 # -*- coding: utf-8 -*-
2 2 """Release data for the IPython project."""
3 3
4 4 #-----------------------------------------------------------------------------
5 5 # Copyright (c) 2008, IPython Development Team.
6 6 # Copyright (c) 2001, Fernando Perez <fernando.perez@colorado.edu>
7 7 # Copyright (c) 2001, Janko Hauser <jhauser@zscout.de>
8 8 # Copyright (c) 2001, Nathaniel Gray <n8gray@caltech.edu>
9 9 #
10 10 # Distributed under the terms of the Modified BSD License.
11 11 #
12 12 # The full license is in the file COPYING.txt, distributed with this software.
13 13 #-----------------------------------------------------------------------------
14 14
15 15 # Name of the package for release purposes. This is the name which labels
16 16 # the tarballs and RPMs made by distutils, so it's best to lowercase it.
17 17 name = 'ipython'
18 18
19 19 # IPython version information. An empty _version_extra corresponds to a full
20 20 # release. 'dev' as a _version_extra string means this is a development
21 21 # version
22 22 _version_major = 7
23 23 _version_minor = 29
24 24 _version_patch = 0
25 25 _version_extra = '.dev'
26 26 # _version_extra = 'b1'
27 # _version_extra = "" # Uncomment this for full releases
27 _version_extra = "" # Uncomment this for full releases
28 28
29 29 # Construct full version string from these.
30 30 _ver = [_version_major, _version_minor, _version_patch]
31 31
32 32 __version__ = '.'.join(map(str, _ver))
33 33 if _version_extra:
34 34 __version__ = __version__ + _version_extra
35 35
36 36 version = __version__ # backwards compatibility name
37 37 version_info = (_version_major, _version_minor, _version_patch, _version_extra)
38 38
39 39 # Change this when incrementing the kernel protocol version
40 40 kernel_protocol_version_info = (5, 0)
41 41 kernel_protocol_version = "%i.%i" % kernel_protocol_version_info
42 42
43 43 description = "IPython: Productive Interactive Computing"
44 44
45 45 long_description = \
46 46 """
47 47 IPython provides a rich toolkit to help you make the most out of using Python
48 48 interactively. Its main components are:
49 49
50 50 * A powerful interactive Python shell
51 51 * A `Jupyter <https://jupyter.org/>`_ kernel to work with Python code in Jupyter
52 52 notebooks and other interactive frontends.
53 53
54 54 The enhanced interactive Python shells have the following main features:
55 55
56 56 * Comprehensive object introspection.
57 57
58 58 * Input history, persistent across sessions.
59 59
60 60 * Caching of output results during a session with automatically generated
61 61 references.
62 62
63 63 * Extensible tab completion, with support by default for completion of python
64 64 variables and keywords, filenames and function keywords.
65 65
66 66 * Extensible system of 'magic' commands for controlling the environment and
67 67 performing many tasks related either to IPython or the operating system.
68 68
69 69 * A rich configuration system with easy switching between different setups
70 70 (simpler than changing $PYTHONSTARTUP environment variables every time).
71 71
72 72 * Session logging and reloading.
73 73
74 74 * Extensible syntax processing for special purpose situations.
75 75
76 76 * Access to the system shell with user-extensible alias system.
77 77
78 78 * Easily embeddable in other Python programs and GUIs.
79 79
80 80 * Integrated access to the pdb debugger and the Python profiler.
81 81
82 82 The latest development version is always available from IPython's `GitHub
83 83 site <http://github.com/ipython>`_.
84 84 """
85 85
86 86 license = 'BSD'
87 87
88 88 authors = {'Fernando' : ('Fernando Perez','fperez.net@gmail.com'),
89 89 'Janko' : ('Janko Hauser','jhauser@zscout.de'),
90 90 'Nathan' : ('Nathaniel Gray','n8gray@caltech.edu'),
91 91 'Ville' : ('Ville Vainio','vivainio@gmail.com'),
92 92 'Brian' : ('Brian E Granger', 'ellisonbg@gmail.com'),
93 93 'Min' : ('Min Ragan-Kelley', 'benjaminrk@gmail.com'),
94 94 'Thomas' : ('Thomas A. Kluyver', 'takowl@gmail.com'),
95 95 'Jorgen' : ('Jorgen Stenarson', 'jorgen.stenarson@bostream.nu'),
96 96 'Matthias' : ('Matthias Bussonnier', 'bussonniermatthias@gmail.com'),
97 97 }
98 98
99 99 author = 'The IPython Development Team'
100 100
101 101 author_email = 'ipython-dev@python.org'
102 102
103 103 url = 'https://ipython.org'
104 104
105 105
106 106 platforms = ['Linux','Mac OSX','Windows']
107 107
108 108 keywords = ['Interactive','Interpreter','Shell', 'Embedding']
109 109
110 110 classifiers = [
111 111 'Framework :: IPython',
112 112 'Intended Audience :: Developers',
113 113 'Intended Audience :: Science/Research',
114 114 'License :: OSI Approved :: BSD License',
115 115 'Programming Language :: Python',
116 116 'Programming Language :: Python :: 3',
117 117 'Programming Language :: Python :: 3 :: Only',
118 118 'Topic :: System :: Shells'
119 119 ]
@@ -1,224 +1,228 b''
1 1 # Simple tool to help for release
2 2 # when releasing with bash, simple source it to get asked questions.
3 3
4 4 # misc check before starting
5 5
6 6 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 10 python -c 'import nose'
11 11
12 12
13 13 BLACK=$(tput setaf 1)
14 14 RED=$(tput setaf 1)
15 15 GREEN=$(tput setaf 2)
16 16 YELLOW=$(tput setaf 3)
17 17 BLUE=$(tput setaf 4)
18 18 MAGENTA=$(tput setaf 5)
19 19 CYAN=$(tput setaf 6)
20 20 WHITE=$(tput setaf 7)
21 21 NOR=$(tput sgr0)
22 22
23 23
24 24 echo -n "PREV_RELEASE (X.y.z) [$PREV_RELEASE]: "
25 25 read input
26 26 PREV_RELEASE=${input:-$PREV_RELEASE}
27 27 echo -n "MILESTONE (X.y) [$MILESTONE]: "
28 28 read input
29 29 MILESTONE=${input:-$MILESTONE}
30 30 echo -n "VERSION (X.y.z) [$VERSION]:"
31 31 read input
32 32 VERSION=${input:-$VERSION}
33 33 echo -n "BRANCH (master|X.y) [$BRANCH]:"
34 34 read input
35 35 BRANCH=${input:-$BRANCH}
36 36
37 37 ask_section(){
38 38 echo
39 39 echo $BLUE"$1"$NOR
40 40 echo -n $GREEN"Press Enter to continue, S to skip: "$NOR
41 read -n1 value
42 echo
43 if [ -z $value ] || [ $value = 'y' ] ; then
41 if [ "$ZSH_NAME" = "zsh" ] ; then
42 read -k1 value
43 value=${value%$'\n'}
44 else
45 read -n1 value
46 fi
47 if [ -z "$value" ] || [ $value = 'y' ]; then
44 48 return 0
45 49 fi
46 50 return 1
47 51 }
48 52
49 53
50 54
51 55 echo
52 56 if ask_section "Updating what's new with informations from docs/source/whatsnew/pr"
53 57 then
54 58 python tools/update_whatsnew.py
55 59
56 60 echo
57 61 echo $BLUE"please move the contents of "docs/source/whatsnew/development.rst" to version-X.rst"$NOR
58 62 echo $GREEN"Press enter to continue"$NOR
59 63 read
60 64 fi
61 65
62 66 if ask_section "Gen Stats, and authors"
63 67 then
64 68
65 69 echo
66 70 echo $BLUE"here are all the authors that contributed to this release:"$NOR
67 71 git log --format="%aN <%aE>" $PREV_RELEASE... | sort -u -f
68 72
69 73 echo
70 74 echo $BLUE"If you see any duplicates cancel (Ctrl-C), then edit .mailmap."
71 75 echo $GREEN"Press enter to continue:"$NOR
72 76 read
73 77
74 78 echo $BLUE"generating stats"$NOR
75 79 python tools/github_stats.py --milestone $MILESTONE > stats.rst
76 80
77 81 echo $BLUE"stats.rst files generated."$NOR
78 82 echo $GREEN"Please merge it with the right file (github-stats-X.rst) and commit."$NOR
79 83 echo $GREEN"press enter to continue."$NOR
80 84 read
81 85
82 86 fi
83 87
84 88 if ask_section "Generate API difference (using frapuccino)"
85 89 then
86 90 echo $BLUE"Checking out $PREV_RELEASE"$NOR
87 91 git checkout $PREV_RELEASE
88 92 echo $BLUE"Saving API to file $PREV_RELEASE"$NOR
89 93 frappuccino IPython --save IPython-$PREV_RELEASE.json
90 94 echo $BLUE"comming back to $BRANCH"$NOR
91 95 git checkout $BRANCH
92 96 echo $BLUE"comparing ..."$NOR
93 97 frappuccino IPython --compare IPython-$PREV_RELEASE.json
94 98 echo $GREEN"Use the above guideline to write an API changelog ..."$NOR
95 99 echo $GREEN"Press any keys to continue"$NOR
96 100 read
97 101 fi
98 102
99 103 echo "Cleaning repository"
100 104 git clean -xfdi
101 105
102 106 echo $GREEN"please update version number in ${RED}IPython/core/release.py${NOR} , Do not commit yet – we'll do it later."$NOR
103 107 echo $GREEN"I tried ${RED}sed -i bkp -e '/Uncomment/s/^# //g' IPython/core/release.py${NOR}"
104 108 sed -i bkp -e '/Uncomment/s/^# //g' IPython/core/release.py
105 109 rm IPython/core/release.pybkp
106 110 git diff
107 111
108 112 echo $GREEN"Press enter to continue"$NOR
109 113 read
110 114
111 115 if ask_section "Build the documentation ?"
112 116 then
113 117 make html -C docs
114 118 echo
115 119 echo $GREEN"Check the docs, press enter to continue"$NOR
116 120 read
117 121
118 122 fi
119 123
120 124 if ask_section "Should we commit, tag, push... etc ? "
121 125 then
122 126 echo
123 127 echo $BLUE"Let's commit : git commit -am \"release $VERSION\" -S"
124 128 echo $GREEN"Press enter to commit"$NOR
125 129 read
126 130 git commit -am "release $VERSION" -S
127 131
128 132 echo
129 133 echo $BLUE"git push origin \$BRANCH ($BRANCH)?"$NOR
130 134 echo $GREEN"Make sure you can push"$NOR
131 135 echo $GREEN"Press enter to continue"$NOR
132 136 read
133 137 git push origin $BRANCH
134 138
135 139 echo
136 140 echo "Let's tag : git tag -am \"release $VERSION\" \"$VERSION\" -s"
137 141 echo $GREEN"Press enter to tag commit"$NOR
138 142 read
139 143 git tag -am "release $VERSION" "$VERSION" -s
140 144
141 145 echo
142 146 echo $BLUE"And push the tag: git push origin \$VERSION ?"$NOR
143 147 echo $GREEN"Press enter to continue"$NOR
144 148 read
145 149 git push origin $VERSION
146 150
147 151
148 152 echo $GREEN"please update version number and back to .dev in ${RED}IPython/core/release.py"
149 153 echo $GREEN"I tried ${RED}sed -i bkp -e '/Uncomment/s/^/# /g' IPython/core/release.py${NOR}"
150 154 sed -i bkp -e '/Uncomment/s/^/# /g' IPython/core/release.py
151 155 rm IPython/core/release.pybkp
152 156 git diff
153 157 echo $GREEN"Please bump ${RED}the minor version number${NOR}"
154 158 echo ${BLUE}"Do not commit yet – we'll do it later."$NOR
155 159
156 160
157 161 echo $GREEN"Press enter to continue"$NOR
158 162 read
159 163
160 164 echo
161 165 echo "Let's commit : "$BLUE"git commit -am \"back to dev\""$NOR
162 166 echo $GREEN"Press enter to commit"$NOR
163 167 read
164 168 git commit -am "back to dev"
165 169
166 170 echo
167 171 echo $BLUE"git push origin \$BRANCH ($BRANCH)?"$NOR
168 172 echo $GREEN"Press enter to continue"$NOR
169 173 read
170 174 git push origin $BRANCH
171 175
172 176
173 177 echo
174 178 echo $BLUE"let's : git checkout $VERSION"$NOR
175 179 echo $GREEN"Press enter to continue"$NOR
176 180 read
177 181 git checkout $VERSION
178 182 fi
179 183
180 184 if ask_section "Should we build and release ?"
181 185 then
182 186
183 187 echo $BLUE"going to set SOURCE_DATE_EPOCH"$NOR
184 188 echo $BLUE'export SOURCE_DATE_EPOCH=$(git show -s --format=%ct HEAD)'$NOR
185 189 echo $GREEN"Press enter to continue"$NOR
186 190 read
187 191
188 192 export SOURCE_DATE_EPOCH=$(git show -s --format=%ct HEAD)
189 193
190 194 echo $BLUE"SOURCE_DATE_EPOCH set to $SOURCE_DATE_EPOCH"$NOR
191 195 echo $GREEN"Press enter to continue"$NOR
192 196 read
193 197
194 198
195 199
196 200 echo
197 201 echo $BLUE"Attempting to build package..."$NOR
198 202
199 203 tools/release
200 204
201 205
202 206 echo $RED'$ shasum -a 256 dist/*'
203 207 shasum -a 256 dist/*
204 208 echo $NOR
205 209
206 210 echo $BLUE"We are going to rebuild, node the hash above, and compare them to the rebuild"$NOR
207 211 echo $GREEN"Press enter to continue"$NOR
208 212 read
209 213
210 214 echo
211 215 echo $BLUE"Attempting to build package..."$NOR
212 216
213 217 tools/release
214 218
215 219 echo $RED"Check the shasum for SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH"
216 220 echo $RED'$ shasum -a 256 dist/*'
217 221 shasum -a 256 dist/*
218 222 echo $NOR
219 223
220 224 if ask_section "upload packages ?"
221 225 then
222 226 tools/release upload
223 227 fi
224 228 fi
General Comments 0
You need to be logged in to leave comments. Login now