truefoundry 0.2.2rc1__tar.gz → 0.2.2rc2__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.

Potentially problematic release.


This version of truefoundry might be problematic. Click here for more details.

Files changed (36) hide show
  1. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/PKG-INFO +1 -1
  2. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/pyproject.toml +1 -1
  3. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/agents/project_identifier.py +1 -0
  4. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/agents/tester.py +1 -0
  5. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/cli.py +2 -1
  6. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/tools/base.py +7 -0
  7. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/tools/commit.py +1 -0
  8. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/tools/docker_build.py +2 -0
  9. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/tools/docker_run.py +3 -0
  10. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/tools/file_type_counts.py +2 -1
  11. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/tools/list_files.py +2 -0
  12. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/tools/read_file.py +2 -0
  13. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/tools/send_request.py +3 -1
  14. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/README.md +0 -0
  15. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/__init__.py +0 -0
  16. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/__init__.py +0 -0
  17. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/agents/__init__.py +0 -0
  18. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/agents/base.py +0 -0
  19. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/agents/developer.py +0 -0
  20. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/constants.py +0 -0
  21. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/exception.py +0 -0
  22. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/logger.py +0 -0
  23. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/tools/__init__.py +0 -0
  24. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/tools/ask.py +0 -0
  25. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/tools/write_file.py +0 -0
  26. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/utils/client.py +0 -0
  27. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/utils/diff.py +0 -0
  28. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/autodeploy/utils/pydantic_compat.py +0 -0
  29. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/cli/__init__.py +0 -0
  30. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/cli/__main__.py +0 -0
  31. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/deploy/__init__.py +0 -0
  32. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/deploy/cli/__init__.py +0 -0
  33. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/deploy/cli/cli.py +0 -0
  34. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/deploy/cli/deploy.py +0 -0
  35. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/langchain/__init__.py +0 -0
  36. {truefoundry-0.2.2rc1 → truefoundry-0.2.2rc2}/truefoundry/ml/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: truefoundry
3
- Version: 0.2.2rc1
3
+ Version: 0.2.2rc2
4
4
  Summary: Truefoundry CLI
5
5
  Author: Abhishek Choudhary
6
6
  Author-email: abhichoudhary06@gmail.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "truefoundry"
3
- version = "0.2.2rc1"
3
+ version = "0.2.2rc2"
4
4
  description = "Truefoundry CLI"
5
5
  authors = ["Abhishek Choudhary <abhichoudhary06@gmail.com>"]
6
6
  readme = "README.md"
@@ -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
  )
@@ -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 executing the Docker container. Press [yellow]control + c[/] to stop waiting for additional logs..."
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,
@@ -29,3 +29,10 @@ class Message(Event):
29
29
 
30
30
  def render(self, console: Console):
31
31
  console.print(self.message)
32
+
33
+
34
+ class Rule(Event):
35
+ message: Any
36
+
37
+ def render(self, console: Console):
38
+ console.rule(self.message)
@@ -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)
File without changes