autoverse-cli 0.19.5__py3-none-any.whl → 0.19.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: autoverse-cli
3
- Version: 0.19.5
3
+ Version: 0.19.6
4
4
  Summary: The Autoverse CLI
5
5
  Author-email: Dan Kamrath <dan.kamrath@autonomalabs.com>
6
6
  License: # End-User License Agreement (EULA) of the Autonoma AutoVerse CLI
@@ -1,16 +1,16 @@
1
- autoverse_cli-0.19.5.dist-info/licenses/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
1
+ autoverse_cli-0.19.6.dist-info/licenses/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
2
2
  avrs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- avrs/app_version.py,sha256=Jnu1h5hX14BcogR5uiQaMmmviWWqv-SW9RoekGUilMM,856
3
+ avrs/app_version.py,sha256=Is_SpBRM9OLLcW-kHPtavL1_Vp3h-VqOOCoyFDfNeBc,856
4
4
  avrs/argparse_help.py,sha256=EoEaohGXZXqJvs1dFEzbo9vh47CYdHdSY2Im2Ps2iFo,945
5
5
  avrs/avrs.py,sha256=oTtEGdiKJUw03EpKKvgwWahbr9OxxJW3uSrCuFt7DDg,4755
6
6
  avrs/can_tool.py,sha256=IBoctKobBJ3wCq4ZdtuXuXH4AMEUxazCfYT6YP0Luw8,7161
7
7
  avrs/can_tool_util.py,sha256=G3q21dTGMLc09SDq_RieoW7kSn-kXPkXxPDjavPh4hQ,7710
8
8
  avrs/cfg.py,sha256=kMn08Z4Ms1PAu2-U1QI8weEJeIVEppP4A4_tFfwnjtg,2924
9
- avrs/launcher.py,sha256=kk1lyHHLgFZ4zsFfa_zV5f1kYbUODT6wEILJ8TZ16rQ,9353
10
- avrs/launcher_util.py,sha256=sO3k_z3A-HIQdJVkVXNXUAE_MGFwAYiZUqQBoFwOqew,5325
9
+ avrs/launcher.py,sha256=1xew4ZPZtbKE2364ZRlT-TnWabRVKBESk8ZKSpxs8rU,9539
10
+ avrs/launcher_util.py,sha256=oWsFBqqDgaLBvqe9m0ahTviXLZvOHKP_8mebKYzQF3Q,5384
11
11
  avrs/race_cloud.py,sha256=0m7BdclKhTrqdAA2kLIobwfoYA8X_PRDCFWoizHtPIQ,20124
12
12
  avrs/race_cloud_bridge_can.py,sha256=K3is7GFzWo2KBojr6V65kz138UfkVFXXofVxSAziArY,2888
13
- avrs/race_cloud_cfg_util.py,sha256=TImuouwekbl3nfGQBNx_dNMyW0h0Tnl4n_J0-eUwZ_s,11552
13
+ avrs/race_cloud_cfg_util.py,sha256=D00lLCTF0_Wr4_bwOhsmYabyw2RfWLLGXOrh3DzfNOc,11530
14
14
  avrs/race_cloud_fwd_api.py,sha256=jB4kt6Shu9Pj96WPVjK790PZjucYxmuHjjVKczQfyZI,1620
15
15
  avrs/race_cloud_util.py,sha256=g1gCxmK-8n32aNj0NWEiZr79s1rB0EYbGmNLabsIW0U,14297
16
16
  avrs/simconfig.py,sha256=UZc4FrxVHUkk2e9IglSpuojXkaL_nPrJW7trbEGgOOo,2907
@@ -41,8 +41,8 @@ avrs/requests/toggle_hud.py,sha256=sV5t5QZc4uvRihPVk8jEKZiQNsyF9tsUwq5b4jjZplc,3
41
41
  avrs/requests/vd.py,sha256=Rd0mCc89m2yKjftVf0cMHMFbJG4iFd09KzrI-DsCLgI,2606
42
42
  avrs/requests/vehicle_input.py,sha256=R1b1xkRtOBkwyU6OSN4bWVlYsIUroZG0WKbYbc4pEH8,729
43
43
  avrs/requests/vehicle_replay.py,sha256=dQ9jQX8UhC5hNbdSu_zTn4gicR2GuTCyOmSBiCYBipI,14696
