summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #41 from copland/masterHEADmasterDavid Pursehouse2019-04-152-8/+15
|\ | | | | Add support for automatically adding known_hosts
| * Add support for automatically adding known_hostsChris Opland2019-04-122-8/+15
|/ | | | | | | | | | | | Currently, if a server is not in the known_hosts file then the client will fail with an error like: paramiko.SSHException: Server '[<host>]:<port>' not found in known_hosts This change allows users to configure paramiko with the AutoAddPolicy(). It should be noted that using this policy opens users to man-in-the-middle attacks, which is why it is an optional setting and defaults to False.
* Add 'no longer maintained' notice in README fileDavid Pursehouse2016-08-121-0/+4
| | | | Change-Id: Ifbb8a9af33d4541db33a2e2c65114bcb703fb6bc
* Update Gerrit documentation link to latest versionDavid Pursehouse2016-04-251-1/+1
| | | | Change-Id: I514a275cc8c12e4e60f8f55a260968c7d7f7aba9
* Update link to Gerrit home pageDavid Pursehouse2016-04-251-1/+1
| | | | Change-Id: Id8715c0dcb77e2a34daf45fa59175ea41a7b01bc
* Use badges from shields.io1.0.0David Pursehouse2016-04-111-4/+4
| | | | Change-Id: Ifc4e51f3a14e75701d93c93bb28ef8f1db9afaf4
* Upgrade pyflakes to 1.0.0David Pursehouse2016-02-291-1/+1
| | | | Change-Id: I1eabb05c3747129e8d7d6bda0722f24fec5f452e
* Upgrade PEP-8 to 1.7.0David Pursehouse2016-02-291-1/+1
| | | | Change-Id: If927e48a26b9e2b418347d5b3328923c83120104
* Include event name in UnhandledEvent's __repr__ outputDavid Pursehouse2016-02-292-1/+3
| | | | Change-Id: I7028026b67b432d9ac5a3c0bdf660a672ff12a89
* Upgrade Paramiko to 1.16.0David Pursehouse2016-02-291-1/+1
| | | | Change-Id: I6ab81357f35ce70de43e85a7642bc51017fae9ec
* Upgrade requests to 2.9.1David Pursehouse2016-02-291-1/+1
| | | | Change-Id: Id47b88303fff8551dcce381b00efc27df482e063
* Raise exception if the json content is invalidGeorge Peristerakis2016-02-291-2/+3
| | | | | | | | | If the json loads function raises, the return content is invalid. The function should log the error and raise the exception. Closes #32 Change-Id: I053b0169c8da47f2a4812cc30783f8a4776f9c2b
* Add missing docstring for Change#from_jsonDavid Pursehouse2016-02-291-0/+6
| | | | | | Closes #33 Change-Id: I57616a8b8fa513f0ce650613b1ed9ec31b0322b4
* Added from_json method for Change modelVasiliy Kleschov2016-02-292-0/+7
| | | | Change-Id: Idc5ae59b22a4fb21c434dc2dd9c7accc0bd5015e
* Updated add_comment() to support line rangesBenjamin Foster2015-08-191-5/+19
| | | | | | | | | | add_comment() now supports 'ranges' as described by the gerrit API, by using the keyword 'range' instead of 'line', and a dict with the four required keys. Closes #31 Change-Id: Iaa7004e4f94794df8546a153227375e7be4b06bb
* Upgrade paramiko to version 1.15.20.2.11paramiko-1.15.2David Pursehouse2015-06-301-1/+1
| | | | Change-Id: I73a7b82b6e1f01acf3c97507c95f5042b38c2c76
* Add keepalive support to GerritSSHClientVineet Naik2015-06-302-3/+11
| | | | | | | This will allow keeping the SSH sessions alive for a duration of time longer than the timeout configured for the server. Change-Id: I9d86c0fc304783fab944ebae7bd0da8f3b1edd6c
* Don't use requests.session()0.2.10David Pursehouse2015-06-291-5/+4
| | | | | | | | | | | Workaround for requests issue 2409 [1] and Gerrit issue 3458 [2] where the Gerrit server returns HTTP 400 on subsequent requests via an existing session. [1] https://github.com/kennethreitz/requests/issues/2409 [2] http://code.google.com/p/gerrit/issues/detail?id=3458 Change-Id: I98428ec59fca7146c5587172b464e2e09b90782c
* Don't set Content-Type on PUT/POST if there is no bodyDavid Pursehouse2015-06-291-4/+6
| | | | | | Fixes #26 Change-Id: Ic4e0ba378fd61ed49a3ca9ea25ef2ccf21532af2
* Add debug log of response contentDavid Pursehouse2015-06-241-1/+2
| | | | Change-Id: If57c2f4443405a546d7aee796c8381c053e1b301
* Upgrade requests to 2.7.00.2.9David Pursehouse2015-06-081-1/+1
| | | | Change-Id: Ia0f0545b18191436f4ea873a6fca21da3773be23
* Allow unicode characters in gerrit commandsNikki Heald2015-04-061-0/+6
| | | | | | | | | Trying to use pygerrit to submit reviews fails if there is a unicode character in the review comment. This change sees if the message is valid ascii, and if it's not, encodes as utf-8. Change-Id: Ia14d59d28b11a78bee9d89fd84fb09976015787f
* Update requests to 2.5.1David Pursehouse2015-01-081-1/+1
| | | | Change-Id: Idb850bb82e78946d55e32aedfcaba75ede9a4d47
* Fix incorrect docstringDavid Pursehouse2014-12-081-4/+1
| | | | Change-Id: Ic753786a01deef0270e3039c15a0ceabedfe3901
* Upgrade pyflakes to 0.8.1David Pursehouse2014-11-281-1/+1
| | | | Change-Id: I54f50a0133d13329698dae5812cb4343d3f2f221
* Be less strict about the pbr version usedDavid Pursehouse2014-11-281-1/+1
| | | | Change-Id: I61a19d97eead3cf3242734bf36ba66d8b21de6fd
* Restructure docstrings for better html output.David Pursehouse2014-10-304-88/+161
| | | | Change-Id: Ic935e8f85e2ad333677770746c15648ae5bac339
* Bump pep8 to 1.5.7David Pursehouse2014-10-274-5/+6
| | | | | | And fix a couple of newly discovered warnings. Change-Id: I835d16ed94f2e20f003a2aa0b0370483d02e7926
* Bump paramiko to 1.15.1 and pycrypto to 2.6.1David Pursehouse2014-10-241-2/+2
| | | | Change-Id: I58486c2a9f0ae29251edfd5221bf86743ddd81be
* Bump requests to 2.4.3David Pursehouse2014-10-241-1/+1
| | | | Change-Id: I53aba2fa124d0f5b70d03521be919176b0e6bfda
* Fix documentation buildDavid Pursehouse2014-10-221-4/+4
| | | | | | | | Current implementation only works properly for the latest tag. Change it so we can build documentation at any revision. Change-Id: I8cc0e3ef449d8f861411ca86ba676a0f9c89009f
* Bump python requests version to 2.4.1Fabien Boucher2014-09-291-1/+1
| | | | Change-Id: I7ce16a9042367ac491dbea363452a9fc511997a7
* Add inline review support0.2.8Peter Theckanath2014-09-012-0/+124
| | | | | | Added API to send inline review Change-Id: Ifdcfbaea6ae4d8723d9566eaaf3c5dba5ff35617
* Replace deprecated assertEquals() with assertEqual()Peter Theckanath2014-09-011-176/+176
| | | | Change-Id: I7776c65f9c28b3cf05f2169696da0256f5cfc5b8
* Update PEP257 to 0.2.4David Pursehouse2014-07-151-1/+1
| | | | Change-Id: I126d8fec7a58d74474caa6fde0fc29d247d93994
* Update pyflakes to 0.7.3Peter Theckanath2014-07-151-1/+1
| | | | Change-Id: Iad0c2c632993aaec7b26c6209a89a8652ee3c327
* Add message formatter class0.2.7David Pursehouse2014-06-192-0/+197
| | | | | | | Add a new helper class that can be used to format the messages that are sent to Gerrit via the review command. Change-Id: Ib8684d60788c8f19054bca6cfc707b25079395d3
* Upgrade requests to 2.3.0David Pursehouse2014-05-301-1/+1
| | | | Change-Id: Ic08c596dffd7e9c13dc1658e0dd904e6ffa097b1
* Fix paramiko link in the README fileDavid Pursehouse2014-05-301-1/+1
| | | | Change-Id: Ib7875046cdfd900f710209eab33e67db4c0a6799
* Add support for ProxyCommand in GerritSSHClient0.2.6Alexander D. Kanevskiy2014-05-291-2/+6
| | | | Change-Id: I776a58b2cdac17e3eafc985ee727cd88e8294ccc
* Upgrade paramiko to 1.14.0David Pursehouse2014-05-291-1/+2
| | | | | | | | | Upgrading to a later version that includes better support for proxies. This introduces an additional dependency on the ecdsa cryptographic signature library. Change-Id: I5971296ab2d9789612a6f28c72559c86a25796a0
* Revert "Remove support for Gerrit over ssh"David Pursehouse2014-05-2926-66/+1603
| | | | | | | | | | | | | | | | | | | | | The ssh interface is still being used and patches are being contributed [1]. It's easier to revert the removal on master than attempt to keep the support in a separate branch. This reverts commit f0b77968389966cd7bad0cac1fe7f04526eafde1. [1] https://github.com/sonyxperiadev/pygerrit/pull/21 Conflicts: README.rst example.py requirements.txt setup.py unittests.py Change-Id: I9e02208c57cb2022ff39cff6650101ed40c0519d
* Update the READMEDavid Pursehouse2014-05-071-12/+21
| | | | | | | | | | - Rewrite introduction - Rename "REST API" section to "Usage" and add summary of example - Mention dependency on the requests library - Switch order of "Installation" and "Prerequisites" sections - Mention removal of ssh support Change-Id: Iebf015e554a0de751abeba0f5394ed59f32585d5
* Upgdade requests to 2.2.1David Pursehouse2014-05-021-1/+1
| | | | Change-Id: I2ff6b5fcd4460ceaa4db9dcde6832719f2557c7e
* Include full description in the setup configDavid Pursehouse2014-05-021-0/+1
| | | | | | This was missed in the migration to pbr. Change-Id: Idb4167e99a02a8909fe152956a083fe133f1fc86
* Set Content-Type header on PUT and POST requestsDavid Pursehouse2014-05-021-0/+4
| | | | | | | The Content-Type must be set to "application/json" for PUT and POST requests. Change-Id: I859e6cb18b981935b1788a943ec195955fb1e46d
* Set HTTP headers to reduce data transfer timeDavid Pursehouse2014-05-021-1/+4
| | | | | | | | | | | | Request compact JSON by setting: 'Accept: application/json' Request compressed response by setting: 'Accept-Encoding: gzip' Change-Id: Ie1b5169d43b164f0e06aa765cbf76cca25d629f3
* Migrate setup to pbrDavid Pursehouse2014-05-0212-219/+33
| | | | | | | | pbr provides better version handling, and automates the release notes and list of authors. This means we have to spend less time manually updating things. Change-Id: Ie79d706ec7a177f437b6bb0e38a9bded8bc4bb9e
* Stop using pylintDavid Pursehouse2014-05-024-314/+1
| | | | | | | | - It has dependencies on several other modules. - It is too strict. It should be enough to run pyflakes. Change-Id: I17d1c3390e5530e2b2a86d680d9816a29f272707
* 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