truefoundry 0.2.2rc1__py3-none-any.whl → 0.2.2rc3__py3-none-any.whl
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.
Potentially problematic release.
This version of truefoundry might be problematic. Click here for more details.
- truefoundry/autodeploy/agents/project_identifier.py +1 -0
- truefoundry/autodeploy/agents/tester.py +1 -0
- truefoundry/autodeploy/cli.py +2 -1
- truefoundry/autodeploy/tools/base.py +7 -0
- truefoundry/autodeploy/tools/commit.py +1 -0
- truefoundry/autodeploy/tools/docker_build.py +2 -0
- truefoundry/autodeploy/tools/docker_run.py +3 -0
- truefoundry/autodeploy/tools/file_type_counts.py +2 -1
- truefoundry/autodeploy/tools/list_files.py +2 -0
- truefoundry/autodeploy/tools/read_file.py +2 -0
- truefoundry/autodeploy/tools/send_request.py +3 -1
- truefoundry/deploy/cli/cli.py +1 -1
- truefoundry/deploy/cli/version.py +6 -0
- {truefoundry-0.2.2rc1.dist-info → truefoundry-0.2.2rc3.dist-info}/METADATA +1 -1
- {truefoundry-0.2.2rc1.dist-info → truefoundry-0.2.2rc3.dist-info}/RECORD +17 -16
- {truefoundry-0.2.2rc1.dist-info → truefoundry-0.2.2rc3.dist-info}/WHEEL +0 -0
- {truefoundry-0.2.2rc1.dist-info → truefoundry-0.2.2rc3.dist-info}/entry_points.txt +0 -0
|
@@ -92,6 +92,7 @@ pip, poetry, yarn, go.mod, cargo.toml, npm, setup.py.
|
|
|
92
92
|
)
|
|
93
93
|
|
|
94
94
|
def render(self, console: Console):
|
|
95
|
+
console.rule("[bold green]Project Identification[/]")
|
|
95
96
|
if self.primary_programming_language is not None:
|
|
96
97
|
console.print(
|
|
97
98
|
f"[bold magenta]TrueFoundry:[/] Identified a project using [bold cyan]{self.primary_programming_language}[/]."
|
|
@@ -52,6 +52,7 @@ Why was the testing a failure or successful?
|
|
|
52
52
|
logs: str
|
|
53
53
|
|
|
54
54
|
def render(self, console: Console):
|
|
55
|
+
console.rule("[bold green]Result[/]")
|
|
55
56
|
console.print(
|
|
56
57
|
f"[bold cyan]TrueFoundry:[/] The given project has been {'[bold green]successfully built[/]' if self.successful else '[bold red]failed to build[/]'}"
|
|
57
58
|
)
|
truefoundry/autodeploy/cli.py
CHANGED
|
@@ -211,7 +211,7 @@ def _update_status(event, status: Status):
|
|
|
211
211
|
|
|
212
212
|
if isinstance(event, DockerRunLog):
|
|
213
213
|
status.update(
|
|
214
|
-
"[bold cyan]Running:[/] [bold magenta]TrueFoundry[/] is
|
|
214
|
+
"[bold cyan]Running:[/] [bold magenta]TrueFoundry[/] is running your app in a Docker container. You can view logs here for potential warnings/errors. If you do not see any issues then you can press [yellow]control + c[/] to move to the next step."
|
|
215
215
|
)
|
|
216
216
|
|
|
217
217
|
|
|
@@ -335,6 +335,7 @@ def cli(project_root_path: str, deploy: bool, workspace_fqn: str = None):
|
|
|
335
335
|
break
|
|
336
336
|
|
|
337
337
|
if deploy:
|
|
338
|
+
console.rule("[bold green]Deploying to Truefoundry[/]")
|
|
338
339
|
deploy_component(
|
|
339
340
|
workspace_fqn=workspace_fqn,
|
|
340
341
|
project_root_path=project_root_path,
|
|
@@ -27,6 +27,7 @@ class CommitConfirmation(Event):
|
|
|
27
27
|
commit_message: str
|
|
28
28
|
|
|
29
29
|
def render(self, console: Console) -> Optional["Commit.Response"]:
|
|
30
|
+
console.rule("[bold green]Commit[/]")
|
|
30
31
|
console.print("[bold magenta]TrueFoundry[/] wants to make a commit,", end=" ")
|
|
31
32
|
console.print(f"with Commit Message: [green]{self.commit_message}[/]")
|
|
32
33
|
console.print("[yellow]Displaying changes to be made by the patch[/]")
|
|
@@ -16,6 +16,7 @@ from truefoundry.autodeploy.tools.base import (
|
|
|
16
16
|
Message,
|
|
17
17
|
RequestEvent,
|
|
18
18
|
ResponseEvent,
|
|
19
|
+
Rule,
|
|
19
20
|
Tool,
|
|
20
21
|
)
|
|
21
22
|
|
|
@@ -90,6 +91,7 @@ Build a docker image.
|
|
|
90
91
|
self.docker_client = docker_client
|
|
91
92
|
|
|
92
93
|
def run(self, request: DockerBuild.Request) -> Generator[Event, Any, ResponseEvent]:
|
|
94
|
+
yield Rule(message="[bold green] Docker Build[/]")
|
|
93
95
|
yield Message(message="[bold cyan]Processing:[/] Building Docker image...")
|
|
94
96
|
yield Message(message="[bold yellow]Docker build logs:[/]")
|
|
95
97
|
try:
|
|
@@ -15,6 +15,7 @@ from truefoundry.autodeploy.tools.base import (
|
|
|
15
15
|
Message,
|
|
16
16
|
RequestEvent,
|
|
17
17
|
ResponseEvent,
|
|
18
|
+
Rule,
|
|
18
19
|
Tool,
|
|
19
20
|
)
|
|
20
21
|
|
|
@@ -104,6 +105,8 @@ This will not be passed if the container is still running.
|
|
|
104
105
|
|
|
105
106
|
def run(self, request: DockerRun.Request) -> Generator[Event, Any, ResponseEvent]:
|
|
106
107
|
self._kill_running_containers()
|
|
108
|
+
|
|
109
|
+
yield Rule(message="[bold green] Docker Run[/]")
|
|
107
110
|
yield Message(message="[bold cyan]Testing:[/] Running Docker container...")
|
|
108
111
|
try:
|
|
109
112
|
container = self.docker_client.containers.run(
|
|
@@ -14,6 +14,7 @@ from truefoundry.autodeploy.tools.base import (
|
|
|
14
14
|
Message,
|
|
15
15
|
RequestEvent,
|
|
16
16
|
ResponseEvent,
|
|
17
|
+
Rule,
|
|
17
18
|
Tool,
|
|
18
19
|
)
|
|
19
20
|
|
|
@@ -53,7 +54,7 @@ Get counts of different types of file present.
|
|
|
53
54
|
self, request: FileTypeCounts.Request
|
|
54
55
|
) -> Generator[Event, Any, ResponseEvent]:
|
|
55
56
|
counter = Counter()
|
|
56
|
-
|
|
57
|
+
yield Rule(message="List Files")
|
|
57
58
|
yield Message(
|
|
58
59
|
message="[bold cyan]Processing:[/] Scanning for various file types..."
|
|
59
60
|
)
|
|
@@ -12,6 +12,7 @@ from truefoundry.autodeploy.tools.base import (
|
|
|
12
12
|
Message,
|
|
13
13
|
RequestEvent,
|
|
14
14
|
ResponseEvent,
|
|
15
|
+
Rule,
|
|
15
16
|
Tool,
|
|
16
17
|
)
|
|
17
18
|
|
|
@@ -41,6 +42,7 @@ the subdir should be . and pattern will be *.json
|
|
|
41
42
|
self.project_root_path = project_root_path
|
|
42
43
|
|
|
43
44
|
def run(self, request: ListFiles.Request) -> Generator[Event, Any, ResponseEvent]:
|
|
45
|
+
yield Rule(message="[bold green] List Files[/]")
|
|
44
46
|
yield Message(
|
|
45
47
|
message=f"[bold cyan]Searching:[/] 🔍 Looking for files matching the pattern [magenta]{request.pattern}[/]"
|
|
46
48
|
)
|
|
@@ -11,6 +11,7 @@ from truefoundry.autodeploy.tools.base import (
|
|
|
11
11
|
Message,
|
|
12
12
|
RequestEvent,
|
|
13
13
|
ResponseEvent,
|
|
14
|
+
Rule,
|
|
14
15
|
Tool,
|
|
15
16
|
)
|
|
16
17
|
|
|
@@ -50,6 +51,7 @@ Avoid reading *.lock type files as they tend to be large
|
|
|
50
51
|
self.project_root_path = project_root_path
|
|
51
52
|
|
|
52
53
|
def run(self, request: ReadFile.Request) -> Generator[Event, Any, ResponseEvent]:
|
|
54
|
+
yield Rule(message="[bold green] Read files[/]")
|
|
53
55
|
yield Message(
|
|
54
56
|
message=f"[bold cyan]Processing:[/] Reading file at [magenta]{request.path}[/] and extracting details..."
|
|
55
57
|
)
|
|
@@ -10,6 +10,7 @@ from truefoundry.autodeploy.tools.base import (
|
|
|
10
10
|
Message,
|
|
11
11
|
RequestEvent,
|
|
12
12
|
ResponseEvent,
|
|
13
|
+
Rule,
|
|
13
14
|
Tool,
|
|
14
15
|
)
|
|
15
16
|
|
|
@@ -33,8 +34,9 @@ Send an HTTP request.
|
|
|
33
34
|
|
|
34
35
|
def run(self, request: SendRequest.Request) -> Generator[Event, Any, ResponseEvent]:
|
|
35
36
|
self.call_count += 1
|
|
37
|
+
yield Rule(message="[bold green] Request send[/]")
|
|
36
38
|
yield Message(
|
|
37
|
-
message=f"[bold cyan]Testing:[/] Sending a [magenta]{request.method.upper()}[/] request to [magenta]{request.url}[/]
|
|
39
|
+
message=f"[bold cyan]Testing:[/] Sending a [magenta]{request.method.upper()}[/] request to [magenta]{request.url}[/]"
|
|
38
40
|
)
|
|
39
41
|
try:
|
|
40
42
|
response = requests.request(request.method.lower(), url=request.url)
|
truefoundry/deploy/cli/cli.py
CHANGED
|
@@ -15,9 +15,9 @@ from servicefoundry.cli.const import GROUP_CLS
|
|
|
15
15
|
from servicefoundry.cli.util import setup_rich_click
|
|
16
16
|
from servicefoundry.lib.util import is_debug_env_set, is_experimental_env_set
|
|
17
17
|
from servicefoundry.logger import logger as servicefoundry_logger
|
|
18
|
-
from servicefoundry.version import __version__
|
|
19
18
|
|
|
20
19
|
from truefoundry.deploy.cli.deploy import deploy_v2_command
|
|
20
|
+
from truefoundry.deploy.cli.version import __version__
|
|
21
21
|
|
|
22
22
|
servicefoundry_logger.setLevel(level=logging.INFO)
|
|
23
23
|
|
|
@@ -3,22 +3,22 @@ truefoundry/autodeploy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
|
3
3
|
truefoundry/autodeploy/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
truefoundry/autodeploy/agents/base.py,sha256=woCry229x7WX0IZmBopW_e_NB76aCLQRLXZBs2QBklk,6405
|
|
5
5
|
truefoundry/autodeploy/agents/developer.py,sha256=u1BfjaMDX6Ad32vWYOEFZPWFK33ux0Ro8JztrRAFviY,4126
|
|
6
|
-
truefoundry/autodeploy/agents/project_identifier.py,sha256=
|
|
7
|
-
truefoundry/autodeploy/agents/tester.py,sha256=
|
|
8
|
-
truefoundry/autodeploy/cli.py,sha256=
|
|
6
|
+
truefoundry/autodeploy/agents/project_identifier.py,sha256=JVaBUI_u4IVuohzYyEqojYUzKBxKkSXyqPnzzh-prJA,4504
|
|
7
|
+
truefoundry/autodeploy/agents/tester.py,sha256=9WSVU2MNiamdUNJYrHXDcEq_Q544LSElJ6Nt3XkJ8TU,2402
|
|
8
|
+
truefoundry/autodeploy/cli.py,sha256=icBmyD3Xhg0wSyFN6eLDSIaS2xxHaHZRYMssEdRvCFY,13806
|
|
9
9
|
truefoundry/autodeploy/constants.py,sha256=m3qQh2gsrqRLqiTbxmddS8CwWX9v7s7oEBHOEvHbFec,1553
|
|
10
10
|
truefoundry/autodeploy/exception.py,sha256=fa_ZyTDUKiMKG2Uayynk1yWcEMsuVluqk2GtV4tfTPU,158
|
|
11
11
|
truefoundry/autodeploy/logger.py,sha256=tkV2UKcOTFl5nz0cn4eRbzxF-2CZd8b7MK9vnhaflYw,325
|
|
12
12
|
truefoundry/autodeploy/tools/__init__.py,sha256=9zJiC1d4bv9EL-p5XTCa9fAQ6ZKV--AbgeLz9bBBkyQ,875
|
|
13
13
|
truefoundry/autodeploy/tools/ask.py,sha256=MxUFLP7rjpdJ85gCc3El0wUqTZDjpjAw7WOTdV4LLWE,856
|
|
14
|
-
truefoundry/autodeploy/tools/base.py,sha256=
|
|
15
|
-
truefoundry/autodeploy/tools/commit.py,sha256=
|
|
16
|
-
truefoundry/autodeploy/tools/docker_build.py,sha256=
|
|
17
|
-
truefoundry/autodeploy/tools/docker_run.py,sha256=
|
|
18
|
-
truefoundry/autodeploy/tools/file_type_counts.py,sha256=
|
|
19
|
-
truefoundry/autodeploy/tools/list_files.py,sha256=
|
|
20
|
-
truefoundry/autodeploy/tools/read_file.py,sha256=
|
|
21
|
-
truefoundry/autodeploy/tools/send_request.py,sha256=
|
|
14
|
+
truefoundry/autodeploy/tools/base.py,sha256=eS30LQhUjQkRhFqHmdor7HgWA9kcwFVCfAWEimO0Y_0,779
|
|
15
|
+
truefoundry/autodeploy/tools/commit.py,sha256=bB5kqAY5rEvfc7ZHtdueXusGznAbk58xqvzSKAXzbSE,6036
|
|
16
|
+
truefoundry/autodeploy/tools/docker_build.py,sha256=TwSvmxrjBkI7PcPhjIzsc8oTA6fWzPIIpkMv2zMpb-E,4000
|
|
17
|
+
truefoundry/autodeploy/tools/docker_run.py,sha256=8skvqF9zmZSIBbWkmJsmOyQRVz8ttw1SVjPhjGwDq24,5061
|
|
18
|
+
truefoundry/autodeploy/tools/file_type_counts.py,sha256=9RuSyIKNKydSdMxIw1cCiljpbVFVEOu9kOfomRr4ufU,2338
|
|
19
|
+
truefoundry/autodeploy/tools/list_files.py,sha256=KgFk50lOjrIsjwmf4A_2recKivLUEcdc1Q57SaYA1v4,2644
|
|
20
|
+
truefoundry/autodeploy/tools/read_file.py,sha256=uejLuCB9Tjki0-Ud_mk5fuo9nmKRHYHYqqzCTE1nuyo,2254
|
|
21
|
+
truefoundry/autodeploy/tools/send_request.py,sha256=E8eSV3jqY-M2_56ZQ9C38pzmWeP6drgJjNQMrUdrrpc,1680
|
|
22
22
|
truefoundry/autodeploy/tools/write_file.py,sha256=EcYetnJ4X-NWsd_CdYUKfOnAdz2XXiRukTzJfb_GzFs,3130
|
|
23
23
|
truefoundry/autodeploy/utils/client.py,sha256=PvbSkfgAjAogGjisinqmh4mP4svowxAC0IwzEQz3Ai0,453
|
|
24
24
|
truefoundry/autodeploy/utils/diff.py,sha256=Ef8Y-VffDKel_-q-GxRam6gqiv8qTLMcqVg6iifXfcA,5358
|
|
@@ -27,11 +27,12 @@ truefoundry/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
27
27
|
truefoundry/cli/__main__.py,sha256=Jap_IddZ9zNyMIyIkCw75xHQCN0WtV2dPZJ_pzdLsVc,916
|
|
28
28
|
truefoundry/deploy/__init__.py,sha256=wDQq3y-t9zOEOVA61t15fRpAVQSpBtiWTyW5hVn1iz4,43
|
|
29
29
|
truefoundry/deploy/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
|
-
truefoundry/deploy/cli/cli.py,sha256=
|
|
30
|
+
truefoundry/deploy/cli/cli.py,sha256=tch2v6-GDt_OeEHu_9kcScQFHe0XBlagnz_GWHwOJwc,3143
|
|
31
31
|
truefoundry/deploy/cli/deploy.py,sha256=hOb0GY1tiPzKy5P85iYAML0WyGSmKBXJgwxD5k5VoME,5105
|
|
32
|
+
truefoundry/deploy/cli/version.py,sha256=-wbVGV2uJ2DVdmoji4rGfVIROKTXG5_7G6DRXjGj_fE,127
|
|
32
33
|
truefoundry/langchain/__init__.py,sha256=kQrM0qr2EoB-EFaPkVVVcmSBSJ8KsQzv0nx-LGzmCRo,53
|
|
33
34
|
truefoundry/ml/__init__.py,sha256=yFjvF-e1RW488vLHgn5M7TXoajqww6grkKHb3mhqDEw,179
|
|
34
|
-
truefoundry-0.2.
|
|
35
|
-
truefoundry-0.2.
|
|
36
|
-
truefoundry-0.2.
|
|
37
|
-
truefoundry-0.2.
|
|
35
|
+
truefoundry-0.2.2rc3.dist-info/METADATA,sha256=rPU8wZAN66l2L9iOgfsB_16XXYzhp_GscWcfjQ6CY5c,1839
|
|
36
|
+
truefoundry-0.2.2rc3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
37
|
+
truefoundry-0.2.2rc3.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
|
|
38
|
+
truefoundry-0.2.2rc3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|