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.
Set
$VERSIONshell variable to ease copy-pasting further commands:VERSION=x.y
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
Tag:
git tag -a $VERSION -m "Release $VERSION" && git push --tags
Create distribution:
python setup.py sdist register upload
Verify that PyPI page looks good.
Test that installation works:
pip install robotremoteserver --upgrade
__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
Advertise on Twitter and on mailing lists as needed.