python-jira-plus 1.0.7__tar.gz → 1.0.10__tar.gz
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.
- {python_jira_plus-1.0.7/python_jira_plus.egg-info → python_jira_plus-1.0.10}/PKG-INFO +2 -2
- {python_jira_plus-1.0.7 → python_jira_plus-1.0.10}/python_jira_plus/describe_allowed_value.py +5 -1
- {python_jira_plus-1.0.7 → python_jira_plus-1.0.10}/python_jira_plus/jira_plus.py +4 -3
- {python_jira_plus-1.0.7 → python_jira_plus-1.0.10/python_jira_plus.egg-info}/PKG-INFO +2 -2
- {python_jira_plus-1.0.7 → python_jira_plus-1.0.10}/python_jira_plus.egg-info/requires.txt +1 -1
- {python_jira_plus-1.0.7 → python_jira_plus-1.0.10}/requirements.txt +1 -1
- {python_jira_plus-1.0.7 → python_jira_plus-1.0.10}/setup.py +1 -1
- {python_jira_plus-1.0.7 → python_jira_plus-1.0.10}/LICENSE +0 -0
- {python_jira_plus-1.0.7 → python_jira_plus-1.0.10}/MANIFEST.in +0 -0
- {python_jira_plus-1.0.7 → python_jira_plus-1.0.10}/README.md +0 -0
- {python_jira_plus-1.0.7 → python_jira_plus-1.0.10}/pyproject.toml +0 -0
- {python_jira_plus-1.0.7 → python_jira_plus-1.0.10}/python_jira_plus/__init__.py +0 -0
- {python_jira_plus-1.0.7 → python_jira_plus-1.0.10}/python_jira_plus.egg-info/SOURCES.txt +0 -0
- {python_jira_plus-1.0.7 → python_jira_plus-1.0.10}/python_jira_plus.egg-info/dependency_links.txt +0 -0
- {python_jira_plus-1.0.7 → python_jira_plus-1.0.10}/python_jira_plus.egg-info/top_level.txt +0 -0
- {python_jira_plus-1.0.7 → python_jira_plus-1.0.10}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-jira-plus
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.10
|
|
4
4
|
Summary: Enhanced Python client for JIRA with better error handling, pagination, and metadata validation.
|
|
5
5
|
Home-page: https://github.com/aviz92/python-jira-plus
|
|
6
6
|
Author: Avi Zaguri
|
|
@@ -16,7 +16,7 @@ Requires-Dist: custom-python-logger
|
|
|
16
16
|
Requires-Dist: pytest
|
|
17
17
|
Requires-Dist: requests
|
|
18
18
|
Requires-Dist: retrying
|
|
19
|
-
Requires-Dist: jira
|
|
19
|
+
Requires-Dist: jira
|
|
20
20
|
Dynamic: author
|
|
21
21
|
Dynamic: description
|
|
22
22
|
Dynamic: description-content-type
|
{python_jira_plus-1.0.7 → python_jira_plus-1.0.10}/python_jira_plus/describe_allowed_value.py
RENAMED
|
@@ -25,7 +25,11 @@ def _(value: str, allowed_values: list = None):
|
|
|
25
25
|
|
|
26
26
|
@describe_allowed_value.register
|
|
27
27
|
def _(value: list, allowed_values: list = None):
|
|
28
|
-
|
|
28
|
+
if all(isinstance(v, (str, int, float)) for v in value):
|
|
29
|
+
return any(v in allowed_values for v in value)
|
|
30
|
+
if all(isinstance(v, dict) for v in value):
|
|
31
|
+
return any([list(v.values())[0] in allowed_values for v in value])
|
|
32
|
+
return False
|
|
29
33
|
|
|
30
34
|
|
|
31
35
|
@describe_allowed_value.register
|
|
@@ -51,7 +51,8 @@ class JiraPlus:
|
|
|
51
51
|
self.jira_client = self.create_connection()
|
|
52
52
|
self.check_client_connection()
|
|
53
53
|
|
|
54
|
-
@retry(stop_max_attempt_number=3,
|
|
54
|
+
@retry(stop_max_attempt_number=3,
|
|
55
|
+
wait_fixed=180000) # Retry 3 times with a 3-min (180000) delay between each attempt
|
|
55
56
|
def create_connection(self, timeout=580) -> Optional[JIRA]:
|
|
56
57
|
if self.server_type == ServerType.ON_PREMISE and not self.sso:
|
|
57
58
|
jira_client = JIRA(
|
|
@@ -233,9 +234,9 @@ class JiraPlus:
|
|
|
233
234
|
|
|
234
235
|
def check_server_createmeta_compatibility(self) -> bool:
|
|
235
236
|
server_version = self.get_server_version()
|
|
236
|
-
if self.server_type == ServerType.ON_PREMISE and
|
|
237
|
+
if self.server_type == ServerType.ON_PREMISE and ''.join(str(x) for x in server_version) > '9.0.0':
|
|
237
238
|
self.logger.warning(
|
|
238
|
-
f"JIRA server version {server_version} is below the minimum required version (
|
|
239
|
+
f"JIRA server version {server_version} is below the minimum required version (9.0.0). "
|
|
239
240
|
"Some features may not work as expected."
|
|
240
241
|
)
|
|
241
242
|
return False
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-jira-plus
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.10
|
|
4
4
|
Summary: Enhanced Python client for JIRA with better error handling, pagination, and metadata validation.
|
|
5
5
|
Home-page: https://github.com/aviz92/python-jira-plus
|
|
6
6
|
Author: Avi Zaguri
|
|
@@ -16,7 +16,7 @@ Requires-Dist: custom-python-logger
|
|
|
16
16
|
Requires-Dist: pytest
|
|
17
17
|
Requires-Dist: requests
|
|
18
18
|
Requires-Dist: retrying
|
|
19
|
-
Requires-Dist: jira
|
|
19
|
+
Requires-Dist: jira
|
|
20
20
|
Dynamic: author
|
|
21
21
|
Dynamic: description
|
|
22
22
|
Dynamic: description-content-type
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_jira_plus-1.0.7 → python_jira_plus-1.0.10}/python_jira_plus.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|