summaryrefslogtreecommitdiff
path: root/gitlab/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* chore: another tryrefactor/structure-objectsMax Wittig2020-01-221-29/+47
|
* refactor: structure python objects in a reasonable wayMax Wittig2020-01-221-6/+1
|
* chore: bump to 2.0.0refactor/cleanup-upgradeMax Wittig2019-12-181-1/+1
| | | | Dropping support for legacy python requires a new major version
* refactor: remove six dependencyMax Wittig2019-12-181-3/+2
|
* chore: bump version to 1.15.0v1.15.0Max Wittig2019-12-161-1/+1
|
* feat: allow cfg timeout to be overrided via kwargsAndrew Tergis2019-12-161-0/+2
| | | | | | | | | | | | | On startup, the `timeout` parameter is loaded from config and stored on the base gitlab object instance. This instance parameter is used as the timeout for all API requests (it's passed into the `session` object when making HTTP calls). This change allows any API method to specify a `timeout` argument to `**kwargs` that will override the global timeout value. This was somewhat needed / helpful for the `import_github` method. I have also updated the docs accordingly.
* feat: nicer stacktraceMitar2019-12-161-4/+6
|
* feat: retry transient HTTP errorsMitar2019-12-121-1/+5
| | | | Fixes #970
* fix: ignore all parameter, when as_list=TrueMax Wittig2019-12-081-1/+1
| | | | Closes #962
* chore: bump version to 1.14.0v1.14.0Max Wittig2019-12-071-1/+1
|
* feat: add audit endpointidanbensha2019-12-021-0/+1
|
* chore: bump version to 1.13.0choree/1-13-0Max Wittig2019-11-021-1/+1
|
* feat: send python-gitlab version as user-agentMax Wittig2019-10-241-1/+1
|
* feat(auth): remove deprecated session authCyril Jouve2019-10-121-20/+0
|
* fix: fix not working without authfix/non-authMax Wittig2019-10-071-8/+7
|
* chore: bump to 1.12.0Max Wittig2019-10-061-1/+1
|
* feat: add support for job tokenMathieu Parent2019-09-061-4/+22
| | | | See https://docs.gitlab.com/ee/api/jobs.html#get-job-artifacts for usage
* chore: bump package versionv1.11.0Max Wittig2019-08-311-1/+1
|
* fix: remove empty dict default argumentsFrantisek Lachman2019-08-141-7/+16
| | | | Signed-off-by: Frantisek Lachman <flachman@redhat.com>
* chore: bump package version to 1.10.0Max Wittig2019-07-221-1/+1
|
* feat: bump version to 1.9.0feat/version-bumpMax Wittig2019-06-191-1/+1
|
* refactor: format everything blackrefactor/blackMax Wittig2019-05-161-134/+176
|
* fix: pep8 errorsGauvain Pocentek2019-05-011-1/+1
| | | | Errors have not been detected by broken travis runs.
* Make gitlab.Gitlab.from_config a classmethodjeroen_decroos2019-03-071-9/+9
|
* Release version 1.8.0Gauvain Pocentek2019-02-221-3/+3
|
* Fix all kwarg behaviourJonathan Piron2019-02-181-1/+1
| | | | | | | | | | | | | | `all` kwarg is used to manage GitlabList generator behaviour. However, as it is not poped from kwargs, it is sent to Gitlab API. Some endpoints such as [the project commits](https://docs.gitlab.com/ee/api/commits.html#list-repository-commits) one, support a `all` attribute. This means a call like `project.commits.list(all=True, ref_name='master')` won't return all the master commits as one might expect but all the repository's commits. To prevent confusion, the same kwarg shouldn't be used for 2 distinct purposes. Moreover according to [the documentation](https://python-gitlab.readthedocs.io/en/stable/gl_objects/commits.html#examples), the `all` project commits API endpoint attribute doesn't seem supported.
* Merge pull request #687 from python-gitlab/fix/683/raw_downloadMax Wittig2019-01-191-3/+7
|\ | | | | fix(api): Don't try to parse raw downloads
| * fix(api): Don't try to parse raw downloadsfix/683/raw_downloadGauvain Pocentek2019-01-191-3/+7
| | | | | | | | | | | | | | | | | | | | | | http_get always tries to interpret the retrieved data if the content-type is json. In some cases (artifact download for instance) this is not the expected behavior. This patch changes http_get and download methods to always get the raw data without parsing. Closes #683
* | fix(api): avoid parameter conflicts with python and gitlabno-param-conflictsGauvain Pocentek2019-01-131-1/+14
|/ | | | | | | | | | Provide another way to send data to gitlab with a new `query_parameters` argument. This parameter can be used to explicitly define the dict of items to send to the server, so that **kwargs are only used to specify python-gitlab specific parameters. Closes #566 Closes #629
* fix: handle empty 'Retry-After' header from GitLabSrikanth Chelluri2019-01-081-3/+11
| | | | | | | | | When requests are throttled (HTTP response code 429), python-gitlab assumed that 'Retry-After' existed in the response headers. This is not always the case and so the request fails due to a KeyError. The change in this commit adds a rudimentary exponential backoff to the 'http_request' method, which defaults to 10 retries but can be set to -1 to retry without bound.
* Prepare the 1.7.0 releaserelease-1.7.0Gauvain Pocentek2018-12-091-1/+1
|
* Improve error message handling in exceptionsrefactor/excpetion_msgGauvain Pocentek2018-11-241-2/+6
| | | | | | | | | * Depending on the request Gitlab has a 'message' or 'error' attribute in the json data, handle both * Add some consistency by converting messages to unicode or str for exceptions (depending on the python version) Closes #616
* Fix the https redirection testGauvain Pocentek2018-09-051-1/+1
|
* 1.6.0 release1.6.0Gauvain Pocentek2018-08-251-1/+1
|
* Raise an exception on https redirects for PUT/POSTGauvain Pocentek2018-08-241-19/+29
| | | | | | | | | | | POST and PUT requests are modified by clients when redirections happen. A common problem with python-gitlab is a misconfiguration of the server URL: the http to https redirection breaks some requests. With this change python-gitlab should detect problematic redirections, and raise a proper exception instead of failing with a cryptic error. Closes #565
* Support group and global MR listingGauvain Pocentek2018-07-151-0/+1
| | | | Closes #553
* 1.5.1 release1.5.1Gauvain Pocentek2018-06-231-1/+1
|
* Prepare the 1.5.0 release1.5.0Gauvain Pocentek2018-06-221-1/+1
|
* Use the same description for **kwargs everywhereGauvain Pocentek2018-06-171-7/+7
|
* Revert "make as_list work for all queries"Gauvain Pocentek2018-06-171-7/+13
| | | | | | This reverts commit 8e787612fa77dc945a4c1327e9faa6eee10c48f2. This change broke the basic generator usage (Fixes #534)
* Add support for the LDAP gorups APIGauvain Pocentek2018-06-131-0/+1
|
* Add support for the EE license APIGauvain Pocentek2018-06-131-9/+38
|
* Merge pull request #514 from jouve/generatorGauvain Pocentek2018-06-091-13/+7
|\ | | | | make as_list=False work for all=True queries
| * make as_list work for all queriesCyril Jouve2018-06-071-13/+7
| |
* | Add geo nodes API supportGauvain Pocentek2018-06-091-0/+1
| | | | | | | | Fixes #524
* | fix #521 change post_data default value to Noneleon2018-06-081-1/+1
|/
* Add support for the gitlab CI lint APIGauvain Pocentek2018-05-291-0/+23
|
* Implement the markdown rendering APIGauvain Pocentek2018-05-291-0/+27
| | | | Testing will be enable when GitLab 11.0 is available.
* add per_page config optionCyril Jouve2018-05-221-2/+5
|
* Add support for the search APIGauvain Pocentek2018-05-211-0/+19
| | | | Fixes #470