summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove support for Gerrit over sshDavid Pursehouse2014-04-2827-1599/+62
| | | | | | | | | From now only the REST API is supported. This makes installation of the package a bit lighter as we no longer depend on paramiko and pycrypto Change-Id: Ieda773d596fd43047c05895f3304690ddf709094
* Version 0.2.50.2.5David Pursehouse2014-04-173-1/+8
| | | | Change-Id: I083eca93f4969fa9c2d157da39f342de62cf5fd6
* Fix up usage of argparse in examplesDavid Pursehouse2014-04-112-13/+17
| | | | | | | | | | | | | | | | | | | Since a76db4cfc83d4cf7a52d045e4df82ec8b1e3f562 it is broken. - Use ArgumentDefaultsHelpFormatter to automatically show default values for the options. - Remove hard-coded 'default' information from help texts. - Add a metavar for the ssh event timeout option. - Integer arguments must now be specified as `int` rather than `'int'` with quotation marks. - Fix calls to `parser.parse_args`, which now returns a single value rather than a tuple. Change-Id: If5cf4e2d1f4014a60f7a7634d43df12b788bc7b4
* Update examples to use argparse instead of optparseAndrey Devyatkin2014-04-112-49/+46
| | | | | | optparse was deprecated since 2.7 and removed in python 3 Change-Id: Ic5bccb171f45c4948dad47e8fc6fb5830d6dfcff
* Fix for hanging connectionsJohannes Richter2014-04-031-0/+4
| | | | | | * client.stop_event_stream() was not closing Change-Id: Idf38565332a7865063caf614992ba376804da1a7
* Version 0.2.40.2.4David Pursehouse2014-03-173-1/+10
| | | | Change-Id: I65d45f11f3b467f4cf8bc34a4a63749406d78abf
* Accept kwargs for request functionsChristopher Zee2014-03-171-18/+8
| | | | | | | kwargs now made passable to request functions so that lower-level python-requests interface can be fully utilized. Change-Id: I38eff49314a3966546e0b272af2e58ed276269d9
* Correct Gerrit documentation linkDavid Pursehouse2014-03-171-1/+1
| | | | | | | | | The documentation was moved, so update the link. Also change the link to refer to the documentation to refer to Gerrit 2.8 which is now the latest major version. Change-Id: I07d55521b52806f09130bcb6673a354e241f2c92
* Add badges to the READMEDavid Pursehouse2014-03-111-0/+6
| | | | | | | Add badges showing the latest package version on pypi, and the number of downloads in the last month. Change-Id: Ib3b49bf77135d6a33ab338638b98da6ea5d32a43
* Fix README markup to work properly on GitlabDavid Pursehouse2014-03-031-18/+6
| | | | | | | | | | | | | The markup used to show code snippets renders properly on GitHub but on gitlab the snippets are not shown. Change the markup so that it works on both. With this change we lose the syntax highlighting on Github, but this is a fair tradeoff if it means we can view it properly on Gitlab. Change-Id: Ie2faa0862fd467a806041b57aafd5b797e1a5cd2
* Version 0.2.30.2.3David Pursehouse2013-12-172-1/+6
| | | | Change-Id: I64f69dc544129772446f4995e6f148c388cb0f62
* Use find_packages() in setupDavid Pursehouse2013-12-171-2/+2
| | | | | | | Hard-coding the package list caused the `rest` package to be missed. Change-Id: I9119f358071c308add1ad167fb934d17ca88198c
* Bump version to 0.2.20.2.2David Pursehouse2013-11-181-1/+1
| | | | Change-Id: I32b970452809d31037ad15783d2f50e894e530ed
* Release notes for 0.2.2David Pursehouse2013-11-181-0/+13
| | | | Change-Id: I57db6ab987ac604134267ccc79ec4451a0119841
* Add user in the Approval objectDavid Pursehouse2013-11-181-0/+1
| | | | | | | Include the account information for the user who gave the approval. Change-Id: I3857c9913c38a5c5223111274314e107f4c81090
* Add support for CurrentPatchSetDavid Pursehouse2013-11-181-0/+30
| | | | | | | The "currentPatchset" field of the query results includes information about the review label scores. Change-Id: I41d54225284e15b2b61b79bfaa309cd5c2b4b86a
* Include change status in Change objectDavid Pursehouse2013-11-181-0/+1
| | | | Change-Id: I188e4cc116878cdd6679e45bf3ee545b20ce974e
* Always set sortkey in Change objectDavid Pursehouse2013-11-181-2/+1
| | | | | | | | | | | The from_json method returns None if the key does not exist in the json data, so we don't need to check for existence of the key when constructing the object. This also ensures that the constructed object has a sortkey member. Change-Id: Ic342f8b25aeded0e999f93fa29190853354c57f0
* Handle errors in REST API exampleDavid Pursehouse2013-11-071-4/+8
| | | | Change-Id: I0fc676f74f6e41c25d7f9f8a504e6a507a5bb43a
* Simplify REST API error handlingDavid Pursehouse2013-11-072-30/+16
| | | | | | | Remove GerritRestAPIError. Raise requests.HTTPError when a request results in an HTTP Error. Raise ValueError in other places. Change-Id: I25188f64161a6ca8159e7777e3f288f775463c25
* Add username field in the account dataDavid Pursehouse2013-11-071-0/+1
| | | | Change-Id: I91b90d26fde775d5d58ee127fd9015757090a978
* Add method to run a gerrit command from the clientDavid Pursehouse2013-11-071-0/+6
| | | | Change-Id: If1863c06619a11f93efc7c25c7c33c749950d6a5
* Add method to get username and Gerrit versionDavid Pursehouse2013-11-072-0/+9
| | | | | | | | | | If the username is not given in the constructor, it is detected from the ssh config. Add a method that allows the client to get the detected username that was used to connect to Gerrit. Change-Id: I15747d1446b07ce6b250f294fe72842a1be50a6c
* Fix NameError in REST API exampleDavid Pursehouse2013-11-071-1/+1
| | | | Change-Id: Ia72639e9579e6a438b520b50a799f18184de206b
* Bump to requests 2.0.1 also in setup.pyDavid Pursehouse2013-11-071-1/+1
| | | | Change-Id: I41828e0c181b53604ef84f423267f1c45ca6d7b4
* Bump requests version up to 2.0.1David Pursehouse2013-10-311-1/+1
| | | | Change-Id: I60d31b86a8df2e5cb785f367140de4567ff32e10
* Update change log for 0.2.10.2.1David Pursehouse2013-10-251-0/+5
| | | | | | | | | | | | In commit a1ca197 the version was supposed to be bumped to 0.2.0 but was set to 0.2.1 instead. The 0.2.0 tag was already pushed, so it can't be fixed now. Make 0.2.1 instead with the couple of documentation fixes that have been added since. Change-Id: I70afb0de3124c03d957a8be0d54cabcceb5be9b8
* Document the HTTP password configuration for REST API usageDavid Pursehouse2013-10-231-0/+13
| | | | Change-Id: I2a9d0e50978334e560e076791029746f2531ea51
* Reword the prerequisites in the readmeDavid Pursehouse2013-10-231-2/+2
| | | | Change-Id: Ia7cb549ccb2453e984596514aba737a54155a0b9
* Separate prerequisites and configuration in the readmeDavid Pursehouse2013-10-231-0/+5
| | | | Change-Id: I31c7c86a0f9da8e4a144cadc8959caefc53969fb
* Bump version to 0.2.00.2.0David Pursehouse2013-10-211-1/+1
| | | | Change-Id: I031b9293fd6ae3afe28e114b8d5ecc6de34f1bb3
* Update change log for 0.2.0David Pursehouse2013-10-211-0/+10
| | | | Change-Id: Id87cffa0938c7cd203d91b91be85a13ee4e4afd4
* Suppress pylint "Unable to import" errorDavid Pursehouse2013-10-211-0/+2
| | | | | | | pylint fails because it can't import requests_kerberos. This is a false positive; we already have handling of import failure. Change-Id: I1641528b8358a8916dfcf4c67e680a03118b3913
* Suppress pylint warning about catching too general exceptionDavid Pursehouse2013-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | Commit 06c88c8 (merged with pull request #13) added exception handling: except Exception as e: which causes a pylint warning: W0703: Catching too general exception Exception However in this case we actually do want to catch all types of exception because the intention is to make sure pygerrit doesn't fall over when something unexpected happens. Add a suppression of this warning. The suppression is only effective on this particular line; the warning will be raised again if we do the same thing again somewhere else. Change-Id: If812d441c1dc625651db34c6d3763cedc98b68a9
* Merge branch 'master' into internalDavid Pursehouse2013-10-181-8/+12
|\ | | | | | | | | | | | | | | * master: Ensure errors in json parsing doesn't leave everything in a broken state Avoid busy loop when receiving incoming stream data. Change-Id: I110d42b45f07c3374c2bf8b87daf03e91d2b02e6
| * Merge pull request #13 from EnJens/masterDavid Pursehouse2013-10-171-8/+12
| |\ |/ / | | Avoid busy loop when receiving incoming stream data.
| * Ensure errors in json parsing doesn't leave everything in a broken stateJens Andersen2013-10-171-8/+12
| |
| * Avoid busy loop when receiving incoming stream data.Jens Andersen2013-10-161-1/+1
| | | | | | | | | | Checking whether bytes are available is a non-blocking operation, causing the receive loop to become a busy loop.
* | Fix pylint error in rest_example.pyDavid Pursehouse2013-10-181-2/+3
| | | | | | | | | | | | pylint says: "redefinition of unused 'HTTPKerberosAuth' from line 34" Change-Id: Ie2b8cee42bf08eaa0e9bdab1ef5bf2b23ccee7f5
* | Change abandoned and restored events don't have a patchset fieldDavid Pursehouse2013-10-181-8/+4
| | | | | | | | Change-Id: I16ef5fe0ba55902985c8cfec1d4845a3533ad82c
* | Merge branch 'master' into internalDavid Pursehouse2013-10-183-3/+22
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: Add myself to authors Add an authors list that contributors can add themselves to Fix indentation Reason is optional in abandon and restore changes Return sortKey from query result, to allow resuming query. Change-Id: I357d82fee44c47f960000b8db4f7c6d0d95a0993
| * \ Merge pull request #16 from EnJens/add-myself-as-authorDavid Pursehouse2013-10-171-1/+1
| |\ \ | | | | | | | | Add myself to authors
| | * | Add myself to authorsJens Andersen2013-10-171-1/+1
| |/ /
| * | Add an authors list that contributors can add themselves toDavid Pursehouse2013-10-181-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | The format of the file is based on the AUTHORS.rst file in Kenneth Reitz's requests [1]. [1] https://github.com/kennethreitz/requests Change-Id: I24c7511b79e588107c251708b2c15d9bd574e15b
| * | Merge pull request #15 from EnJens/return-sortkey-from-queryDavid Pursehouse2013-10-171-0/+2
| |\ \ | | | | | | | | Return sortKey from query result, to allow resuming query.
| | * | Fix indentationJens Andersen2013-10-171-1/+1
| | | |
| | * | Return sortKey from query result, to allow resuming query.Jens Andersen2013-10-171-0/+2
| | |/ | | | | | | | | | This is required to be able to retrieve more than 500 changes using the query interface.
| * | Merge pull request #14 from EnJens/fix-missing-reasonDavid Pursehouse2013-10-171-3/+6
| |\ \ | | |/ | |/| Reason is optional in abandon and restore changes
| | * Reason is optional in abandon and restore changesJens Andersen2013-10-171-3/+6
| |/
* | Update the README to mention the REST APIDavid Pursehouse2013-10-171-1/+19
| | | | | | | | Change-Id: I0db09e7c7eb1fd9fd49bd70371b09a9c61326c35