python-jira-plus 2.0.6__tar.gz → 2.0.7__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-jira-plus
3
- Version: 2.0.6
3
+ Version: 2.0.7
4
4
  Summary: Enhanced Python client for JIRA with better error handling, pagination, and metadata validation.
5
5
  Author: Avi Zaguri
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python-jira-plus"
7
- version = "2.0.6"
7
+ version = "2.0.7"
8
8
  description = "Enhanced Python client for JIRA with better error handling, pagination, and metadata validation."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -12,7 +12,7 @@ from custom_python_logger import get_logger
12
12
  from jira import JIRA, Issue, JIRAError
13
13
  from jira.client import ResultList
14
14
  from retrying import retry
15
-
15
+ from packaging.version import Version
16
16
  from python_jira_plus.describe_allowed_value import describe_allowed_value
17
17
 
18
18
 
@@ -270,9 +270,12 @@ class JiraPlus:
270
270
 
271
271
  def check_server_createmeta_compatibility(self) -> bool:
272
272
  server_version = self.get_server_version()
273
- if self.server_type == ServerType.ON_PREMISE and "".join(str(x) for x in server_version) > "9.0.0":
273
+ if (
274
+ self.server_type == ServerType.ON_PREMISE and
275
+ Version(".".join(str(x) for x in server_version)) > Version("9.0.0")
276
+ ):
274
277
  self.logger.warning(
275
- f"JIRA server version {server_version} is below the minimum required version (9.0.0). "
278
+ f"JIRA server version {server_version} is not fully compatible with createmeta-based field validation. "
276
279
  "Some features may not work as expected."
277
280
  )
278
281
  return False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-jira-plus
3
- Version: 2.0.6
3
+ Version: 2.0.7
4
4
  Summary: Enhanced Python client for JIRA with better error handling, pagination, and metadata validation.
5
5
  Author: Avi Zaguri
6
6
  License: MIT