python-gitlab 8.4.0__py3-none-any.whl → 8.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gitlab/_version.py +1 -1
- gitlab/client.py +9 -5
- gitlab/v4/objects/hooks.py +2 -0
- gitlab/v4/objects/notes.py +5 -29
- gitlab/v4/objects/users.py +4 -2
- {python_gitlab-8.4.0.dist-info → python_gitlab-8.5.0.dist-info}/METADATA +2 -2
- {python_gitlab-8.4.0.dist-info → python_gitlab-8.5.0.dist-info}/RECORD +12 -12
- {python_gitlab-8.4.0.dist-info → python_gitlab-8.5.0.dist-info}/WHEEL +1 -1
- {python_gitlab-8.4.0.dist-info → python_gitlab-8.5.0.dist-info}/entry_points.txt +0 -0
- {python_gitlab-8.4.0.dist-info → python_gitlab-8.5.0.dist-info}/licenses/AUTHORS +0 -0
- {python_gitlab-8.4.0.dist-info → python_gitlab-8.5.0.dist-info}/licenses/COPYING +0 -0
- {python_gitlab-8.4.0.dist-info → python_gitlab-8.5.0.dist-info}/top_level.txt +0 -0
gitlab/_version.py
CHANGED
gitlab/client.py
CHANGED
|
@@ -60,7 +60,7 @@ class Gitlab:
|
|
|
60
60
|
order_by: Set order_by globally
|
|
61
61
|
user_agent: A custom user agent to use for making HTTP requests.
|
|
62
62
|
retry_transient_errors: Whether to retry after 500, 502, 503, 504
|
|
63
|
-
or 52x responses. Defaults to False.
|
|
63
|
+
or 52x responses, or after a request timeout. Defaults to False.
|
|
64
64
|
keep_base_url: keep user-provided base URL for pagination if it
|
|
65
65
|
differs from response headers
|
|
66
66
|
|
|
@@ -404,7 +404,7 @@ class Gitlab:
|
|
|
404
404
|
The server version and server revision.
|
|
405
405
|
('unknown', 'unknown') if the server doesn't perform as expected.
|
|
406
406
|
"""
|
|
407
|
-
if self._server_version
|
|
407
|
+
if self._server_version in (None, "unknown"):
|
|
408
408
|
try:
|
|
409
409
|
data = self.http_get("/version")
|
|
410
410
|
if isinstance(data, dict):
|
|
@@ -665,7 +665,7 @@ class Gitlab:
|
|
|
665
665
|
obey_rate_limit: Whether to obey 429 Too Many Request
|
|
666
666
|
responses. Defaults to True.
|
|
667
667
|
retry_transient_errors: Whether to retry after 500, 502, 503, 504
|
|
668
|
-
or 52x responses. Defaults to False.
|
|
668
|
+
or 52x responses, or after a request timeout. Defaults to False.
|
|
669
669
|
max_retries: Max retries after 429 or transient errors,
|
|
670
670
|
set to -1 to retry forever. Defaults to 10.
|
|
671
671
|
extra_headers: Add and override HTTP headers for the request.
|
|
@@ -737,7 +737,11 @@ class Gitlab:
|
|
|
737
737
|
stream=streamed,
|
|
738
738
|
**opts,
|
|
739
739
|
)
|
|
740
|
-
except (
|
|
740
|
+
except (
|
|
741
|
+
requests.ConnectionError,
|
|
742
|
+
requests.exceptions.ChunkedEncodingError,
|
|
743
|
+
requests.exceptions.Timeout,
|
|
744
|
+
):
|
|
741
745
|
if retry.handle_retry():
|
|
742
746
|
continue
|
|
743
747
|
raise
|
|
@@ -793,7 +797,7 @@ class Gitlab:
|
|
|
793
797
|
**kwargs: Extra options to send to the server (e.g. sudo)
|
|
794
798
|
|
|
795
799
|
Returns:
|
|
796
|
-
A requests result object
|
|
800
|
+
A requests result object if streamed is True or the content type is
|
|
797
801
|
not json.
|
|
798
802
|
The parsed json data otherwise.
|
|
799
803
|
|
gitlab/v4/objects/hooks.py
CHANGED
|
@@ -60,6 +60,7 @@ class ProjectHookManager(CRUDMixin[ProjectHook]):
|
|
|
60
60
|
"wiki_page_events",
|
|
61
61
|
"enable_ssl_verification",
|
|
62
62
|
"token",
|
|
63
|
+
"custom_webhook_template",
|
|
63
64
|
),
|
|
64
65
|
)
|
|
65
66
|
_update_attrs = RequiredOptional(
|
|
@@ -76,6 +77,7 @@ class ProjectHookManager(CRUDMixin[ProjectHook]):
|
|
|
76
77
|
"wiki_events",
|
|
77
78
|
"enable_ssl_verification",
|
|
78
79
|
"token",
|
|
80
|
+
"custom_webhook_template",
|
|
79
81
|
),
|
|
80
82
|
)
|
|
81
83
|
|
gitlab/v4/objects/notes.py
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
from gitlab.base import RESTObject
|
|
2
|
-
from gitlab.mixins import
|
|
3
|
-
CreateMixin,
|
|
4
|
-
CRUDMixin,
|
|
5
|
-
DeleteMixin,
|
|
6
|
-
GetMixin,
|
|
7
|
-
ObjectDeleteMixin,
|
|
8
|
-
RetrieveMixin,
|
|
9
|
-
SaveMixin,
|
|
10
|
-
UpdateMixin,
|
|
11
|
-
)
|
|
2
|
+
from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, RetrieveMixin, SaveMixin
|
|
12
3
|
from gitlab.types import RequiredOptional
|
|
13
4
|
|
|
14
5
|
from .award_emojis import ( # noqa: F401
|
|
@@ -58,12 +49,7 @@ class GroupEpicDiscussionNote(SaveMixin, ObjectDeleteMixin, RESTObject):
|
|
|
58
49
|
pass
|
|
59
50
|
|
|
60
51
|
|
|
61
|
-
class GroupEpicDiscussionNoteManager(
|
|
62
|
-
GetMixin[GroupEpicDiscussionNote],
|
|
63
|
-
CreateMixin[GroupEpicDiscussionNote],
|
|
64
|
-
UpdateMixin[GroupEpicDiscussionNote],
|
|
65
|
-
DeleteMixin[GroupEpicDiscussionNote],
|
|
66
|
-
):
|
|
52
|
+
class GroupEpicDiscussionNoteManager(CRUDMixin[GroupEpicDiscussionNote]):
|
|
67
53
|
_path = "/groups/{group_id}/epics/{epic_id}/discussions/{discussion_id}/notes"
|
|
68
54
|
_obj_cls = GroupEpicDiscussionNote
|
|
69
55
|
_from_parent_attrs = {
|
|
@@ -90,12 +76,7 @@ class ProjectCommitDiscussionNote(SaveMixin, ObjectDeleteMixin, RESTObject):
|
|
|
90
76
|
pass
|
|
91
77
|
|
|
92
78
|
|
|
93
|
-
class ProjectCommitDiscussionNoteManager(
|
|
94
|
-
GetMixin[ProjectCommitDiscussionNote],
|
|
95
|
-
CreateMixin[ProjectCommitDiscussionNote],
|
|
96
|
-
UpdateMixin[ProjectCommitDiscussionNote],
|
|
97
|
-
DeleteMixin[ProjectCommitDiscussionNote],
|
|
98
|
-
):
|
|
79
|
+
class ProjectCommitDiscussionNoteManager(CRUDMixin[ProjectCommitDiscussionNote]):
|
|
99
80
|
_path = (
|
|
100
81
|
"/projects/{project_id}/repository/commits/{commit_id}/"
|
|
101
82
|
"discussions/{discussion_id}/notes"
|
|
@@ -172,7 +153,7 @@ class ProjectMergeRequestDiscussionNoteManager(
|
|
|
172
153
|
"discussion_id": "id",
|
|
173
154
|
}
|
|
174
155
|
_create_attrs = RequiredOptional(required=("body",), optional=("created_at",))
|
|
175
|
-
_update_attrs = RequiredOptional(
|
|
156
|
+
_update_attrs = RequiredOptional(exclusive=("body", "resolved"))
|
|
176
157
|
|
|
177
158
|
|
|
178
159
|
class ProjectSnippetNote(SaveMixin, ObjectDeleteMixin, RESTObject):
|
|
@@ -191,12 +172,7 @@ class ProjectSnippetDiscussionNote(SaveMixin, ObjectDeleteMixin, RESTObject):
|
|
|
191
172
|
pass
|
|
192
173
|
|
|
193
174
|
|
|
194
|
-
class ProjectSnippetDiscussionNoteManager(
|
|
195
|
-
GetMixin[ProjectSnippetDiscussionNote],
|
|
196
|
-
CreateMixin[ProjectSnippetDiscussionNote],
|
|
197
|
-
UpdateMixin[ProjectSnippetDiscussionNote],
|
|
198
|
-
DeleteMixin[ProjectSnippetDiscussionNote],
|
|
199
|
-
):
|
|
175
|
+
class ProjectSnippetDiscussionNoteManager(CRUDMixin[ProjectSnippetDiscussionNote]):
|
|
200
176
|
_path = (
|
|
201
177
|
"/projects/{project_id}/snippets/{snippet_id}/"
|
|
202
178
|
"discussions/{discussion_id}/notes"
|
gitlab/v4/objects/users.py
CHANGED
|
@@ -453,8 +453,10 @@ class UserManager(CRUDMixin[User]):
|
|
|
453
453
|
)
|
|
454
454
|
)
|
|
455
455
|
_update_attrs = RequiredOptional(
|
|
456
|
-
required=("email", "username", "name"),
|
|
457
456
|
optional=(
|
|
457
|
+
"email",
|
|
458
|
+
"username",
|
|
459
|
+
"name",
|
|
458
460
|
"password",
|
|
459
461
|
"skype",
|
|
460
462
|
"linkedin",
|
|
@@ -475,7 +477,7 @@ class UserManager(CRUDMixin[User]):
|
|
|
475
477
|
"private_profile",
|
|
476
478
|
"color_scheme_id",
|
|
477
479
|
"theme_id",
|
|
478
|
-
)
|
|
480
|
+
)
|
|
479
481
|
)
|
|
480
482
|
_types = {"confirm": types.LowercaseStringAttribute, "avatar": types.ImageAttribute}
|
|
481
483
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-gitlab
|
|
3
|
-
Version: 8.
|
|
3
|
+
Version: 8.5.0
|
|
4
4
|
Summary: The python wrapper for the GitLab REST and GraphQL APIs.
|
|
5
5
|
Author-email: Gauvain Pocentek <gauvain@pocentek.net>
|
|
6
6
|
Maintainer-email: John Villalovos <john@sodarock.com>, Max Wittig <max.wittig@siemens.com>, Nejc Habjan <nejc.habjan@siemens.com>, Roger Meier <r.meier@siemens.com>
|
|
@@ -31,7 +31,7 @@ License-File: AUTHORS
|
|
|
31
31
|
Requires-Dist: requests>=2.32.0
|
|
32
32
|
Requires-Dist: requests-toolbelt>=1.0.0
|
|
33
33
|
Provides-Extra: autocompletion
|
|
34
|
-
Requires-Dist: argcomplete<
|
|
34
|
+
Requires-Dist: argcomplete<4,>=1.10.0; extra == "autocompletion"
|
|
35
35
|
Provides-Extra: yaml
|
|
36
36
|
Requires-Dist: PyYaml>=6.0.1; extra == "yaml"
|
|
37
37
|
Provides-Extra: graphql
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
gitlab/__init__.py,sha256=pdbvZNyXeXLn0fGXSTsBqi_ic7QLY7-9FL3uA6tvfdI,1416
|
|
2
2
|
gitlab/__main__.py,sha256=HTesNl0UAU6mPb9EXWkTKMy6Q6pAUxGi3iPnDHTE2uE,68
|
|
3
|
-
gitlab/_version.py,sha256=
|
|
3
|
+
gitlab/_version.py,sha256=vkD0Qi2G218I7lj2_1yapX0yn2xmPg9bm5HAV1rciQc,249
|
|
4
4
|
gitlab/base.py,sha256=xynWUZcMIbxiWLO17nnvqCsbC-lBvsy0rvWtTJOpuug,13790
|
|
5
5
|
gitlab/cli.py,sha256=Bnu7T2RgDHUdxYiORBdwM4Qj9hYxoMNtmV9DtNYbWCI,12353
|
|
6
|
-
gitlab/client.py,sha256=
|
|
6
|
+
gitlab/client.py,sha256=qWv1PzXeSZE4gOaFcnWeT3rJjy-YXOXbMJRdwo2bKGk,54682
|
|
7
7
|
gitlab/config.py,sha256=knMTQZSepMI9Z0_3CTgzqg5Wsrk_f3FNfxUM5RoeVx4,9022
|
|
8
8
|
gitlab/const.py,sha256=Ef-t2tym1OwE8tMFWxlqwRw9av_YmWmr5OcDldDxP60,5297
|
|
9
9
|
gitlab/exceptions.py,sha256=9Ql-z8qGQAmd_1rx1IAXzLRYmQThDeNq6vqOpCxXAjQ,8391
|
|
@@ -51,7 +51,7 @@ gitlab/v4/objects/files.py,sha256=JWJ2FkyJLK2V5ATl6dhjVPv5JkDKuUSno6heJGIb4Ko,13
|
|
|
51
51
|
gitlab/v4/objects/geo_nodes.py,sha256=ebCfIulBIbmwdp_CfLxANDzsUdeFoxQTjfshlz0t_-E,3511
|
|
52
52
|
gitlab/v4/objects/group_access_tokens.py,sha256=BdkboLhzav14FoiHIkPHrix5nsYqlcnC1l6Aa59LMcQ,845
|
|
53
53
|
gitlab/v4/objects/groups.py,sha256=ztzTC-9tXXHZG-BTPQpJd3us0KNEsXOMkpVjlJKMJ_0,15898
|
|
54
|
-
gitlab/v4/objects/hooks.py,sha256=
|
|
54
|
+
gitlab/v4/objects/hooks.py,sha256=XcMF5KKwQN6QASj3g0k6zM91n9NWAroGRpt3xmZ9Fs0,3973
|
|
55
55
|
gitlab/v4/objects/integrations.py,sha256=qvEHOWH4nO5kG9E0s6ZugE3blX3K4X-kjYEEljMSPO4,8837
|
|
56
56
|
gitlab/v4/objects/invitations.py,sha256=9qTbaK4lf5XkEbAIXPhj6adcWh7a27vpdg5qmYkxYeA,2422
|
|
57
57
|
gitlab/v4/objects/issues.py,sha256=Ro0HxOfgDS4Vie6HmT-t7ovr3Ghjpov0hI8fKhG7S-k,10002
|
|
@@ -68,7 +68,7 @@ gitlab/v4/objects/merge_requests.py,sha256=P_QST0VT66UFbmDAOS84ROWE2w8RRdCiI1ypP
|
|
|
68
68
|
gitlab/v4/objects/merge_trains.py,sha256=32LD41AGkS0G921BDHnJevCYNOgcjVW3bH3vNJY-HB4,404
|
|
69
69
|
gitlab/v4/objects/milestones.py,sha256=ZrW90nFEhNbIAS-8BNjHgBCeZ0FiCTS7ta9LGg4K8fY,6841
|
|
70
70
|
gitlab/v4/objects/namespaces.py,sha256=ZZGAS7cJx04fNN1h1UQSOAcI6Z2Gv2dvYNGmzSfaqUg,1335
|
|
71
|
-
gitlab/v4/objects/notes.py,sha256=
|
|
71
|
+
gitlab/v4/objects/notes.py,sha256=W4eaaNmiG23XFnpMjrxifiH1YZBBbdVU6PMmq2kC_RM,6286
|
|
72
72
|
gitlab/v4/objects/notification_settings.py,sha256=gpEgC-tsirgHdK-Wgoa9cEIB2exFBUhWb4DsmMAWPFk,1644
|
|
73
73
|
gitlab/v4/objects/package_protection_rules.py,sha256=zzt7R4MlgE9NeLIUhk_weKyyWP8wzggbzHvPY_qMVi0,1223
|
|
74
74
|
gitlab/v4/objects/packages.py,sha256=5of6Ac_qhieG5dVGMrBlk5-XIPYtTrZyzMZlGMO1xsQ,8241
|
|
@@ -97,13 +97,13 @@ gitlab/v4/objects/templates.py,sha256=P7mqNADXsSy5dHXQcWoI0Rqz-qIOgbtbwUxyv2hTWF
|
|
|
97
97
|
gitlab/v4/objects/todos.py,sha256=6MOu74xrlJSnNYcsTW63AQIMfW0vG_5Nl4eyBn9uPfg,1821
|
|
98
98
|
gitlab/v4/objects/topics.py,sha256=tWc8eMuRqxtkEPp0dT2OJtycz4xo93xYrmKFOLQTtRE,1961
|
|
99
99
|
gitlab/v4/objects/triggers.py,sha256=1iYdlP8qpqwEctr6kKJSDanRulaKEHYnVwYwVGainI4,581
|
|
100
|
-
gitlab/v4/objects/users.py,sha256=
|
|
100
|
+
gitlab/v4/objects/users.py,sha256=7h2xyo-5oAzGSr1gJurvxJM6L7Kib41t09bXBk7A4q4,21003
|
|
101
101
|
gitlab/v4/objects/variables.py,sha256=W0WlSn-al_MYJsbV-fv0pd4mwJiisq7T68H6DkHQMFs,2769
|
|
102
102
|
gitlab/v4/objects/wikis.py,sha256=fR4QG4WIBeG10eBNfCN3CG-w3qlEBJIBVsJFxVVVhEs,1364
|
|
103
|
-
python_gitlab-8.
|
|
104
|
-
python_gitlab-8.
|
|
105
|
-
python_gitlab-8.
|
|
106
|
-
python_gitlab-8.
|
|
107
|
-
python_gitlab-8.
|
|
108
|
-
python_gitlab-8.
|
|
109
|
-
python_gitlab-8.
|
|
103
|
+
python_gitlab-8.5.0.dist-info/licenses/AUTHORS,sha256=Z0P61GJSVnp7iFbRcMezhx3f4zMyPkVmG--TWaRo768,526
|
|
104
|
+
python_gitlab-8.5.0.dist-info/licenses/COPYING,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
|
|
105
|
+
python_gitlab-8.5.0.dist-info/METADATA,sha256=A36frgpTYOrnjNvHCXbatzHQK40fiGhD16iPok0u1RA,8503
|
|
106
|
+
python_gitlab-8.5.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
107
|
+
python_gitlab-8.5.0.dist-info/entry_points.txt,sha256=nhpKLLP_uQPFByn8UtE9zsvQQwa402t52o_Cw9IFXMo,43
|
|
108
|
+
python_gitlab-8.5.0.dist-info/top_level.txt,sha256=MvIaP8p_Oaf4gO_hXmHkX-5y2deHLp1pe6tJR3ukQ6o,7
|
|
109
|
+
python_gitlab-8.5.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|