44
- autoverse_cli-0.19.5.dist-info/METADATA,sha256=X-MYLwfngWxnGM3dao5SgPsO-2fTdCcFFEp10Qg5yEM,3364
45
- autoverse_cli-0.19.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
- autoverse_cli-0.19.5.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
47
- autoverse_cli-0.19.5.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
48
- autoverse_cli-0.19.5.dist-info/RECORD,,
44
+ autoverse_cli-0.19.6.dist-info/METADATA,sha256=GrYSrJuX_NWV5mNG4i_UbhmCiFrytcD84cVrCswjyPc,3364
45
+ autoverse_cli-0.19.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
+ autoverse_cli-0.19.6.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
47
+ autoverse_cli-0.19.6.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
48
+ autoverse_cli-0.19.6.dist-info/RECORD,,
avrs/app_version.py CHANGED
@@ -2,7 +2,7 @@ import http.client
2
2
  import json
3
3
 
4
4
  def get_app_version():
5
- return '0.19.5'
5
+ return '0.19.6'
6
6
 
7
7
  def check_app_is_latest():
8
8
  pass
avrs/launcher.py CHANGED
@@ -111,7 +111,7 @@ class AvrsLauncher:
111
111
  return
112
112
 
113
113
  # Get latest build info from API
114
- build_info_ok, build_info_status, latest_version, latest_url = get_launcher_build_info(self.cfg)
114
+ build_info_ok, build_info_status, latest_version, staged_version = get_launcher_build_info(self.cfg)
115
115
  if not build_info_ok:
116
116
  print('Error Getting Latest Version Info: {}'.format(build_info_status))
117
117
  return
@@ -140,7 +140,7 @@ class AvrsLauncher:
140
140
  return
141
141
 
142
142
  # Get latest build info from API
143
- build_info_ok, build_info_status, latest_version, latest_url = get_launcher_build_info(self.cfg)
143
+ build_info_ok, build_info_status, latest_version, staged_version = get_launcher_build_info(self.cfg)
144
144
  if not build_info_ok:
145
145
  print('Error Getting Latest Version Info: {}'.format(build_info_status))
146
146
  return
@@ -162,7 +162,10 @@ class AvrsLauncher:
162
162
  shutil.copytree(copy_from_saved_dir, copy_saved_cache)
163
163
 
164
164
  target_version = latest_version
165
- if args.target_version != '':
165
+ if args.target_version == 'staged':
166
+ target_version = staged_version
167
+ print('attempting to download staged version: {}'.format(target_version))
168
+ elif args.target_version != '':
166
169
  target_version = args.target_version
167
170
  print('attempting to download specified version: {}'.format(target_version))
168
171
 
avrs/launcher_util.py CHANGED
@@ -110,13 +110,13 @@ def get_launcher_build_info(cfg):
110
110
  table = db_resource.Table('autoverse-ci-meta')
111
111
  item = table.get_item(Key={'package-name': 'autoverse'})
112
112
 
113
- if not 'Item' in item or 'latest' not in item['Item']:
113
+ if not 'Item' in item or 'prod' not in item['Item'] or 'staging' not in item['Item']:
114
114
  status = 'Unable to Retrieve Latest Version'
115
115
  return (False, status, '', '')
116
116
 
117
- latest_version = item['Item']['latest']
118
- version_url = item['Item']['package-url']
119
- return (True, status, latest_version, version_url)
117
+ latest_version = item['Item']['prod']
118
+ staged_version = item.get('Item', {}).get('staging', latest_version)
119
+ return (True, status, latest_version, staged_version)
120
120
 
121
121
  def download_simulator_archive(cfg, source_path, target_path):
122
122
  """
@@ -78,6 +78,7 @@ def register_received_vehicle(team_name, slot, cfg_data, bsu_vcan, kistler_vcan,
78
78
  bsu_vcan, kistler_vcan, badenia_vcan))
79
79
  eav24['body']['primaryCanName'] = bsu_vcan
80
80
  eav24['body']['secondaryCanName'] = kistler_vcan
81
+
81
82
  eav24['body']['badeniaCanName'] = badenia_vcan
82
83
 
83
84
  # limit can rates to conserve resources
@@ -273,7 +274,7 @@ def prepare_vehicle_cfg(cfg_path):
273
274
  if kistler_vcan == '':
274
275
  logger.info('secondaryCanName key not found, trying old kistlerCanName')
275
276
  kistler_vcan = eav24['body'].get('kistlerCanName', '')
276
- badenia_vcan = eav24['body']['badeniaCanName']
277
+ badenia_vcan = 'unused'
277
278
 
278
279
  if bsu_vcan == '':
279
280
  logger.error('could not find either primaryCanName or bsuCanName')