Skip to content

Commit c71e566

Browse files
committed
Releasing instructions
1 parent 2a6659a commit c71e566

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

BUILD.rst

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Releasing remote server
2+
=======================
3+
4+
1. Set ``$VERSION`` shell variable to ease copy-pasting further commands::
5+
6+
VERSION=x.y
7+
8+
2. Update ``__version__`` in `<src/robotremoteserver.py>`__::
9+
10+
# Linux (GNU sed):
11+
sed -i "s/__version__ = .*/__version__ = '$VERSION'/" src/robotremoteserver.py
12+
# OS X (BSD sed):
13+
sed -i "" "s/__version__ = .*/__version__ = '$VERSION'/" src/robotremoteserver.py
14+
# Verify changes and commit:
15+
git diff
16+
git commit -m "Updated __version__ to $VERSION" src/robotremoteserver.py && git push
17+
18+
3. Tag::
19+
20+
git tag -a $VERSION -m "Release $VERSION" && git push --tags
21+
22+
4. Create distribution::
23+
24+
python setup.py sdist register upload
25+
26+
5. Verify that `PyPI page <https://pypi.python.org/pypi/robotremoteserver>`__
27+
looks good.
28+
29+
6. Test that installation works::
30+
31+
pip install robotremoteserver --upgrade
32+
33+
7. ``__version__`` back to devel::
34+
35+
# Linux (GNU sed):
36+
sed -i "s/__version__ = .*/__version__ = 'devel'/" src/robotremoteserver.py
37+
# OSX (BSD sed):
38+
sed -i "" "s/__version__ = .*/__version__ = 'devel'/" src/robotremoteserver.py
39+
# Verify changes and commit:
40+
git diff
41+
git commit -m "__version__ back to devel" src/robotremoteserver.py && git push
42+
43+
8. Advertise on `Twitter <https://twitter.com/robotframework>`__ and on mailing
44+
lists as needed.

0 commit comments

Comments
 (0)