Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.47 KB

File metadata and controls

47 lines (32 loc) · 1.47 KB

Releasing remote server

  1. Run tests on different operating systems and with different interpreters. See test/README.rst for more details.

  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 and upload distribution:

    python setup.py sdist 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.