pycha / RELEASE.howto

This is taken from:*checkout*/Sandbox/philikon/foundation/releasing-software.txt

Releasing software

When releasing software, the following steps should be taken:

1. Make sure all automated tests of the package pass.

2. Fill in the release date in ``CHANGES.txt``.  Make sure the
   changelog is complete.

3. Make sure the package metadata in ```` is up-to-date.  You
   can verify the information by re-generating the egg info::

     python egg_info

   and inspecting ``src/EGGNAME.egg-info/PKG-INFO``.  You should also
   make sure the that the long description renders as valid
   reStructuredText.  You can do this by using the ````
   utility from docutils_::

     python --long-description | > test.html

   If this will produce warnings or errors, PyPI will be unable to
   render the long description nicely.  It will treat it as plain text

4. Create a release tag.

5. Get a separate checkout of the release tag for creating the
   distribution tarball and eggs.  It is important that you don't do
   this on the trunk or release branch to avoid

   - forgetting to tag the release at all.

   - forgetting to clean up the ``build`` directory that distutils and
     setuptools create. Failure to do so may result in old artefacts
     in eggs.

   - forgetting to check in files that are needed by ```` or
     as package data.  Setuptools will only include them in the
     distribution if they are checked into subversion.

   In the checkout of the tag perform the following steps:

   a) Remove the "dev" marker from the version in ````

   b) Commit these changes.  It's acceptable that these changes modify
      the tag since they're purely related to release management.

   c) Create a distribution and upload it to PyPI using the following

        python register sdist upload

      If the package contains C extensions, you need to upload a
      binary Windows egg as well::

        python bdist_egg upload

      This may require the help from someone with a Windows
      installation and proper tools (Visual C).

      Binary eggs for Linux or MacOSX should **never** be uploaded
      because those platforms vary too much to be binary-compatible
      with each other, due to varying UCS support, different libc
      versions and linking models (framework / non-framework).

6. Back on the trunk or the release branch, increase the version
   number in ```` to the *next* release while preserving the
   ``dev`` marker.  The convention is that the trunk or release branch
   always points to the upcoming release, *not* the one that has been
   released already.  So if you've just released version 3.4.1, you
   should change ```` to read::


   In ``CHANGES.txt`` add a *new* section for the upcoming release.
   The release date for that should say "unreleased" so that
   committers recording their changes won't accidentally put their
   entry in the section for an already released version.  For

     3.4.2 (unreleased)

     * ...

     3.4.1 (2007-01-24)

     * Fixed bug in the foo adapter.

     * Added a bar utility for optimized kaboodling.

     3.4.0 (2006-09-13)

     Initial release as separate egg.

**Important:** Once released to PyPI or any other public download
location, a released egg may *never* be removed, even if it has proven
to be a faulty release ("brown bag release").  In such a case it
should simply be superseded immediately by a new, improved release.

.. _docutils:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.