close
Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.92 KB

File metadata and controls

57 lines (39 loc) · 1.92 KB

Releasing remote server

  1. Run tests on different operating systems and with different interpreters:

    python test/run.py python
    python test/run.py jython    # use jython.bat on windows
    python test/run.py ipy       # some tests fail due to unicode/str issues
    

    Above commands run both unit and acceptance tests. See test/README.rst for more details.

    Unfortunately the test system does not support testing using Jython 2.2. We will likely drop support for it in the future, but before that it can be tested by running the example using it.

  2. Set $VERSION shell variable to ease copy-pasting further commands:

    VERSION=x.y
    
  3. Update __version__ in src/robotremoteserver.py:

    # Linux (GNU sed):
    sed -i "s/__version__ = .*/__version__ = '$VERSION'/" src/robotremoteserver.py
    # OS X (BSD sed):
    sed -i "" "s/__version__ = .*/__version__ = '$VERSION'/" src/robotremoteserver.py
    # Verify changes and commit:
    git diff
    git commit -m "Updated __version__ to $VERSION" src/robotremoteserver.py && git push
    
  4. Tag:

    git tag -a $VERSION -m "Release $VERSION" && git push --tags
    
  5. Create distribution:

    python setup.py sdist register upload
    
  6. Verify that PyPI page looks good.

  7. Test that installation works:

    pip install robotremoteserver --upgrade
    
  8. __version__ back to devel:

    # Linux (GNU sed):
    sed -i "s/__version__ = .*/__version__ = 'devel'/" src/robotremoteserver.py
    # OSX (BSD sed):
    sed -i "" "s/__version__ = .*/__version__ = 'devel'/" src/robotremoteserver.py
    # Verify changes and commit:
    git diff
    git commit -m "__version__ back to devel" src/robotremoteserver.py && git push
    
  9. Advertise on Twitter and on mailing lists as needed.