summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* feat(objects): support Create and Revoke personal access token APIfeat/create-delete-tokenNejc Habjan2021-09-134-28/+119
|
* fix(objects): rename confusing `to_project_id` argumentNejc Habjan2021-09-111-3/+3
| | | | | | BREAKING CHANGE: rename confusing `to_project_id` argument in transfer_project to `project_id` (`--project-id` in CLI). This is used for the source project, not for the target namespace.
* refactor(objects): remove deprecated constants defined in objectsNejc Habjan2021-09-113-16/+4
| | | | | BREAKING CHANGE: remove deprecated constants defined in gitlab.v4.objects, and use only gitlab.const module
* refactor(objects): remove deprecated tag release APINejc Habjan2021-09-082-41/+0
| | | | | BREAKING CHANGE: remove deprecated tag release API. This was removed in GitLab 14.0
* refactor(objects): remove deprecated project.issuesstatisticsNejc Habjan2021-09-082-5/+0
| | | | | BREAKING CHANGE: remove deprecated project.issuesstatistics in favor of project.issues_statistics
* refactor(objects): remove deprecated members.all() methodNejc Habjan2021-09-085-56/+2
| | | | | BREAKING CHANGE: remove deprecated members.all() method in favor of members_all.list()
* refactor(objects): remove deprecated pipelines() methodNejc Habjan2021-09-083-41/+1
| | | | BREAKING CHANGE: remove deprecated pipelines() methods in favor of pipelines.list()
* feat: default to gitlab.com if no URL givenNejc Habjan2021-09-085-29/+93
| | | | | BREAKING CHANGE: python-gitlab will now default to gitlab.com if no URL is given
* Merge pull request #1486 from JohnVillalovos/jlvillal/prohibit_redirectionNejc Habjan2021-09-084-23/+132
|\ | | | | fix!: raise error if there is a 301/302 redirection
| * fix!: raise error if there is a 301/302 redirectionJohn L. Villalovos2021-09-084-23/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before we raised an error if there was a 301, 302 redirect but only from an http URL to an https URL. But we didn't raise an error for any other redirects. This caused two problems: 1. PUT requests that are redirected get changed to GET requests which don't perform the desired action but raise no error. This is because the GET response succeeds but since it wasn't a PUT it doesn't update. See issue: https://github.com/python-gitlab/python-gitlab/issues/1432 2. POST requests that are redirected also got changed to GET requests. They also caused hard to debug tracebacks for the user. See issue: https://github.com/python-gitlab/python-gitlab/issues/1477 Correct this by always raising a RedirectError exception and improve the exception message to let them know what was redirected. Closes: #1485 Closes: #1432 Closes: #1477
* | Merge pull request #1512 from JohnVillalovos/jlvillal/type_managersNejc Habjan2021-09-0822-168/+178
|\ \ | |/ |/| chore: improve type-hinting for managers
| * chore: attempt to fix flaky functional testJohn L. Villalovos2021-09-081-1/+9
| | | | | | | | | | Add an additional check to attempt to solve the flakiness of the test_merge_request_should_remove_source_branch() test.
| * chore: convert to using type-annotations for managersJohn L. Villalovos2021-09-0821-242/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | Convert our manager usage to be done via type annotations. Now to define a manager to be used in a RESTObject subclass can simply do: class ExampleClass(CRUDMixin, RESTObject): my_manager: MyManager Any type-annotation that annotates it to be of type *Manager (with the exception of RESTManager) will cause the manager to be created on the object.
| * chore: improve type-hinting for managersJohn L. Villalovos2021-09-0721-20/+249
|/ | | | | | | | | | | | | | | The 'managers' are dynamically created. This unfortunately means that we don't have any type-hints for them and so editors which understand type-hints won't know that they are valid attributes. * Add the type-hints for the managers we define. * Add a unit test that makes sure that the type-hints and the '_managers' attribute are kept in sync with each other. * Add unit test that makes sure specified managers in '_managers' have a name ending in 'Managers' to keep with current convention. * Make RESTObject._managers always present with a default value of None. * Fix a type-issue revealed now that mypy knows what the type is
* test(build): add smoke tests for sdist & wheel packageNejc Habjan2021-09-025-1/+41
|
* fix(build): do not package tests in wheelNejc Habjan2021-09-021-1/+1
|
* Merge pull request #1585 from JohnVillalovos/jlvillal/archive_typeNejc Habjan2021-09-021-1/+1
|\ | | | | docs: correct documented return type
| * docs: correct documented return typeJohn L. Villalovos2021-09-021-1/+1
|/ | | | | | | | repository_archive() returns 'bytes' not 'str' https://docs.gitlab.com/ee/api/repositories.html#get-file-archive Fixes: #1584
* chore(deps): update dependency types-pyyaml to v5.4.10Renovate Bot2021-09-012-2/+2
|
* Merge pull request #1565 from javatarz/masterNejc Habjan2021-08-316-11/+206
|\ | | | | feat: allow global retry_transient_errors
| * feat: allow global retry_transient_errors setupKarun Japhet2021-08-296-11/+206
|/ | | | | | `retry_transient_errors` can now be set through the Gitlab instance and global configuration Documentation for API usage has been updated and missing tests have been added.
* chore: release v2.10.1v2.10.1github-actions2021-08-282-1/+9
|
* chore(deps): update dependency types-pyyaml to v5.4.8Renovate Bot2021-08-272-2/+2
|
* chore(deps): update dependency types-pyyaml to v5.4.7Renovate Bot2021-08-262-2/+2
|
* Merge pull request #1550 from python-gitlab/renovate/codecov-codecov-action-2.xNejc Habjan2021-08-231-2/+2
|\ | | | | chore(deps): update codecov/codecov-action action to v2
| * chore(deps): update codecov/codecov-action action to v2Renovate Bot2021-08-231-2/+2
|/
* chore(deps): update typing dependenciesRenovate Bot2021-08-222-4/+4
|
* chore: define root dir in mypy, not toxNejc Habjan2021-08-222-1/+2
|
* chore(deps): group typing requirements with mypy additional_dependenciesNejc Habjan2021-08-222-1/+10
|
* chore: fix mypy pre-commit hookNejc Habjan2021-08-2210-11/+28
|
* Merge pull request #1566 from Psycojoker/doc/mergequest_list_missleading_docNejc Habjan2021-08-221-1/+5
|\ | | | | docs(mergerequests): gl.mergerequests.list documentation was misleading
| * docs(mergequests): gl.mergequests.list documentation was missleadingLaurent Peuch2021-08-041-1/+5
| |
* | Merge pull request #1571 from ↵Nejc Habjan2021-08-131-1/+1
|\ \ | |/ |/| | | | | python-gitlab/fix-mixings-improve-deprecation-warning fix(mixins): improve deprecation warning
| * fix(mixins): improve deprecation warningMax Wittig2021-08-131-1/+1
|/ | | Also note what should be changed
* chore(deps): update dependency types-requests to v2.25.2Renovate Bot2021-08-021-1/+1
|
* fix(deps): upgrade requests to 2.25.0 (see CVE-2021-33503)Nejc Habjan2021-08-011-1/+1
|
* chore(deps): update wagoid/commitlint-github-action action to v4Renovate Bot2021-07-301-1/+1
|
* chore(deps): update dependency types-requests to v2.25.1Renovate Bot2021-07-301-1/+1
|
* chore(deps): update precommit hook pycqa/isort to v5.9.3Renovate Bot2021-07-291-1/+1
|
* chore(deps): update dependency isort to v5.9.3Renovate Bot2021-07-291-1/+1
|
* chore: release v2.10.0v2.10.0github-actions2021-07-282-1/+14
|
* docs(readme): move contributing docs to CONTRIBUTING.rstEric Davies2021-07-272-158/+162
| | | | | | Move the Contributing section of README.rst to CONTRIBUTING.rst, so it is recognized by GitHub and shown when new contributors make pull requests.
* fix(api): do not require Release name for creationEric Davies2021-07-272-1/+19
| | | | | Stop requiring a `name` attribute for creating a Release, since a release name has not been required since GitLab 12.5.
* test(functional): add mr.merge_ref testsMatej Focko2021-07-211-0/+32
| | | | | | | - Add test for using merge_ref on non-merged MR - Add test for using merge_ref on MR with conflicts Signed-off-by: Matej Focko <mfocko@redhat.com>
* docs: add example for mr.merge_refMatej Focko2021-07-211-0/+5
| | | | Signed-off-by: Matej Focko <mfocko@redhat.com>
* feat(api): add merge_ref for merge requestsMatej Focko2021-07-211-0/+15
| | | | | | | Support merge_ref on merge requests that returns commit of attempted merge of the MR. Signed-off-by: Matej Focko <mfocko@redhat.com>
* docs(project): add example on getting a single project using name with namespaceLaurent Peuch2021-07-201-0/+4
|
* chore(deps): update dependency requests to v2.26.0Renovate Bot2021-07-131-1/+1
|
* chore(deps): update precommit hook pycqa/isort to v5.9.2Renovate Bot2021-07-081-1/+1
|
* chore(deps): update dependency isort to v5.9.2Renovate Bot2021-07-081-1/+1
|