Skip to content

Commit 74588ab

Browse files
authored
Update requirements.txt version pinning (#22)
Relaxed `requirements.txt` version pinning to allow minor/patch updates. This change intentionally excludes `typing-extensions` which is pinned to minor-only (`~=4.8.0`) as newer minor versions result in incompatibilities.
1 parent bd5a8d6 commit 74588ab

File tree

3 files changed

+26
-24
lines changed

3 files changed

+26
-24
lines changed

chkp_harmony_endpoint_management_sdk/core/session_manager.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@
1212
from chkp_harmony_endpoint_management_sdk.classes.internal import SessionOperations
1313
from chkp_harmony_endpoint_management_sdk.core.logger import logger, error_logger
1414
from chkp_harmony_endpoint_management_sdk.core.sdk_platform import KEEP_ALIVE_INTERVAL, KEEP_ALIVE_PERFORM_GRACE, MSSP_KEEP_ALIVE_EXPIRATION
15-
from chkp_harmony_endpoint_management_sdk.generated.cloud.api_client import ApiClient as CloudApiClient , Configuration as CloudConfiguration
15+
from chkp_harmony_endpoint_management_sdk.generated.cloud.api_client import ApiClient as CloudApiClient, Configuration as CloudConfiguration
1616
# from chkp_harmony_endpoint_management_sdk.generated.premise.api_client import ApiClient as PremiseApiClient , Configuration as PremiseConfiguration
17-
from chkp_harmony_endpoint_management_sdk.generated.saas.api_client import ApiClient as SAASApiClient , Configuration as SAASConfiguration
17+
from chkp_harmony_endpoint_management_sdk.generated.saas.api_client import ApiClient as SAASApiClient, Configuration as SAASConfiguration
1818
import uuid
1919
from enum import Enum
2020
from urllib.parse import urlparse
2121
import jwt
2222
import requests
2323

24+
2425
class WorkMode(Enum):
2526
CLOUD = "cloud"
2627
SAAS = "saas"
@@ -35,6 +36,7 @@ class WorkMode(Enum):
3536

3637
VERIFY_CONTENT = False
3738

39+
3840
class SessionManager:
3941
def __init__(self):
4042
self.__session_operations: SessionOperations = None
@@ -44,7 +46,7 @@ def __init__(self):
4446
self.__session_id: str = str(uuid.uuid4())
4547
self.__work_mode: WorkMode = None
4648
self.__url: str = ''
47-
49+
4850
self.__harmony_endpoint_saas_options: harmony_endpoint_saas_options = None
4951
"""
5052
The CI token expiration
@@ -54,12 +56,12 @@ def __init__(self):
5456
"""
5557
The CI token expiration
5658
"""
57-
59+
5860
self.__next_ci_expiration: Duration = None
5961
"""
6062
The CI token expiration
6163
"""
62-
64+
6365
self.__next_endpoint_session_expiration: Duration = None
6466
"""
6567
The endpoint service token expiration
@@ -84,21 +86,21 @@ def __get_url(self) -> str:
8486
return f'{self.__url}{EXTERNAL_API_BASE_PATH}'
8587
if self.__work_mode == WorkMode.SAAS:
8688
return f'{self.__url}{CI_APPLICATION_PATH}'
87-
89+
8890
return f'{self.__url}{CI_APPLICATION_PATH}{EXTERNAL_API_BASE_PATH}'
8991

9092
@property
9193
def client(self) -> Any:
9294

9395
if self.__sdk_connection_state == SDKConnectionState.DISCONNECTED:
94-
error_logger(f'Unable to process operation call, no session configured, connect first')
96+
error_logger('Unable to process operation call, no session configured, connect first')
9597
raise HarmonyApiException(error_scope=HarmonyErrorScope.SESSION, message='No session configured, connect first')
9698

97-
configuration = None
98-
99+
configuration = None
100+
99101
if self.__work_mode == WorkMode.CLOUD:
100102
configuration = CloudConfiguration()
101-
# TODO: Open when on-premise will be release to public
103+
# TODO: Open when on-premise will be release to public
102104
# if self.__work_mode == WorkMode.PREMISE:
103105
# configuration = PremiseConfiguration()
104106
if self.__work_mode == WorkMode.SAAS:

requirements.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
aenum==3.1.15
2-
certifi==2024.7.4
3-
charset-normalizer==3.3.0
4-
frozendict==2.3.10
5-
idna==3.7
6-
MarkupSafe==2.1.3
7-
python-dateutil==2.8.2
8-
python-dotenv==1.0.0
9-
requests==2.32.0
10-
typing-extensions==4.8.0
11-
pyjwt==2.8.0
12-
unitsnet-py>=0.1.82
13-
urllib3==2.2.2
1+
aenum~=3.1
2+
certifi~=2024.7
3+
charset-normalizer~=3.3
4+
frozendict~=2.3
5+
idna~=3.7
6+
MarkupSafe~=2.1
7+
python-dateutil~=2.8
8+
python-dotenv~=1.0
9+
requests~=2.32
10+
typing-extensions~=4.8.0
11+
pyjwt~=2.8
12+
unitsnet-py>=0.1
13+
urllib3~=2.2

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
setup_kwargs = {
2828
'name': "chkp-harmony-endpoint-management-sdk",
29-
'version': '1.1.42',
29+
'version': '1.1.43',
3030
'keywords': 'python, harmony, endpoint, sdk, checkpoint',
3131
'license': 'MIT',
3232
'description': 'Harmony Endpoint Official Python SDK',

0 commit comments

Comments
 (0)