Skip to content

Commit c84db5c

Browse files
authored
Add Python version requirements (#80)
* Add err_message to debug log when failing to update updatable objects repository * Add error_message to debug_log if exists * Don't export available-actions field * Add option to export-import simple-cluster Add to relevant lists and dictionaries fields that shouldn't be exported in simple-gateway since they caused failure in import * Add option to export-import simple-cluster Add to relevant lists and dictionaries fields that shouldn't be exported in simple-gateway since they caused failure in import * Add Python version requirements
1 parent f53ee81 commit c84db5c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ To export a package, run the import_export_package.py script. An interactive men
3131
## Development Environment
3232
The tool is developed using Python language version 2.7.9 and [Check Point API Python SDK.](https://github.com/CheckPoint-APIs-Team/cpapi-python-sdk)
3333
From version 5.0 the tool is developed using Python language version 3.7.
34+
35+
## Requirements
36+
From version 5.0 the min Python language version required is 3.7.
37+
Last release to support Python language version 2.7.9 is v4.2.

import_export_package.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from __future__ import print_function
22

3+
import sys
4+
35
import argparse
46

57
from cpapi import APIClient, APIClientArgs
@@ -21,6 +23,8 @@ def get_version(client):
2123

2224

2325
if __name__ == "__main__":
26+
if sys.version_info < (3, 7):
27+
raise Exception("Min Python version required is 3.7")
2428

2529
arg_parser = argparse.ArgumentParser(description="R80.X Policy Package Export/Import Tool, V5.8")
2630
args = process_arguments(arg_parser)

0 commit comments

Comments
 (0)