thestage 0.6.4__py3-none-any.whl → 0.6.5__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.
thestage/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  from . import *
2
2
  __app_name__ = "thestage"
3
- __version__ = "0.6.3"
3
+ __version__ = "0.6.5"
@@ -71,9 +71,11 @@ class GitLocalClient:
71
71
  ) -> Optional[Repo]:
72
72
 
73
73
  repo = git.Repo.init(path)
74
- if repo:
75
- # default git name master, rename to main - sync wih github
76
- repo.git.branch("-M", self.__base_name_local)
74
+
75
+ # if repo:
76
+ # #default git name master, rename to main - sync wih github
77
+ # repo.git.branch("-M", self.__base_name_local)
78
+
77
79
  return repo
78
80
 
79
81
  def add_remote_to_repo(
@@ -131,15 +133,9 @@ class GitLocalClient:
131
133
  origin = repo.remote(self.__base_name_remote)
132
134
 
133
135
  if origin:
134
- progress = ProgressPrinter()
135
- try:
136
- origin.pull(refspec=local_branch, progress=progress)
137
- typer.echo(f"Pulled remote changes to branch '{local_branch}'")
138
- except GitCommandError as ex:
139
- for line in progress.allDroppedLines():
140
- # returning the whole output if failed - so that user have any idea what's going on
141
- print(f'>> {line}')
142
- raise ex
136
+ repo.git.pull('origin', local_branch)
137
+ typer.echo(f"Pulled remote changes to branch '{local_branch}'")
138
+
143
139
 
144
140
  def find_main_branch_name(self, path: str) -> Optional[str]:
145
141
  repo = self.__get_repo(path=path)
@@ -15,7 +15,7 @@ class ProjectInferenceSimulatorModelMapper(AbstractMapper):
15
15
  slug=item.slug,
16
16
  status=item.status or '',
17
17
  commit_hash=item.commit_hash or '',
18
- environment_metadata=item.environment_metadata or '',
18
+ environment_metadata=item.environment_metadata or {},
19
19
  started_at=item.created_at or '',
20
20
  finished_at=item.updated_at or ''
21
21
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: thestage
3
- Version: 0.6.4
3
+ Version: 0.6.5
4
4
  Summary:
5
5
  Author: TheStage AI team
6
6
  Author-email: hello@thestage.ai
@@ -1,5 +1,5 @@
1
1
  thestage/.env,sha256=lHeR-H4TiBp4z06bWt7oND9LMMVXP3WCKY7lQltDM3M,129
2
- thestage/__init__.py,sha256=_DRvfFKWKADujVE2sliedLGBeSo7nwI-3kPAatcyvDk,64
2
+ thestage/__init__.py,sha256=RLhWTA8pP16kYlAeh4j1-6a4I3fSpDCRQW2s0VZ8Ts0,64
3
3
  thestage/__main__.py,sha256=4ObdWrDRaIASaR06IxtFSsoMu58eyL0MnD64habvPj8,101
4
4
  thestage/cli_command.py,sha256=P93LXDruJWecmF5xn-D2uhMOSD9iSJl-gP4oG9aD56k,2173
5
5
  thestage/cli_command_helper.py,sha256=f5NZQ4MZJ7yyxPvkQW7ilIAxN_19Mx_zzSqedhZtd6g,1939
@@ -53,7 +53,7 @@ thestage/services/abstract_service.py,sha256=fsGXb0plZ9SvGBWAY4y599BH196YoFP3BJ7
53
53
  thestage/services/app_config_service.py,sha256=bbiXxcLoh_XC3mgsAo9ciksblPvUEcnG2oCIm1jMyo4,1679
54
54
  thestage/services/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
55
  thestage/services/clients/git/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
- thestage/services/clients/git/git_client.py,sha256=PAob7rcwLNoHMDW1ZyRGGGpbYKWahaAp0DrPVKrKUzM,16811
56
+ thestage/services/clients/git/git_client.py,sha256=BzfiGizn0rByUL8x-XNbzJ_Zs169CwvLJI7NZ6rp4kI,16443
57
57
  thestage/services/clients/thestage_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
58
  thestage/services/clients/thestage_api/api_client.py,sha256=CGB-IlumCFd3auYcTRrslQ8qTRDpf5gFA_rGVVV5xBM,30322
59
59
  thestage/services/clients/thestage_api/core/api_client_core.py,sha256=lEffuh30f6oV2lp90UuET90OUxnrMh2PHjquF6_sT6E,3453
@@ -162,15 +162,15 @@ thestage/services/project/dto/inference_simulator_model_dto.py,sha256=fNqhCYMjzH
162
162
  thestage/services/project/dto/project_config.py,sha256=xLy1P5fwToRNZ7ktEBzfEmmvSqXlEGeLANqWlC8VV_4,557
163
163
  thestage/services/project/mapper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
164
164
  thestage/services/project/mapper/project_inference_simulator_mapper.py,sha256=UdOu9IIF5rlNPoWSaaeSKU3ODe8E5uSMgm2V5ywMWKE,812
165
- thestage/services/project/mapper/project_inference_simulator_model_mapper.py,sha256=PWY0iWbXhvD-G0X0_aQZAFY2bqc0lvRJcQAyC8Y-88Q,869
165
+ thestage/services/project/mapper/project_inference_simulator_model_mapper.py,sha256=fL9I4d9w-tXjbR30J0Tw2CaVOtinS37XIuSAsY4Td5M,869
166
166
  thestage/services/project/mapper/project_task_mapper.py,sha256=SHIEXjYwt4vm2B1X2QiI4sCPbBarum0bTOnmTWPOlto,813
167
167
  thestage/services/project/project_service.py,sha256=jVJr6ePzjOpai8OZzedDUCR3UwTMQ0bc6JC2xvQ3yRE,58984
168
168
  thestage/services/remote_server_service.py,sha256=dYLuwQQeuFC8Z9ozmZgapPZ0xChjBrTYS5frCAJmG3w,23264
169
169
  thestage/services/service_factory.py,sha256=WosSbicSvY9dHOkS2OqGCtHkmKdJE1f_K7uEnB3Auaw,4291
170
170
  thestage/services/task/dto/task_dto.py,sha256=PJwrUsLLAoO2uA9xvzb27b9iYAoNiBcsHSxKERh2VFo,2335
171
171
  thestage/services/validation_service.py,sha256=iopaDKuC_V_4Z_Zly5BFaLL74wG66z9URE86_I-9Hi4,2243
172
- thestage-0.6.4.dist-info/LICENSE.txt,sha256=U9QrxfdD7Ie7r8z1FleuvOGQvgCF1m0Mjd78cFvWaHE,572
173
- thestage-0.6.4.dist-info/METADATA,sha256=AejiIshuI4csWcnaYTSvD6Zjxx5KFHufi_hPz3orGNc,5557
174
- thestage-0.6.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
175
- thestage-0.6.4.dist-info/entry_points.txt,sha256=57pMhs8zaCM-jgeTffC0WVqCsh35Uq_dUDmzXR80CI4,47
176
- thestage-0.6.4.dist-info/RECORD,,
172
+ thestage-0.6.5.dist-info/LICENSE.txt,sha256=U9QrxfdD7Ie7r8z1FleuvOGQvgCF1m0Mjd78cFvWaHE,572
173
+ thestage-0.6.5.dist-info/METADATA,sha256=7je99zWp5fpZK2KjCBJ9yLGGh3sldq7Un-DPK0TZNFw,5557
174
+ thestage-0.6.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
175
+ thestage-0.6.5.dist-info/entry_points.txt,sha256=57pMhs8zaCM-jgeTffC0WVqCsh35Uq_dUDmzXR80CI4,47
176
+ thestage-0.6.5.dist-info/RECORD,,