summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2013-09-11 17:30:10 +0900
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2013-09-11 17:43:29 +0900
commitae73d53259d3639a65e16a6af97c4251a188b663 (patch)
tree9cd89a1b69cd69549b96558cdc0a2dffd0847919 /README.rst
parentc1467413c90b4fd9c0b67c668906e086af3f6552 (diff)
downloadpygerrit-ae73d53259d3639a65e16a6af97c4251a188b663.tar.gz
Fix #9: Add a bit more detail in the documentation
- How to install - Prerequisites (platform, SSH config) - Link to the Gerrit page - Link to the example script and license files Change-Id: I0c24609e1ea89be55a68ebf4a1569c26f23e5a66
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst50
1 files changed, 45 insertions, 5 deletions
diff --git a/README.rst b/README.rst
index 819811f..bb0f5cd 100644
--- a/README.rst
+++ b/README.rst
@@ -1,10 +1,40 @@
Pygerrit - Client library for interacting with Gerrit Code Review
=================================================================
-Pygerrit is a Python library that can be used to process the data from events
-generated by the Gerrit Code Review system.
+Pygerrit is a Python library to interact with the
+`Gerrit Code Review`_ system over ssh.
-Gerrit offers a "stream-events" command that is run over ssh, and returns back
+Installation
+------------
+
+To install pygerrit, simply:
+
+.. code-block:: bash
+
+ $ pip install pygerrit
+
+
+Prerequisites
+-------------
+
+Pygerrit runs on Ubuntu 10.4 and Mac OSX 10.8.4 with Python 2.6.x and 2.7.x.
+Support for other platforms and Python versions is not guaranteed.
+
+To connect to the review server, pygerrit requires the ssh connection
+parameters (hostname, port, username) to be present in the ``.ssh/config``
+file for the current user:
+
+.. code-block:: bash
+
+ Host review
+ HostName review.example.net
+ Port 29418
+ User username
+
+Event Stream
+------------
+
+Gerrit offers a ``stream-events`` command that is run over ssh, and returns back
a stream of events (new change uploaded, change merged, comment added, etc) as
JSON text.
@@ -14,10 +44,20 @@ client to fetch them from a queue. It also allows users to easily add handling
of custom event types, for example if they are running a customised Gerrit
installation with non-standard events.
-For examples of usage, please refer to example.py.
+Refer to the `example`_ script for a brief example of how the interface
+works.
+
+
+Copyright and License
+---------------------
Copyright 2011 Sony Ericsson Mobile Communications. All rights reserved.
+
Copyright 2012 Sony Mobile Communications. All rights reserved.
-Licensed under The MIT License. Please refer to the LICENSE file for full
+Licensed under The MIT License. Please refer to the `LICENSE`_ file for full
license details.
+
+.. _`Gerrit Code Review`: https://code.google.com/p/gerrit/
+.. _example: https://github.com/sonyxperiadev/pygerrit/blob/master/example.py
+.. _LICENSE: https://github.com/sonyxperiadev/pygerrit/blob/master/LICENSE