CINXE.COM

PEP 102 – Doing Python Micro Releases | peps.python.org

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="color-scheme" content="light dark"> <title>PEP 102 – Doing Python Micro Releases | peps.python.org</title> <link rel="shortcut icon" href="../_static/py.png"> <link rel="canonical" href="https://peps.python.org/pep-0102/"> <link rel="stylesheet" href="../_static/style.css" type="text/css"> <link rel="stylesheet" href="../_static/mq.css" type="text/css"> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" media="(prefers-color-scheme: light)" id="pyg-light"> <link rel="stylesheet" href="../_static/pygments_dark.css" type="text/css" media="(prefers-color-scheme: dark)" id="pyg-dark"> <link rel="alternate" type="application/rss+xml" title="Latest PEPs" href="https://peps.python.org/peps.rss"> <meta property="og:title" content='PEP 102 – Doing Python Micro Releases | peps.python.org'> <meta property="og:description" content="Making a Python release is an arduous process that takes a minimum of half a day’s work even for an experienced releaser. Until recently, most – if not all – of that burden was borne by Guido himself. But several recent releases have been performed by ..."> <meta property="og:type" content="website"> <meta property="og:url" content="https://peps.python.org/pep-0102/"> <meta property="og:site_name" content="Python Enhancement Proposals (PEPs)"> <meta property="og:image" content="https://peps.python.org/_static/og-image.png"> <meta property="og:image:alt" content="Python PEPs"> <meta property="og:image:width" content="200"> <meta property="og:image:height" content="200"> <meta name="description" content="Making a Python release is an arduous process that takes a minimum of half a day’s work even for an experienced releaser. Until recently, most – if not all – of that burden was borne by Guido himself. But several recent releases have been performed by ..."> <meta name="theme-color" content="#3776ab"> </head> <body> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <symbol id="svg-sun-half" viewBox="0 0 24 24" pointer-events="all"> <title>Following system colour scheme</title> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <circle cx="12" cy="12" r="9"></circle> <path d="M12 3v18m0-12l4.65-4.65M12 14.3l7.37-7.37M12 19.6l8.85-8.85"></path> </svg> </symbol> <symbol id="svg-moon" viewBox="0 0 24 24" pointer-events="all"> <title>Selected dark colour scheme</title> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z"></path> </svg> </symbol> <symbol id="svg-sun" viewBox="0 0 24 24" pointer-events="all"> <title>Selected light colour scheme</title> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <circle cx="12" cy="12" r="5"></circle> <line x1="12" y1="1" x2="12" y2="3"></line> <line x1="12" y1="21" x2="12" y2="23"></line> <line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line> <line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line> <line x1="1" y1="12" x2="3" y2="12"></line> <line x1="21" y1="12" x2="23" y2="12"></line> <line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line> <line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line> </svg> </symbol> </svg> <script> document.documentElement.dataset.colour_scheme = localStorage.getItem("colour_scheme") || "auto" </script> <section id="pep-page-section"> <header> <h1>Python Enhancement Proposals</h1> <ul class="breadcrumbs"> <li><a href="https://www.python.org/" title="The Python Programming Language">Python</a> &raquo; </li> <li><a href="../pep-0000/">PEP Index</a> &raquo; </li> <li>PEP 102</li> </ul> <button id="colour-scheme-cycler" onClick="setColourScheme(nextColourScheme())"> <svg aria-hidden="true" class="colour-scheme-icon-when-auto"><use href="#svg-sun-half"></use></svg> <svg aria-hidden="true" class="colour-scheme-icon-when-dark"><use href="#svg-moon"></use></svg> <svg aria-hidden="true" class="colour-scheme-icon-when-light"><use href="#svg-sun"></use></svg> <span class="visually-hidden">Toggle light / dark / auto colour theme</span> </button> </header> <article> <section id="pep-content"> <h1 class="page-title">PEP 102 – Doing Python Micro Releases</h1> <dl class="rfc2822 field-list simple"> <dt class="field-odd">Author<span class="colon">:</span></dt> <dd class="field-odd">Anthony Baxter &lt;anthony&#32;&#97;t&#32;interlink.com.au&gt;, Barry Warsaw &lt;barry&#32;&#97;t&#32;python.org&gt;, Guido van Rossum &lt;guido&#32;&#97;t&#32;python.org&gt;</dd> <dt class="field-even">Status<span class="colon">:</span></dt> <dd class="field-even"><abbr title="Replaced by another succeeding PEP">Superseded</abbr></dd> <dt class="field-odd">Type<span class="colon">:</span></dt> <dd class="field-odd"><abbr title="Non-normative PEP containing background, guidelines or other information relevant to the Python ecosystem">Informational</abbr></dd> <dt class="field-even">Created<span class="colon">:</span></dt> <dd class="field-even">09-Jan-2002</dd> <dt class="field-odd">Post-History<span class="colon">:</span></dt> <dd class="field-odd"><p></p></dd> <dt class="field-even">Superseded-By<span class="colon">:</span></dt> <dd class="field-even"><a class="reference external" href="../pep-0101/">101</a></dd> </dl> <hr class="docutils" /> <section id="contents"> <details><summary>Table of Contents</summary><ul class="simple"> <li><a class="reference internal" href="#replacement-note">Replacement Note</a></li> <li><a class="reference internal" href="#abstract">Abstract</a></li> <li><a class="reference internal" href="#how-to-make-a-release">How to Make A Release</a></li> <li><a class="reference internal" href="#what-next">What Next?</a></li> <li><a class="reference internal" href="#final-release-notes">Final Release Notes</a></li> <li><a class="reference internal" href="#windows-notes">Windows Notes</a></li> <li><a class="reference internal" href="#copyright">Copyright</a></li> </ul> </details></section> <section id="replacement-note"> <h2><a class="toc-backref" href="#replacement-note" role="doc-backlink">Replacement Note</a></h2> <p>Although the size of the to-do list in this PEP is much less scary than that in <a class="pep reference internal" href="../pep-0101/" title="PEP 101 – Doing Python Releases 101">PEP 101</a>, it turns out not to be enough justification for the duplication of information, and with it, the danger of one of the copies to become out of date. Therefore, this PEP is not maintained anymore, and micro releases are fully covered by <a class="pep reference internal" href="../pep-0101/" title="PEP 101 – Doing Python Releases 101">PEP 101</a>.</p> </section> <section id="abstract"> <h2><a class="toc-backref" href="#abstract" role="doc-backlink">Abstract</a></h2> <p>Making a Python release is an arduous process that takes a minimum of half a day’s work even for an experienced releaser. Until recently, most – if not all – of that burden was borne by Guido himself. But several recent releases have been performed by other folks, so this PEP attempts to collect, in one place, all the steps needed to make a Python bugfix release.</p> <p>The major Python release process is covered in <a class="pep reference internal" href="../pep-0101/" title="PEP 101 – Doing Python Releases 101">PEP 101</a> - this PEP is just <a class="pep reference internal" href="../pep-0101/" title="PEP 101 – Doing Python Releases 101">PEP 101</a>, trimmed down to only include the bits that are relevant for micro releases, a.k.a. patch, or bug fix releases.</p> <p>It is organized as a recipe and you can actually print this out and check items off as you complete them.</p> </section> <section id="how-to-make-a-release"> <h2><a class="toc-backref" href="#how-to-make-a-release" role="doc-backlink">How to Make A Release</a></h2> <p>Here are the steps taken to make a Python release. Some steps are more fuzzy than others because there’s little that can be automated (e.g. writing the NEWS entries). Where a step is usually performed by An Expert, the name of that expert is given. Otherwise, assume the step is done by the Release Manager (RM), the designated person performing the release. Almost every place the RM is mentioned below, this step can also be done by the BDFL of course!</p> <p>XXX: We should include a dependency graph to illustrate the steps that can be taken in parallel, or those that depend on other steps.</p> <p>We use the following conventions in the examples below. Where a release number is given, it is of the form X.Y.MaA, e.g. 2.1.2c1 for Python 2.1.2 release candidate 1, where “a” == alpha, “b” == beta, “c” == release candidate. Final releases are tagged with “releaseXYZ” in CVS. The micro releases are made from the maintenance branch of the major release, e.g. Python 2.1.2 is made from the release21-maint branch.</p> <ol class="arabic"> <li>Send an email to <a class="reference external" href="mailto:python-dev&#37;&#52;&#48;python&#46;org">python-dev<span>&#64;</span>python<span>&#46;</span>org</a> indicating the release is about to start.</li> <li>Put a freeze on check ins into the maintenance branch. At this point, nobody except the RM should make any commits to the branch (or his duly assigned agents, i.e. Guido the BDFL, Fred Drake for documentation, or Thomas Heller for Windows). If the RM screwed up and some desperate last minute change to the branch is necessary, it can mean extra work for Fred and Thomas. So try to avoid this!</li> <li>On the branch, change Include/patchlevel.h in two places, to reflect the new version number you’ve just created. You’ll want to change the PY_VERSION macro, and one or several of the version subpart macros just above PY_VERSION, as appropriate.</li> <li>Change the “%define version” line of Misc/RPM/python-2.3.spec to the same string as <code class="docutils literal notranslate"><span class="pre">PY_VERSION</span></code> was changed to above. E.g:<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">%</span><span class="n">define</span> <span class="n">version</span> <span class="mf">2.3.1</span> </pre></div> </div> <p>You also probably want to reset the %define release line to ‘1pydotorg’ if it’s not already that.</p> </li> <li>If you’re changing the version number for Python (e.g. from Python 2.1.1 to Python 2.1.2), you also need to update the README file, which has a big banner at the top proclaiming its identity. Don’t do this if you’re just releasing a new alpha or beta release, but /do/ do this if you’re release a new micro, minor or major release.</li> <li>The LICENSE file also needs to be changed, due to several references to the release number. As for the README file, changing these are necessary for a new micro, minor or major release.<p>The LICENSE file contains a table that describes the legal heritage of Python; you should add an entry for the X.Y.Z release you are now making. You should update this table in the LICENSE file on the CVS trunk too.</p> </li> <li>When the year changes, copyright legends need to be updated in many places, including the README and LICENSE files.</li> <li>For the Windows build, additional files have to be updated.<p>PCbuild/BUILDno.txt contains the Windows build number, see the instructions in this file how to change it. Saving the project file PCbuild/pythoncore.dsp results in a change to PCbuild/pythoncore.dsp as well.</p> <p>PCbuild/python20.wse sets up the Windows installer version resource (displayed when you right-click on the installer .exe and select Properties), and also contains the Python version number.</p> <p>(Before version 2.3.2, it was required to manually edit PC/python_nt.rc, this step is now automated by the build process.)</p> </li> <li>After starting the process, the most important thing to do next is to update the Misc/NEWS file. Thomas will need this in order to do the Windows release and he likes to stay up late. This step can be pretty tedious, so it’s best to get to it immediately after making the branch, or even before you’ve made the branch. The sooner the better (but again, watch for new checkins up until the release is made!)<p>Add high level items new to this release. E.g. if we’re releasing 2.2a3, there must be a section at the top of the file explaining “What’s new in Python 2.2a3”. It will be followed by a section entitled “What’s new in Python 2.2a2”.</p> <p>Note that you /hope/ that as developers add new features to the trunk, they’ve updated the NEWS file accordingly. You can’t be positive, so double check. If you’re a Unix weenie, it helps to verify with Thomas about changes on Windows, and Jack Jansen about changes on the Mac.</p> <p>This command should help you (but substitute the correct -r tag!):</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">%</span> <span class="n">cvs</span> <span class="n">log</span> <span class="o">-</span><span class="n">rr22a1</span><span class="p">:</span> <span class="o">|</span> <span class="n">python</span> <span class="n">Tools</span><span class="o">/</span><span class="n">scripts</span><span class="o">/</span><span class="n">logmerge</span><span class="o">.</span><span class="n">py</span> <span class="o">&gt;</span> <span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">news</span><span class="o">.</span><span class="n">txt</span> </pre></div> </div> <p>IOW, you’re printing out all the cvs log entries from the previous release until now. You can then troll through the news.txt file looking for interesting things to add to NEWS.</p> </li> <li>Check your NEWS changes into the maintenance branch. It’s easy to forget to update the release date in this file!</li> <li>Check in any changes to IDLE’s NEWS.txt. Update the header in Lib/idlelib/NEWS.txt to reflect its release version and date. Update the IDLE version in Lib/idlelib/idlever.py to match.</li> </ol> <ol class="arabic" start="11"> <li>Once the release process has started, the documentation needs to be built and posted on python.org according to the instructions in <a class="pep reference internal" href="../pep-0101/" title="PEP 101 – Doing Python Releases 101">PEP 101</a>.<p>Note that Fred is responsible both for merging doc changes from the trunk to the branch AND for merging any branch changes from the branch to the trunk during the cleaning up phase. Basically, if it’s in Doc/ Fred will take care of it.</p> </li> <li>Thomas compiles everything with MSVC 6.0 SP5, and moves the python23.chm file into the src/chm directory. The installer executable is then generated with Wise Installation System.<p>The installer includes the MSVC 6.0 runtime in the files MSVCRT.DLL and MSVCIRT.DLL. It leads to disaster if these files are taken from the system directory of the machine where the installer is built, instead it must be absolutely made sure that these files come from the VCREDIST.EXE redistributable package contained in the MSVC SP5 CD. VCREDIST.EXE must be unpacked with winzip, and the Wise Installation System prompts for the directory.</p> <p>After building the installer, it should be opened with winzip, and the MS dlls extracted again and check for the same version number as those unpacked from VCREDIST.EXE.</p> <p>Thomas uploads this file to the starship. He then sends the RM a notice which includes the location and MD5 checksum of the Windows executable.</p> <p>Note that Thomas’s creation of the Windows executable may generate a few more commits on the branch. Thomas will be responsible for merging Windows-specific changes from trunk to branch, and from branch to trunk.</p> </li> <li>Sean performs his Red Hat magic, generating a set of RPMs. He uploads these files to python.org. He then sends the RM a notice which includes the location and MD5 checksum of the RPMs.</li> <li>It’s Build Time!<p>Now, you’re ready to build the source tarball. First cd to your working directory for the branch. E.g. % cd …/python-22a3</p> </li> <li>Do a “cvs update” in this directory. Do NOT include the -A flag!<p>You should not see any “M” files, but you may see several “P” and/or “U” files. I.e. you better not have any uncommitted changes in your working directory, but you may pick up some of Fred’s or Thomas’s last minute changes.</p> </li> <li>Now tag the branch using a symbolic name like “rXYMaZ”, e.g. r212<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">%</span> <span class="n">cvs</span> <span class="n">tag</span> <span class="n">r212</span> </pre></div> </div> <p>Be sure to tag only the python/dist/src subdirectory of the Python CVS tree!</p> </li> <li>Change to a neutral directory, i.e. one in which you can do a fresh, virgin, cvs export of the branch. You will be creating a new directory at this location, to be named “Python-X.Y.M”. Do a CVS export of the tagged branch.<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">%</span> <span class="n">cd</span> <span class="o">~</span> <span class="o">%</span> <span class="n">cvs</span> <span class="o">-</span><span class="n">d</span> <span class="n">cvs</span><span class="o">.</span><span class="n">sf</span><span class="o">.</span><span class="n">net</span><span class="p">:</span><span class="o">/</span><span class="n">cvsroot</span><span class="o">/</span><span class="n">python</span> <span class="n">export</span> <span class="o">-</span><span class="n">rr212</span> \ <span class="o">-</span><span class="n">d</span> <span class="n">Python</span><span class="o">-</span><span class="mf">2.1.2</span> <span class="n">python</span><span class="o">/</span><span class="n">dist</span><span class="o">/</span><span class="n">src</span> </pre></div> </div> </li> <li>Generate the tarball. Note that we’re not using the ‘z’ option on the tar command because 1) that’s only supported by GNU tar as far as we know, and 2) we’re going to max out the compression level, which isn’t a supported option. We generate both tar.gz tar.bz2 formats, as the latter is about 1/6th smaller.<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">%</span> <span class="n">tar</span> <span class="o">-</span><span class="n">cf</span> <span class="o">-</span> <span class="n">Python</span><span class="o">-</span><span class="mf">2.1.2</span> <span class="o">|</span> <span class="n">gzip</span> <span class="o">-</span><span class="mi">9</span> <span class="o">&gt;</span> <span class="n">Python</span><span class="o">-</span><span class="mf">2.1.2</span><span class="o">.</span><span class="n">tgz</span> <span class="o">%</span> <span class="n">tar</span> <span class="o">-</span><span class="n">cf</span> <span class="o">-</span> <span class="n">Python</span><span class="o">-</span><span class="mf">2.1.2</span> <span class="o">|</span> <span class="n">bzip2</span> <span class="o">-</span><span class="mi">9</span> <span class="o">&gt;</span> <span class="n">Python</span><span class="o">-</span><span class="mf">2.1.2</span><span class="o">.</span><span class="n">tar</span><span class="o">.</span><span class="n">bz2</span> </pre></div> </div> </li> <li>Calculate the MD5 checksum of the tgz and tar.bz2 files you just created<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">%</span> <span class="n">md5sum</span> <span class="n">Python</span><span class="o">-</span><span class="mf">2.1.2</span><span class="o">.</span><span class="n">tgz</span> </pre></div> </div> <p>Note that if you don’t have the md5sum program, there is a Python replacement in the Tools/scripts/md5sum.py file.</p> </li> <li>Create GPG keys for each of the files.<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">%</span> <span class="n">gpg</span> <span class="o">-</span><span class="n">ba</span> <span class="n">Python</span><span class="o">-</span><span class="mf">2.1.2</span><span class="o">.</span><span class="n">tgz</span> <span class="o">%</span> <span class="n">gpg</span> <span class="o">-</span><span class="n">ba</span> <span class="n">Python</span><span class="o">-</span><span class="mf">2.1.2</span><span class="o">.</span><span class="n">tar</span><span class="o">.</span><span class="n">bz2</span> <span class="o">%</span> <span class="n">gpg</span> <span class="o">-</span><span class="n">ba</span> <span class="n">Python</span><span class="o">-</span><span class="mf">2.1.2</span><span class="o">.</span><span class="n">exe</span> </pre></div> </div> </li> <li>Now you want to perform the very important step of checking the tarball you just created, to make sure a completely clean, virgin build passes the regression test. Here are the best steps to take:<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>% cd /tmp % tar zxvf ~/Python-2.1.2.tgz % cd Python-2.1.2 % ls (Do things look reasonable?) % ./configure (Loads of configure output) % make test (Do all the expected tests pass?) </pre></div> </div> <p>If the tests pass, then you can feel good that the tarball is fine. If some of the tests fail, or anything else about the freshly unpacked directory looks weird, you better stop now and figure out what the problem is.</p> </li> <li>You need to upload the tgz and the exe file to creosote.python.org. This step can take a long time depending on your network bandwidth. scp both files from your own machine to creosote.</li> <li>While you’re waiting, you can start twiddling the web pages to include the announcement.<ol class="arabic"> <li>In the top of the python.org web site CVS tree, create a subdirectory for the X.Y.Z release. You can actually copy an earlier patch release’s subdirectory, but be sure to delete the X.Y.Z/CVS directory and “cvs add X.Y.Z”, for example:<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">%</span> <span class="n">cd</span> <span class="o">.../</span><span class="n">pydotorg</span> <span class="o">%</span> <span class="n">cp</span> <span class="o">-</span><span class="n">r</span> <span class="mf">2.2.2</span> <span class="mf">2.2.3</span> <span class="o">%</span> <span class="n">rm</span> <span class="o">-</span><span class="n">rf</span> <span class="mf">2.2.3</span><span class="o">/</span><span class="n">CVS</span> <span class="o">%</span> <span class="n">cvs</span> <span class="n">add</span> <span class="mf">2.2.3</span> <span class="o">%</span> <span class="n">cd</span> <span class="mf">2.2.3</span> </pre></div> </div> </li> <li>Edit the files for content: usually you can globally replace X.Ya(Z-1) with X.YaZ. However, you’ll need to think about the “What’s New?” section.</li> <li>Copy the Misc/NEWS file to NEWS.txt in the X.Y.Z directory for python.org; this contains the “full scoop” of changes to Python since the previous release for this version of Python.</li> <li>Copy the .asc GPG signatures you created earlier here as well.</li> <li>Also, update the MD5 checksums.</li> <li>Preview the web page by doing a “make” or “make install” (as long as you’ve created a new directory for this release!)</li> <li>Similarly, edit the ../index.ht file, i.e. the python.org home page. In the Big Blue Announcement Block, move the paragraph for the new version up to the top and boldify the phrase “Python X.YaZ is out”. Edit for content, and preview locally, but do NOT do a “make install” yet!</li> </ol> </li> <li>Now we’re waiting for the scp to creosote to finish. Da de da, da de dum, hmm, hmm, dum de dum.</li> <li>Once that’s done you need to go to creosote.python.org and move all the files in place over there. Our policy is that every Python version gets its own directory, but each directory may contain several releases. We keep all old releases, moving them into a “prev” subdirectory when we have a new release.<p>So, there’s a directory called “2.2” which contains Python-2.2a2.exe and Python-2.2a2.tgz, along with a “prev” subdirectory containing Python-2.2a1.exe and Python-2.2a1.tgz.</p> <p>So…</p> <ol class="arabic simple"> <li>On creosote, cd to ~ftp/pub/python/X.Y creating it if necessary.</li> <li>Move the previous release files to a directory called “prev” creating the directory if necessary (make sure the directory has g+ws bits on). If this is the first alpha release of a new Python version, skip this step.</li> <li>Move the .tgz file and the .exe file to this directory. Make sure they are world readable. They should also be group writable, and group-owned by webmaster.</li> <li>md5sum the files and make sure they got uploaded intact.</li> </ol> </li> <li>the X.Y/bugs.ht file if necessary. It is best to get BDFL input for this step.</li> <li>Go up to the parent directory (i.e. the root of the web page hierarchy) and do a “make install” there. You’re release is now live!</li> <li>Now it’s time to write the announcement for the mailing lists. This is the fuzzy bit because not much can be automated. You can use one of Guido’s earlier announcements as a template, but please edit it for content!<p>Once the announcement is ready, send it to the following addresses:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">python</span><span class="o">-</span><span class="nb">list</span><span class="nd">@python</span><span class="o">.</span><span class="n">org</span> <span class="n">python</span><span class="o">-</span><span class="n">announce</span><span class="nd">@python</span><span class="o">.</span><span class="n">org</span> <span class="n">python</span><span class="o">-</span><span class="n">dev</span><span class="nd">@python</span><span class="o">.</span><span class="n">org</span> </pre></div> </div> </li> <li>Send a SourceForge News Item about the release. From the project’s “menu bar”, select the “News” link; once in News, select the “Submit” link. Type a suitable subject (e.g. “Python 2.2c1 released” :-) in the Subject box, add some text to the Details box (at the very least including the release URL at www.python.org and the fact that you’re happy with the release) and click the SUBMIT button.<p>Feel free to remove any old news items.</p> </li> </ol> <p>Now it’s time to do some cleanup. These steps are very important!</p> <ol class="arabic"> <li>Edit the file Include/patchlevel.h so that the PY_VERSION string says something like “X.YaZ+”. Note the trailing ‘+’ indicating that the trunk is going to be moving forward with development. E.g. the line should look like:<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1">#define PY_VERSION &quot;2.1.2+&quot;</span> </pre></div> </div> <p>Make sure that the other <code class="docutils literal notranslate"><span class="pre">PY_</span></code> version macros contain the correct values. Commit this change.</p> </li> <li>For the extra paranoid, do a completely clean test of the release. This includes downloading the tarball from www.python.org.</li> <li>Make sure the md5 checksums match. Then unpack the tarball, and do a clean make test.<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">%</span> <span class="n">make</span> <span class="n">distclean</span> <span class="o">%</span> <span class="o">./</span><span class="n">configure</span> <span class="o">%</span> <span class="n">make</span> <span class="n">test</span> </pre></div> </div> <p>To ensure that the regression test suite passes. If not, you screwed up somewhere!</p> </li> </ol> <p>Step 5 …</p> <p>Verify! This can be interleaved with Step 4. Pretend you’re a user: download the files from python.org, and make Python from it. This step is too easy to overlook, and on several occasions we’ve had useless release files. Once a general server problem caused mysterious corruption of all files; once the source tarball got built incorrectly; more than once the file upload process on SF truncated files; and so on.</p> </section> <section id="what-next"> <h2><a class="toc-backref" href="#what-next" role="doc-backlink">What Next?</a></h2> <p>Rejoice. Drink. Be Merry. Write a PEP like this one. Or be like unto Guido and take A Vacation.</p> <p>You’ve just made a Python release!</p> <p>Actually, there is one more step. You should turn over ownership of the branch to Jack Jansen. All this means is that now he will be responsible for making commits to the branch. He’s going to use this to build the MacOS versions. He may send you information about the Mac release that should be merged into the informational pages on www.python.org. When he’s done, he’ll tag the branch something like “rX.YaZ-mac”. He’ll also be responsible for merging any Mac-related changes back into the trunk.</p> </section> <section id="final-release-notes"> <h2><a class="toc-backref" href="#final-release-notes" role="doc-backlink">Final Release Notes</a></h2> <p>The Final release of any major release, e.g. Python 2.2 final, has special requirements, specifically because it will be one of the longest lived releases (i.e. betas don’t last more than a couple of weeks, but final releases can last for years!).</p> <p>For this reason we want to have a higher coordination between the three major releases: Windows, Mac, and source. The Windows and source releases benefit from the close proximity of the respective release-bots. But the Mac-bot, Jack Jansen, is 6 hours away. So we add this extra step to the release process for a final release:</p> <ol class="arabic simple"> <li>Hold up the final release until Jack approves, or until we lose patience &lt;wink&gt;.</li> </ol> <p>The python.org site also needs some tweaking when a new bugfix release is issued.</p> <ol class="arabic simple" start="2"> <li>The documentation should be installed at doc/&lt;version&gt;/.</li> <li>Add a link from doc/&lt;previous-minor-release&gt;/index.ht to the documentation for the new version.</li> <li>All older doc/&lt;old-release&gt;/index.ht files should be updated to point to the documentation for the new version.</li> <li>/robots.txt should be modified to prevent the old version’s documentation from being crawled by search engines.</li> </ol> </section> <section id="windows-notes"> <h2><a class="toc-backref" href="#windows-notes" role="doc-backlink">Windows Notes</a></h2> <p>Windows has a GUI installer, various flavors of Windows have “special limitations”, and the Windows installer also packs precompiled “foreign” binaries (Tcl/Tk, expat, etc). So Windows testing is tiresome but very necessary.</p> <p>Concurrent with uploading the installer, Thomas installs Python from it twice: once into the default directory suggested by the installer, and later into a directory with embedded spaces in its name. For each installation, he runs the full regression suite from a DOS box, and both with and without -0.</p> <p>He also tries <strong>every</strong> shortcut created under Start -&gt; Menu -&gt; the Python group. When trying IDLE this way, you need to verify that Help -&gt; Python Documentation works. When trying pydoc this way (the “Module Docs” Start menu entry), make sure the “Start Browser” button works, and make sure you can search for a random module (Thomas uses “random” &lt;wink&gt;) and then that the “go to selected” button works.</p> <p>It’s amazing how much can go wrong here – and even more amazing how often last-second checkins break one of these things. If you’re “the Windows geek”, keep in mind that you’re likely the only person routinely testing on Windows, and that Windows is simply a mess.</p> <p>Repeat all of the above on at least one flavor of Win9x, and one of NT/2000/XP. On NT/2000/XP, try both an Admin and a plain User (not Power User) account.</p> <p>WRT Step 5 above (verify the release media), since by the time release files are ready to download Thomas has generally run many Windows tests on the installer he uploaded, he usually doesn’t do anything for Step 5 except a full byte-comparison (“fc /b” if using a Windows shell) of the downloaded file against the file he uploaded.</p> </section> <section id="copyright"> <h2><a class="toc-backref" href="#copyright" role="doc-backlink">Copyright</a></h2> <p>This document has been placed in the public domain.</p> </section> </section> <hr class="docutils" /> <p>Source: <a class="reference external" href="https://github.com/python/peps/blob/main/peps/pep-0102.rst">https://github.com/python/peps/blob/main/peps/pep-0102.rst</a></p> <p>Last modified: <a class="reference external" href="https://github.com/python/peps/commits/main/peps/pep-0102.rst">2023-09-09 17:39:29 GMT</a></p> </article> <nav id="pep-sidebar"> <h2>Contents</h2> <ul> <li><a class="reference internal" href="#replacement-note">Replacement Note</a></li> <li><a class="reference internal" href="#abstract">Abstract</a></li> <li><a class="reference internal" href="#how-to-make-a-release">How to Make A Release</a></li> <li><a class="reference internal" href="#what-next">What Next?</a></li> <li><a class="reference internal" href="#final-release-notes">Final Release Notes</a></li> <li><a class="reference internal" href="#windows-notes">Windows Notes</a></li> <li><a class="reference internal" href="#copyright">Copyright</a></li> </ul> <br> <a id="source" href="https://github.com/python/peps/blob/main/peps/pep-0102.rst">Page Source (GitHub)</a> </nav> </section> <script src="../_static/colour_scheme.js"></script> <script src="../_static/wrap_tables.js"></script> <script src="../_static/sticky_banner.js"></script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10