autoverse-cli 0.26.0__py3-none-any.whl → 0.26.1__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.26.0
3
+ Version: 0.26.1
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,12 +1,12 @@
1
- autoverse_cli-0.26.0.dist-info/licenses/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
1
+ autoverse_cli-0.26.1.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=UUvS1I1VuMQg2VBP8WWwCCptM3e6LCz2PKJqw5Zt-TY,856
3
+ avrs/app_version.py,sha256=sY1fpwqoCUAZ4uNFfM9x1GqSUrZ_mLqbJq7ZJUUmBoQ,856
4
4
  avrs/argparse_help.py,sha256=EoEaohGXZXqJvs1dFEzbo9vh47CYdHdSY2Im2Ps2iFo,945
5
5
  avrs/avrs.py,sha256=pQHc8KLAD0hCxpBoNbXOgj2Et3qiqxSMKyAXFLwWFjE,5787
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=NEZ2YvDTr51xOn-wBLPKVHmVZy0APrcr8kThCOx83vc,10200
9
+ avrs/launcher.py,sha256=-aCRoGxRnuwTjuhjgi0hNE_zee-X-4nQYnGJfXpjLVA,11409
10
10
  avrs/launcher_util.py,sha256=o9owKiXxgEBE-p6cAgFLUZ6Y26CauZsDAglk4bRvkuA,6447
11
11
  avrs/race_cloud.py,sha256=0m7BdclKhTrqdAA2kLIobwfoYA8X_PRDCFWoizHtPIQ,20124
12
12
  avrs/race_cloud_bridge_can.py,sha256=K3is7GFzWo2KBojr6V65kz138UfkVFXXofVxSAziArY,2888
@@ -44,8 +44,8 @@ avrs/requests/toggle_hud.py,sha256=sV5t5QZc4uvRihPVk8jEKZiQNsyF9tsUwq5b4jjZplc,3
44
44
  avrs/requests/vd.py,sha256=Rd0mCc89m2yKjftVf0cMHMFbJG4iFd09KzrI-DsCLgI,2606
45
45
  avrs/requests/vehicle_input.py,sha256=R1b1xkRtOBkwyU6OSN4bWVlYsIUroZG0WKbYbc4pEH8,729
46
46
  avrs/requests/vehicle_replay.py,sha256=7HPfVLjSLNbOyzU77Bz29qpHqRsMUAIWvnwvnNiw2nk,15026
47
- autoverse_cli-0.26.0.dist-info/METADATA,sha256=bZb69UQraajrTSExXiQiXJN0KOSYivme3MNklu2stl4,3935
48
- autoverse_cli-0.26.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
49
- autoverse_cli-0.26.0.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
50
- autoverse_cli-0.26.0.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
51
- autoverse_cli-0.26.0.dist-info/RECORD,,
47
+ autoverse_cli-0.26.1.dist-info/METADATA,sha256=U8tv2SWKbk1wiAD7dH782A_Jqgqez-IoekE7Xjx9BNM,3935
48
+ autoverse_cli-0.26.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
49
+ autoverse_cli-0.26.1.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
50
+ autoverse_cli-0.26.1.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
51
+ autoverse_cli-0.26.1.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.26.0'
5
+ return '0.26.1'
6
6
 
7
7
  def check_app_is_latest():
8
8
  pass
avrs/launcher.py CHANGED
@@ -4,6 +4,7 @@ import json
4
4
  import logging
5
5
  import http.client
6
6
  import boto3
7
+ import sys
7
8
  from avrs.cfg import *
8
9
  from avrs.launcher_util import *
9
10
 
@@ -111,6 +112,21 @@ class AvrsLauncher:
111
112
  print('Launcher Download Keys Error: {}'.format(dl_keys_status))
112
113
  return
113
114
 
115
+ # Check if variant is valid (for backwards compatibility, we still proceed even if invalid)
116
+ variant_is_invalid = False
117
+ if args.variant != "staged":
118
+ # Ensure variants are loaded
119
+ if 'variants' not in self.cfg:
120
+ (dl_keys_ok, dl_keys_status, self.cfg) = try_get_launcher_download_keys(self.cfg)
121
+ if not dl_keys_ok:
122
+ # If we can't get variants, proceed anyway for backwards compatibility
123
+ pass
124
+ if 'variants' in self.cfg and args.variant not in self.cfg['variants']:
125
+ variant_is_invalid = True
126
+ # Write warning to stderr so it doesn't interfere with scripts parsing stdout
127
+ sys.stderr.write('Warning: "{}" is not a known variant. Available variants: {}\n'.format(
128
+ args.variant, self.cfg['variants']))
129
+
114
130
  # special case where we want staged version
115
131
  if args.variant == "staged":
116
132
  # Get latest build info from API
@@ -128,6 +144,10 @@ class AvrsLauncher:
128
144
  print('Error Getting Latest Version Info: {}'.format(build_info_status))
129
145
  return
130
146
  print('{}'.format(latest_version))
147
+ if variant_is_invalid:
148
+ # Explain that the output is the default/prod variant version, not the requested variant
149
+ sys.stderr.write('Note: The version shown above is the production version of the default variant, not "{}"\n'.format(
150
+ args.variant))
131
151
 
132
152
  def download_simulator(self, args):
133
153