| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: Ic08c596dffd7e9c13dc1658e0dd904e6ffa097b1
|
|
|
|
| |
Change-Id: Ib7875046cdfd900f710209eab33e67db4c0a6799
|
|
|
|
| |
Change-Id: I776a58b2cdac17e3eafc985ee727cd88e8294ccc
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
| |
Change-Id: I2ff6b5fcd4460ceaa4db9dcde6832719f2557c7e
|
|
|
|
|
|
| |
This was missed in the migration to pbr.
Change-Id: Idb4167e99a02a8909fe152956a083fe133f1fc86
|
|
|
|
|
|
|
| |
The Content-Type must be set to "application/json" for PUT and
POST requests.
Change-Id: I859e6cb18b981935b1788a943ec195955fb1e46d
|
|
|
|
|
|
|
|
|
|
|
|
| |
Request compact JSON by setting:
'Accept: application/json'
Request compressed response by setting:
'Accept-Encoding: gzip'
Change-Id: Ie1b5169d43b164f0e06aa765cbf76cca25d629f3
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
- It has dependencies on several other modules.
- It is too strict. It should be enough to run pyflakes.
Change-Id: I17d1c3390e5530e2b2a86d680d9816a29f272707
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I083eca93f4969fa9c2d157da39f342de62cf5fd6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
optparse was deprecated since 2.7 and removed in python 3
Change-Id: Ic5bccb171f45c4948dad47e8fc6fb5830d6dfcff
|
|
|
|
|
|
| |
* client.stop_event_stream() was not closing
Change-Id: Idf38565332a7865063caf614992ba376804da1a7
|
|
|
|
| |
Change-Id: I65d45f11f3b467f4cf8bc34a4a63749406d78abf
|
|
|
|
|
|
|
| |
kwargs now made passable to request functions so that lower-level
python-requests interface can be fully utilized.
Change-Id: I38eff49314a3966546e0b272af2e58ed276269d9
|
|
|
|
|
|
|
|
|
| |
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 showing the latest package version on pypi, and the
number of downloads in the last month.
Change-Id: Ib3b49bf77135d6a33ab338638b98da6ea5d32a43
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I64f69dc544129772446f4995e6f148c388cb0f62
|
|
|
|
|
|
|
| |
Hard-coding the package list caused the `rest` package to
be missed.
Change-Id: I9119f358071c308add1ad167fb934d17ca88198c
|
|
|
|
| |
Change-Id: I32b970452809d31037ad15783d2f50e894e530ed
|
|
|
|
| |
Change-Id: I57db6ab987ac604134267ccc79ec4451a0119841
|
|
|
|
|
|
|
| |
Include the account information for the user who gave the
approval.
Change-Id: I3857c9913c38a5c5223111274314e107f4c81090
|
|
|
|
|
|
|
| |
The "currentPatchset" field of the query results includes information
about the review label scores.
Change-Id: I41d54225284e15b2b61b79bfaa309cd5c2b4b86a
|
|
|
|
| |
Change-Id: I188e4cc116878cdd6679e45bf3ee545b20ce974e
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I0fc676f74f6e41c25d7f9f8a504e6a507a5bb43a
|
|
|
|
|
|
|
| |
Remove GerritRestAPIError. Raise requests.HTTPError when a request
results in an HTTP Error. Raise ValueError in other places.
Change-Id: I25188f64161a6ca8159e7777e3f288f775463c25
|
|
|
|
| |
Change-Id: I91b90d26fde775d5d58ee127fd9015757090a978
|
|
|
|
| |
Change-Id: If1863c06619a11f93efc7c25c7c33c749950d6a5
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: Ia72639e9579e6a438b520b50a799f18184de206b
|
|
|
|
| |
Change-Id: I41828e0c181b53604ef84f423267f1c45ca6d7b4
|
|
|
|
| |
Change-Id: I60d31b86a8df2e5cb785f367140de4567ff32e10
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I2a9d0e50978334e560e076791029746f2531ea51
|
|
|
|
| |
Change-Id: Ia7cb549ccb2453e984596514aba737a54155a0b9
|
|
|
|
| |
Change-Id: I31c7c86a0f9da8e4a144cadc8959caefc53969fb
|
|
|
|
| |
Change-Id: I031b9293fd6ae3afe28e114b8d5ecc6de34f1bb3
|
|
|
|
| |
Change-Id: Id87cffa0938c7cd203d91b91be85a13ee4e4afd4
|
|
|
|
|
|
|
| |
pylint fails because it can't import requests_kerberos. This is a
false positive; we already have handling of import failure.
Change-Id: I1641528b8358a8916dfcf4c67e680a03118b3913
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| |
| |
| |
| |
| | |
* 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
|
| |\
|/ /
| | |
Avoid busy loop when receiving incoming stream data.
|
| | |
|