integrate-ai 9.15.4__tar.gz → 9.15.4.post290__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.
- {integrate-ai-9.15.4/integrate_ai.egg-info → integrate_ai-9.15.4.post290}/PKG-INFO +2 -2
- integrate_ai-9.15.4.post290/integrate_ai/__init__.py +0 -0
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai/cli.py +0 -3
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai/client.py +0 -3
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai/main.py +0 -3
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai/onprem_node.py +8 -11
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai/sdk.py +0 -3
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai/server.py +0 -3
- integrate_ai-9.15.4.post290/integrate_ai/utils/__init__.py +0 -0
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai/utils/docker_client.py +0 -3
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai/utils/error_handling.py +0 -3
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai/utils/logger.py +0 -3
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai/utils/path_utils.py +0 -3
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai/utils/rest_client.py +0 -3
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai/utils/typer_utils.py +0 -3
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290/integrate_ai.egg-info}/PKG-INFO +1 -1
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/setup.py +2 -2
- integrate-ai-9.15.4/integrate_ai/__init__.py +0 -3
- integrate-ai-9.15.4/integrate_ai/utils/__init__.py +0 -3
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/MANIFEST.in +0 -0
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/backend_shim.py +0 -0
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai.egg-info/SOURCES.txt +0 -0
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai.egg-info/dependency_links.txt +0 -0
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai.egg-info/entry_points.txt +0 -0
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai.egg-info/namespace_packages.txt +0 -0
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai.egg-info/requires.txt +0 -0
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai.egg-info/top_level.txt +0 -0
- {integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/setup.cfg +0 -0
|
File without changes
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
# Copyright (C) Integrate.ai, Inc. All rights reserved.
|
|
3
|
-
|
|
4
1
|
import subprocess
|
|
5
2
|
import sys
|
|
6
3
|
from integrate_ai.utils.rest_client import RestClient
|
|
@@ -31,7 +28,7 @@ def install(
|
|
|
31
28
|
),
|
|
32
29
|
):
|
|
33
30
|
"""
|
|
34
|
-
This command register this node and save the regiter information to
|
|
31
|
+
This command register this node and save the regiter information to ecsanywhere_output.txt
|
|
35
32
|
"""
|
|
36
33
|
if os.geteuid() != 0:
|
|
37
34
|
rich.print("This command must be run as root.")
|
|
@@ -52,15 +49,15 @@ def install(
|
|
|
52
49
|
cmd += f' --cluster "{response["cluster_name"]}"'
|
|
53
50
|
cmd += f' --activation-id "{response["activation_id"]}"'
|
|
54
51
|
cmd += f' --activation-code "{response["activation_code"]}"'
|
|
55
|
-
cmd += ">
|
|
52
|
+
cmd += "> ecsanywhere_output.txt"
|
|
56
53
|
|
|
57
54
|
try:
|
|
58
55
|
rich.print("Registering...")
|
|
59
56
|
subprocess.run(cmd, shell=True, check=True)
|
|
60
57
|
rich.print("Agent registered successfully.")
|
|
61
|
-
rich.print("Output is saved in
|
|
58
|
+
rich.print("Output is saved in ecsanywhere_output.txt. The file contains instance id, please do not delete.")
|
|
62
59
|
except subprocess.CalledProcessError as e:
|
|
63
|
-
rich.print(f"Command failed with error: {e.stderr}, Logs can be found in
|
|
60
|
+
rich.print(f"Command failed with error: {e.stderr}, Logs can be found in ecsanywhere_output.txt.")
|
|
64
61
|
|
|
65
62
|
|
|
66
63
|
@app.command()
|
|
@@ -125,9 +122,9 @@ def uninstall(
|
|
|
125
122
|
rich.print("Leftover directories removed")
|
|
126
123
|
|
|
127
124
|
# Remove instance id file
|
|
128
|
-
remove_output_cmd = "sudo rm
|
|
125
|
+
remove_output_cmd = "sudo rm ecsanywhere_output.txt"
|
|
129
126
|
subprocess.run(remove_output_cmd, shell=True, check=True, text=True)
|
|
130
|
-
rich.print("
|
|
127
|
+
rich.print("ecsanywhere_output.txt removed")
|
|
131
128
|
|
|
132
129
|
except subprocess.CalledProcessError as e:
|
|
133
130
|
rich.print(f"Command failed with error: {e.stderr}")
|
|
@@ -135,12 +132,12 @@ def uninstall(
|
|
|
135
132
|
|
|
136
133
|
def get_instance_id():
|
|
137
134
|
result = subprocess.check_output(
|
|
138
|
-
"grep 'Container instance arn:'
|
|
135
|
+
"grep 'Container instance arn:' ecsanywhere_output.txt | sed 's#.*/##'", shell=True
|
|
139
136
|
)
|
|
140
137
|
instance_id = result.decode("utf-8").strip().strip('"')
|
|
141
138
|
if not instance_id:
|
|
142
139
|
rich.print(
|
|
143
|
-
"[red]Error: Could not parse instance ID from
|
|
140
|
+
"[red]Error: Could not parse instance ID from ecsanywhere_output.txt. Please verify the file's contents."
|
|
144
141
|
)
|
|
145
142
|
raise Exception("Instance ID not found.")
|
|
146
143
|
rich.print("Deregister instance with instance_id ", instance_id)
|
|
File without changes
|
|
@@ -60,7 +60,7 @@ iai client train --token <IAI_TOKEN> --session <SESSION_ID> --train_path <PATH_T
|
|
|
60
60
|
```
|
|
61
61
|
""",
|
|
62
62
|
'long_description_content_type': 'text/markdown',
|
|
63
|
-
'name': '
|
|
63
|
+
'name': 'integrate_ai',
|
|
64
64
|
'namespace_packages': (
|
|
65
65
|
),
|
|
66
66
|
'package_data': {
|
|
@@ -70,5 +70,5 @@ iai client train --token <IAI_TOKEN> --session <SESSION_ID> --train_path <PATH_T
|
|
|
70
70
|
'integrate_ai.utils',
|
|
71
71
|
),
|
|
72
72
|
'python_requires': '>=3.7.5',
|
|
73
|
-
'version': '9.15.4',
|
|
73
|
+
'version': '9.15.4.post290',
|
|
74
74
|
})
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{integrate-ai-9.15.4 → integrate_ai-9.15.4.post290}/integrate_ai.egg-info/namespace_packages.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|