Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[dce036]: doc / cheatsheets / making_a_release Maximize Restore History

Download this file

making_a_release    117 lines (81 with data), 3.2 kB

All code/doc changes should be committed.

To get the svn revision of the previous release:

    $ svn log https://pyke.svn.sourceforge.net/svnroot/pyke/tags

Do "svn log" to see what's changed:

    $ svn log -r 48:HEAD https://pyke.svn.sourceforge.net/svnroot/pyke/trunk

Write: RELEASE_NOTES-0.2

FILES TO CHANGE:
    - README
        Read through to see if anything has changed.  The following lines
        will always change:
        - line  3: Version: 0.2
        - line 23:     pyke_doc_html-0.2.tar.gz
        - line 48:     pyke-0.2-py2.5.egg
        - line 56:     pyke-0.2.tar.gz
        - line 61: Add any new examples
        - line 66:     pyke_examples-0.2.tar.gz
    - setup.py
        - line 11:     version = "0.2",
        - line 35:         "http://downloads.sourceforge.net/..."
    - pyke/__init__.py
        - line 3: version = '0.2'
    - doc/source/index.txt
        - line 43: Release 0.2

COMMIT SVN UPDATES

REBUILD DOCUMENTS

    $ cd doc/source
    $ bin/gen_html

REBUILD compiler_bc.py

    $ cd ../../pyke/krb_compiler
    $ python
    >>> from pyke import krb_compiler
    >>> krb_compiler.compile_krb('compiler', 'compiled_krb', 'compiled_krb', 'compiler.krb'))
    $ mv compiled_krb/compiler_bc.py .

COMMIT SVN UPDATES

BUILD RELEASE

    $ cd ../..
    $ rm -rf build
    $ python setup.py bdist_egg sdist
    $ ./make_doc_tarball dist/pyke_doc_html-0.2.tar.gz
    $ ./make_examples_tarball dist/pyke_examples-0.2.tar.gz

TAG RELEASE

    $ svn copy https://pyke.svn.sourceforge.net/svnroot/pyke/trunk \
               https://pyke.svn.sourceforge.net/svnroot/pyke/tags/0.2

ADD NEW RELEASE TO SOURCEFORGE TRACKERS:

    Admin -> Tracker -> "Tracker Administration" link

    Do: Bugs, Support Requests, and Patches

    Add release through "Add/Update Groups"

UPLOAD DIST FILES TO SOURCEFORGE:

    In the browser, go to: https://frs.sourceforge.net/webupload and upload
    the 4 files:
                pyke-0.4-py2.5.egg 
                pyke-0.4.tar.gz
                pyke_doc_html-0.4.tar.gz
                pyke_examples-0.4.tar.gz

    Go to: Admin -> File Releases
    Click on "Add Release", Enter: 0.2
    Click "Preserve my pre-formatted text." on the Release Notes.
    Follow the rest of the instructions there...
        After you've selected the files to include, you have to go through
        settings for each file ONE AT A TIME.  (Each file has its own Update
        button which erases any information you've entered for subsequent
        files).

        Pick "Platform Independant" for all of the files.

        Pick ".zip" for the .egg file.
        Pick "Source .gz" for the source .gz file.
        Pick ".gz" for the doc .gz file.
        Pick ".gz" for the examples .gz file.

UPLOAD NEW DOCUMENTATION TO SOURCEFORGE

    see web.upload cheatsheet

UPDATE PYPI LINK:

    $ python setup.py register

CREATE NEWS ANNOUNCEMENTS

    On Sourceforge: Admin -> News -> Submit

    On Google Groups: http://groups.google.com/group/pyke

TO TEST:

    $ cd ~/python
    $ virtualenv --no-site-packages pyketest
    $ cd pyketest
    $ bash
    $ unset PYTHONPATH
    $ source bin/activate