python-gitlab 6.5.0__py3-none-any.whl → 7.1.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/utils.py +1 -1
- gitlab/v4/objects/registry_protection_repository_rules.py +9 -1
- {python_gitlab-6.5.0.dist-info → python_gitlab-7.1.0.dist-info}/METADATA +4 -4
- {python_gitlab-6.5.0.dist-info → python_gitlab-7.1.0.dist-info}/RECORD +10 -10
- {python_gitlab-6.5.0.dist-info → python_gitlab-7.1.0.dist-info}/WHEEL +0 -0
- {python_gitlab-6.5.0.dist-info → python_gitlab-7.1.0.dist-info}/entry_points.txt +0 -0
- {python_gitlab-6.5.0.dist-info → python_gitlab-7.1.0.dist-info}/licenses/AUTHORS +0 -0
- {python_gitlab-6.5.0.dist-info → python_gitlab-7.1.0.dist-info}/licenses/COPYING +0 -0
- {python_gitlab-6.5.0.dist-info → python_gitlab-7.1.0.dist-info}/top_level.txt +0 -0
gitlab/_version.py
CHANGED
gitlab/utils.py
CHANGED
|
@@ -133,7 +133,7 @@ class Retry:
|
|
|
133
133
|
if "Retry-After" in headers:
|
|
134
134
|
wait_time = int(headers["Retry-After"])
|
|
135
135
|
elif "RateLimit-Reset" in headers:
|
|
136
|
-
wait_time = int(headers["RateLimit-Reset"]) - time.time()
|
|
136
|
+
wait_time = max(0, int(headers["RateLimit-Reset"]) - time.time())
|
|
137
137
|
self.cur_retries += 1
|
|
138
138
|
time.sleep(wait_time)
|
|
139
139
|
return True
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
from gitlab.base import RESTObject
|
|
2
|
-
from gitlab.mixins import
|
|
2
|
+
from gitlab.mixins import (
|
|
3
|
+
CreateMixin,
|
|
4
|
+
DeleteMixin,
|
|
5
|
+
ListMixin,
|
|
6
|
+
SaveMixin,
|
|
7
|
+
UpdateMethod,
|
|
8
|
+
UpdateMixin,
|
|
9
|
+
)
|
|
3
10
|
from gitlab.types import RequiredOptional
|
|
4
11
|
|
|
5
12
|
__all__ = [
|
|
@@ -16,6 +23,7 @@ class ProjectRegistryRepositoryProtectionRuleManager(
|
|
|
16
23
|
ListMixin[ProjectRegistryRepositoryProtectionRule],
|
|
17
24
|
CreateMixin[ProjectRegistryRepositoryProtectionRule],
|
|
18
25
|
UpdateMixin[ProjectRegistryRepositoryProtectionRule],
|
|
26
|
+
DeleteMixin[ProjectRegistryRepositoryProtectionRule],
|
|
19
27
|
):
|
|
20
28
|
_path = "/projects/{project_id}/registry/protection/repository/rules"
|
|
21
29
|
_obj_cls = ProjectRegistryRepositoryProtectionRule
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-gitlab
|
|
3
|
-
Version:
|
|
3
|
+
Version: 7.1.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>
|
|
@@ -19,12 +19,12 @@ Classifier: Operating System :: POSIX
|
|
|
19
19
|
Classifier: Operating System :: Microsoft :: Windows
|
|
20
20
|
Classifier: Programming Language :: Python
|
|
21
21
|
Classifier: Programming Language :: Python :: 3
|
|
22
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
27
|
-
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
|
+
Requires-Python: >=3.10.0
|
|
28
28
|
Description-Content-Type: text/x-rst
|
|
29
29
|
License-File: COPYING
|
|
30
30
|
License-File: AUTHORS
|
|
@@ -93,7 +93,7 @@ Features
|
|
|
93
93
|
Installation
|
|
94
94
|
------------
|
|
95
95
|
|
|
96
|
-
As of
|
|
96
|
+
As of 7.0.0, ``python-gitlab`` is compatible with Python 3.10+.
|
|
97
97
|
|
|
98
98
|
Use ``pip`` to install the latest stable version of ``python-gitlab``:
|
|
99
99
|
|
|
@@ -1,6 +1,6 @@
|
|
|
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=NiUNLMYGzRKMXDxOhEOkFVOJBHzrTDW687Ajjw77sdk,249
|
|
4
4
|
gitlab/base.py,sha256=xynWUZcMIbxiWLO17nnvqCsbC-lBvsy0rvWtTJOpuug,13790
|
|
5
5
|
gitlab/cli.py,sha256=sid5FhHE_VcJMPq5IkFWsPq0vpnEu3ZD8FaHboUYKcQ,12355
|
|
6
6
|
gitlab/client.py,sha256=JkUKU2M_d4DPK7PQzOisV8T0O_RzrDf8fDPndjv59_c,54452
|
|
@@ -10,7 +10,7 @@ gitlab/exceptions.py,sha256=9Ql-z8qGQAmd_1rx1IAXzLRYmQThDeNq6vqOpCxXAjQ,8391
|
|
|
10
10
|
gitlab/mixins.py,sha256=Z1LqcgN-kZBaxXnhk3h_j8TAmUPDxP0sSymP00hjPYQ,35515
|
|
11
11
|
gitlab/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
gitlab/types.py,sha256=sBDnQgyxtNUR_5MWfCN8y8EZdxbyBlvMknnJpGIIppI,3282
|
|
13
|
-
gitlab/utils.py,sha256=
|
|
13
|
+
gitlab/utils.py,sha256=Fni1PAI84cAdz4AYWxOtxnTxSKoKbYyvbiIVHVBIoqk,9195
|
|
14
14
|
gitlab/_backends/__init__.py,sha256=WalQZRIDzw19FuNxraG7fvck6ddg4cdNd3bi53QKvZM,392
|
|
15
15
|
gitlab/_backends/graphql.py,sha256=wUEjrtz4KAFIFLc13cTj8D1757yeSeViX-xzoDy90Is,1450
|
|
16
16
|
gitlab/_backends/protocol.py,sha256=_53iLo017Reni0GoxUR4sQcM5pWxOFY0ljQsYUwpFCU,705
|
|
@@ -76,7 +76,7 @@ gitlab/v4/objects/pipelines.py,sha256=01WpGWYU5JdkCvkA_UhYx94ukEbyOeMrE-Da_tTaLa
|
|
|
76
76
|
gitlab/v4/objects/project_access_tokens.py,sha256=FZMg0NIo5TpT_F_SBZ5nD76JjaYIBOL3RddfYTGwxt8,869
|
|
77
77
|
gitlab/v4/objects/projects.py,sha256=6FKrL3llco32Q1Je8xoptOZEi8WhiHA_QAcHe9dfTQY,49568
|
|
78
78
|
gitlab/v4/objects/push_rules.py,sha256=CWOCljZupz2K1Wd2A2WP648alD0ux2FJQBydxDsPZd4,2902
|
|
79
|
-
gitlab/v4/objects/registry_protection_repository_rules.py,sha256=
|
|
79
|
+
gitlab/v4/objects/registry_protection_repository_rules.py,sha256=T-8sO3Jg7ZL4KuI-paaQSrhx9gN22Hj3DD5Xa2FUAuw,1323
|
|
80
80
|
gitlab/v4/objects/registry_protection_rules.py,sha256=FkhVtR5ugFlpdu5UO0Xuiy3WKKbo0JzY6sSXOjU4DZ0,1121
|
|
81
81
|
gitlab/v4/objects/releases.py,sha256=H34LLpLaxneJkWL17j4AjCUnuVBr6gQPnN8ptYgkmP8,1557
|
|
82
82
|
gitlab/v4/objects/repositories.py,sha256=FIgZua_hKmDvKvZT4uHH6aFYaDGRZTstQlScPd7eg9s,12911
|
|
@@ -98,10 +98,10 @@ gitlab/v4/objects/triggers.py,sha256=1iYdlP8qpqwEctr6kKJSDanRulaKEHYnVwYwVGainI4
|
|
|
98
98
|
gitlab/v4/objects/users.py,sha256=0-aCUflt2Wzl338H_eIaTJ_ElsXwbkgoh_SEw38u6m0,20987
|
|
99
99
|
gitlab/v4/objects/variables.py,sha256=B7XHDKPrRg-sboVpClO0vYbxe6egH9U1-SPgVHv6tPc,2051
|
|
100
100
|
gitlab/v4/objects/wikis.py,sha256=fR4QG4WIBeG10eBNfCN3CG-w3qlEBJIBVsJFxVVVhEs,1364
|
|
101
|
-
python_gitlab-
|
|
102
|
-
python_gitlab-
|
|
103
|
-
python_gitlab-
|
|
104
|
-
python_gitlab-
|
|
105
|
-
python_gitlab-
|
|
106
|
-
python_gitlab-
|
|
107
|
-
python_gitlab-
|
|
101
|
+
python_gitlab-7.1.0.dist-info/licenses/AUTHORS,sha256=Z0P61GJSVnp7iFbRcMezhx3f4zMyPkVmG--TWaRo768,526
|
|
102
|
+
python_gitlab-7.1.0.dist-info/licenses/COPYING,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
|
|
103
|
+
python_gitlab-7.1.0.dist-info/METADATA,sha256=SmTPhbUWcH7FYCmTK_QrmWPzifftsOPNwlC50ue9zj4,8503
|
|
104
|
+
python_gitlab-7.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
105
|
+
python_gitlab-7.1.0.dist-info/entry_points.txt,sha256=nhpKLLP_uQPFByn8UtE9zsvQQwa402t52o_Cw9IFXMo,43
|
|
106
|
+
python_gitlab-7.1.0.dist-info/top_level.txt,sha256=MvIaP8p_Oaf4gO_hXmHkX-5y2deHLp1pe6tJR3ukQ6o,7
|
|
107
|
+
python_gitlab-7.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|