summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | docs(api): clarify job token usage with auth()Axel Amigo Arnold2021-10-081-1/+4
|/ / | | | | | | See issue #1620
* | Merge pull request #1515 from JohnVillalovos/jlvillal/mypy_v4_obj_usersNejc Habjan2021-10-062-9/+17
|\ \ | | | | | | chore: add type-hints to gitlab/v4/objects/users.py
| * | chore: add type-hints to gitlab/v4/objects/users.pyJohn L. Villalovos2021-09-072-9/+17
| | | | | | | | | | | | Adding type-hints to gitlab/v4/objects/users.py
* | | refactor(objects): remove deprecated branch protect methodsNejc Habjan2021-10-062-61/+2
| | | | | | | | | | | | | | | BREAKING CHANGE: remove deprecated branch protect methods in favor of the more complete protected branches API.
* | | fix(api): replace deprecated attribute in delete_in_bulk() (#1536)antti-mikael2021-10-061-11/+13
| | | | | | | | | | | | | | | BREAKING CHANGE: The deprecated `name_regex` attribute has been removed in favor of `name_regex_delete`. (see https://gitlab.com/gitlab-org/gitlab/-/commit/ce99813cf54)
* | | chore(deps): update dependency types-requests to v2.25.9Renovate Bot2021-10-062-2/+2
| | |
* | | Merge pull request #1621 from JohnVillalovos/jlvillal/mypy_depNejc Habjan2021-10-061-0/+2
|\ \ \ | | | | | | | | chore: fix type-check issue shown by new requests-types
| * | | chore: fix type-check issue shown by new requests-typesJohn L. Villalovos2021-10-061-0/+2
|/ / / | | | | | | | | | | | | types-requests==2.25.9 changed a type-hint. Update code to handle this change.
* | | Merge pull request #1619 from python-gitlab/renovate/python-3.xNejc Habjan2021-10-062-3/+3
|\ \ \ | | | | | | | | chore(deps): update python docker tag to v3.10
| * | | chore(deps): update python docker tag to v3.10Renovate Bot2021-10-062-3/+3
| | |/ | |/|
* | | Merge pull request #1617 from python-gitlab/feat/support-3.10Max Wittig2021-10-064-6/+9
|\ \ \ | | | | | | | | feat(build): officially support and test python 3.10
| * | | feat(build): officially support and test python 3.10Nejc Habjan2021-10-064-6/+9
|/ / /
* | | Merge pull request #1450 from python-gitlab/renovate/sphinx-4.xNejc Habjan2021-10-061-1/+1
|\ \ \ | |/ / |/| | chore(deps): update dependency sphinx to v4
| * | chore(deps): update dependency sphinx to v4Renovate Bot2021-10-061-1/+1
|/ /
* | Merge pull request #1603 from timgates42/bugfix_typosNejc Habjan2021-09-199-13/+13
|\ \ | | | | | | docs: fix a few typos
| * | docs: fix a few typosTim Gates2021-09-199-13/+13
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are small typos in: - docs/gl_objects/deploy_tokens.rst - gitlab/base.py - gitlab/mixins.py - gitlab/v4/objects/features.py - gitlab/v4/objects/groups.py - gitlab/v4/objects/packages.py - gitlab/v4/objects/projects.py - gitlab/v4/objects/sidekiq.py - gitlab/v4/objects/todos.py Fixes: - Should read `treatment` rather than `reatment`. - Should read `transferred` rather than `transfered`. - Should read `registered` rather than `registred`. - Should read `occurred` rather than `occured`. - Should read `overridden` rather than `overriden`. - Should read `marked` rather than `maked`. - Should read `instantiate` rather than `instanciate`. - Should read `function` rather than `fonction`.
* | feat(objects): support Create and Revoke personal access token APINejc Habjan2021-09-134-28/+119
| |
* | chore: clean up install docsNejc Habjan2021-09-121-7/+12
| |
* | docs: consolidate changelogs and remove v3 API docsNejc Habjan2021-09-1211-894/+998
| |
* | 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
| |