============================= Docutils_ Release Procedure ============================= :Author: David Goodger; open to all Docutils developers :Contact: goodger@python.org :Date: $Date: 2004/12/23 21:02:15 $ :Revision: $Revision: 1.5 $ :Copyright: This document has been placed in the public domain. .. _Docutils: http://docutils.sourceforge.net/ 1. Announce a checkin freeze on Docutils-develop. 2. Bump the version number in the following files: * docutils/setup.py * docutils/HISTORY.txt * docutils/docutils/__init__.py 3. Run ``test/test_functional.py``. If it fails (due to the bumped version number), update the files in ``test/functional/expected/``. 4. Run the test suite: ``cd test ; python alltests.py``. Do this for all supported Python versions. 5. Isolate from outside influence: (a) Remove the old installation from site-packages (including roman.py, and optparse.py, textwrap.py for pre-2.3 installations). (b) Clear/unset the PYTHONPATH environment variable. 6. Create the release tarball: (a) Create a new empty directory and ``cd`` into it. (b) Get a clean snapshot of the CVS files:: cvs -z3 -d:pserver:anonymous@cvs.sf.net:/cvsroot/docutils \ export -rHEAD docutils (c) Use Distutils to create the release tarball:: cd docutils python setup.py sdist 7. Expand and install the release tarball **in isolation** (as per step 5 above): (a) Expand the tarball in a new location, not over any existing files. (b) Install from expanded directory:: cd docutils-X.Y.Z python setup.py install The "install" command may require root permissions. 8. Run the test suite from the expanded archive directory with all supported Python versions: ``cd test ; python alltests.py``. 9. Run ``cd tools ; buildhtml.py ..`` to confirm that there are no unexpected issues with the docs. 10. Upload the release tarball:: $ ftp upload.sourceforge.net Connected to osdn.dl.sourceforge.net. ... Name (upload.sourceforge.net:david): anonymous 331 Anonymous login ok, send your complete e-mail address as password. Password: ... 230 Anonymous access granted, restrictions apply. ftp> bin 200 Type set to I. ftp> cd /incoming 250 CWD command successful. ftp> put filename 11. Log in to the SourceForge web interface. 12. Access the _`file release system` on SourceForge (Admin interface). Fill in the fields: :Package ID: docutils :Release Name: :Release Date: :Status: Active :File Name: