remotivelabs-cli 0.0.20__py3-none-any.whl → 0.0.21__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.
@@ -2,6 +2,7 @@ from __future__ import annotations
2
2
 
3
3
  import datetime
4
4
  import json
5
+ import os
5
6
  import tempfile
6
7
  from pathlib import Path
7
8
  from typing import List, Union
@@ -223,9 +224,9 @@ def _verify_recording_on_broker(broker: Broker, recording_session: str, mode: st
223
224
  # Here we try to verify that we are operating on a recording that is mounted on the
224
225
  # broker so we can verify this before we try playback and can also present some good
225
226
  # error messages
226
- tmp = tempfile.NamedTemporaryFile()
227
- broker.download(".cloud.context", tmp.name, True)
228
- with open(tmp.name, "r") as f:
227
+ tmp = os.path.join(tempfile.gettempdir(), os.urandom(24).hex())
228
+ broker.download(".cloud.context", tmp, True)
229
+ with open(tmp, "r") as f:
229
230
  json_context = json.loads(f.read())
230
231
  if json_context["recordingSessionId"] != recording_session:
231
232
  ErrorPrinter.print_generic_error(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: remotivelabs-cli
3
- Version: 0.0.20
3
+ Version: 0.0.21
4
4
  Summary: CLI for operating RemotiveCloud and RemotiveBroker
5
5
  Author: Johan Rask
6
6
  Author-email: johan.rask@remotivelabs.com
@@ -19,7 +19,7 @@ cli/cloud/cloud_cli.py,sha256=nRRXFF_IgUMayerxS-h7oqsNe6tt34Q5VeThq8gatEg,1443
19
19
  cli/cloud/configs.py,sha256=2p1mCHf5BwYNtwbY0Cbed5t6-79WHGKWU4Fv6LuJ21o,4069
20
20
  cli/cloud/projects.py,sha256=-uqltAOficwprOKaPd2R0Itm4sqTz3VJNs9Sc8jtO5k,1369
21
21
  cli/cloud/recordings.py,sha256=aBQeZW569cBcf_qLZA5StmgNnnSKYaaunn91SXnJVQM,20801
22
- cli/cloud/recordings_playback.py,sha256=OXRvoE7Zc_jQrofpqjbWYKZ6pfhJVHBe0bQ9GEfv64Q,10879
22
+ cli/cloud/recordings_playback.py,sha256=crrwQ3kl8LzCVBan9B1a15t-vhDCNYqLKSVQbLf58Ng,10907
23
23
  cli/cloud/rest_helper.py,sha256=WK5We-vWg0GwnTq37OyKVuQTc58RFkPuA0kq5wjDtCk,7769
24
24
  cli/cloud/sample_recordings.py,sha256=g1X6JTxvzWInSP9R1BJsDmL4WqvpEKqjdJR_xT4bo1U,639
25
25
  cli/cloud/service_account_tokens.py,sha256=7vjoMd6Xq7orWCUP7TVUVa86JA0OiX8O10NZcHUE6rM,2294
@@ -35,8 +35,8 @@ cli/tools/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
35
35
  cli/tools/can/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
36
36
  cli/tools/can/can.py,sha256=kSd1c-nxxXyeKkm19oDILiDBZsKOcpjsUT0T3xox5Qs,2172
37
37
  cli/tools/tools.py,sha256=LwQdWMcJ19pCyKUsVfSB2B3R6ui61NxxFWP0Nrnd5Jk,198
38
- remotivelabs_cli-0.0.20.dist-info/LICENSE,sha256=qDPP_yfuv1fF-u7EfexN-cN3M8aFgGVndGhGLovLKz0,608
39
- remotivelabs_cli-0.0.20.dist-info/METADATA,sha256=NMKHIxxpoOh3AYfc-C4in56-fDDSbop6Aw560o4J-8A,1224
40
- remotivelabs_cli-0.0.20.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
41
- remotivelabs_cli-0.0.20.dist-info/entry_points.txt,sha256=lvDhPgagLqW_KTnLPCwKSqfYlEp-1uYVosRiPjsVj10,45
42
- remotivelabs_cli-0.0.20.dist-info/RECORD,,
38
+ remotivelabs_cli-0.0.21.dist-info/LICENSE,sha256=qDPP_yfuv1fF-u7EfexN-cN3M8aFgGVndGhGLovLKz0,608
39
+ remotivelabs_cli-0.0.21.dist-info/METADATA,sha256=hFU-4UmT2_YsKzVdIBwyWiT8ysdOjMqAt-_CbvrCQoU,1224
40
+ remotivelabs_cli-0.0.21.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
41
+ remotivelabs_cli-0.0.21.dist-info/entry_points.txt,sha256=lvDhPgagLqW_KTnLPCwKSqfYlEp-1uYVosRiPjsVj10,45
42
+ remotivelabs_cli-0.0.21.dist-info/RECORD,,