snapctl 1.0.3__py3-none-any.whl → 1.0.4__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.

Potentially problematic release.


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

snapctl/commands/byows.py CHANGED
@@ -20,6 +20,7 @@ from snapctl.config.constants import SERVER_CALL_TIMEOUT, SNAPCTL_INPUT_ERROR, \
20
20
  from snapctl.utils.helper import snapctl_error, snapctl_success, get_dot_snapser_dir
21
21
  from snapctl.utils.echo import info, warning
22
22
 
23
+
23
24
  class Byows:
24
25
  """
25
26
  CLI commands exposed for a Bring your own Workstation
@@ -106,7 +107,7 @@ class Byows:
106
107
  env_vars = []
107
108
 
108
109
  for snap_id in snap_ids:
109
- upper_id = snap_id.upper()
110
+ upper_id = snap_id.upper().replace("-", "_")
110
111
  env_vars.append(f"SNAPEND_{upper_id}_GRPC_URL=localhost:{port}")
111
112
  env_vars.append(
112
113
  f"SNAPEND_{upper_id}_HTTP_URL=http://localhost:{port}")
@@ -128,7 +129,7 @@ class Byows:
128
129
  env_lines = []
129
130
 
130
131
  for snap_id in snap_ids:
131
- upper_id = snap_id.upper()
132
+ upper_id = snap_id.upper().replace("-", "_")
132
133
  env_lines.append(
133
134
  f"export SNAPEND_{upper_id}_GRPC_URL=localhost:{port}")
134
135
  env_lines.append(
@@ -393,7 +394,7 @@ class Byows:
393
394
  self._handle_signal))
394
395
  if hasattr(signal, "SIGBREAK"):
395
396
  signal.signal(signal.SIGBREAK,
396
- functools.partial(self._handle_signal))
397
+ functools.partial(self._handle_signal))
397
398
  # Set up port forward
398
399
  self._setup_port_forward(
399
400
  response_json['proxyPrivateKey'],
@@ -416,7 +417,8 @@ class Byows:
416
417
  code=SNAPCTL_BYOWS_ATTACH_ERROR, progress=progress)
417
418
  except HTTPError as http_err:
418
419
  snapctl_error(
419
- message=Byows._format_portal_http_error("Attach failed.", http_err, res),
420
+ message=Byows._format_portal_http_error(
421
+ "Attach failed.", http_err, res),
420
422
  code=SNAPCTL_BYOWS_ATTACH_ERROR, progress=progress)
421
423
  except RequestException as e:
422
424
  snapctl_error(
@@ -3,7 +3,7 @@ Constants used by snapctl
3
3
  """
4
4
  COMPANY_NAME = 'Snapser'
5
5
  VERSION_PREFIX = ''
6
- VERSION = '1.0.3'
6
+ VERSION = '1.0.4'
7
7
  CONFIG_FILE_MAC = '~/.snapser/config'
8
8
  CONFIG_FILE_WIN = '%homepath%\\.snapser\\config'
9
9
 
@@ -1,5 +1,4 @@
1
1
  ## Release 1.0.3
2
2
  ##### Sept 22, 2025
3
3
 
4
- ### Breaking Change
5
- 1. BYOSnap and BYOGs publishes will be stopped once you hit the limit of 500 images. You can still publish more images by deleting older images from the Snapser Web app.
4
+ 1. Byosnap and byogs upload now forces a single platform image instead of multiple images with an image index.
@@ -0,0 +1,5 @@
1
+ ## Release 1.0.4
2
+ ##### Sept 25, 2025
3
+
4
+ ## Bug Fixes
5
+ 1. BYOWS was outputting an incorrect environment variable names for snaps with hyphens in their IDs. This has been fixed to replace hyphens with underscores in the environment variable names.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snapctl
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: Snapser CLI Tool
5
5
  Author: Ajinkya Apte
6
6
  Author-email: aj@snapser.com
@@ -3,14 +3,14 @@ snapctl/__main__.py,sha256=43jKoTk8b85hk_MT6499N3ruHdEfM8WBImd_-3VzjI8,116
3
3
  snapctl/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  snapctl/commands/byogs.py,sha256=bomIucEEftlIsCB369cYyfxXStSrW7OgjAcaEUPteGI,20193
5
5
  snapctl/commands/byosnap.py,sha256=pWzh0myELb2qefnerA3tIFmp5R_uk3JQs74zetiXYw4,78204
6
- snapctl/commands/byows.py,sha256=wbfCGbjigZo37mryvvE_VJ9bJWjIjcRBLAS7IT6VNrI,18906
6
+ snapctl/commands/byows.py,sha256=91bpV-LXOIbDDx3vNj9Xl_vRBTQeedyzl6fHZcpG6ig,18978
7
7
  snapctl/commands/game.py,sha256=lAABIWIibrwcqvpKvTy_7UzzLtbiP6gdk4_qPBHFKOI,5248
8
8
  snapctl/commands/generate.py,sha256=9-NlZVQllBT2LZT_t9S3ztwtHzTbM-C8_x0f6z70U3g,5606
9
9
  snapctl/commands/release_notes.py,sha256=EMl-NK9-MSdRxiVyA0MLX4CBG0zijOctddEODQa5PZ4,2151
10
10
  snapctl/commands/snapend.py,sha256=Fxaf-oy_EX_MYzjR1OVibeClr0UUM53PZllyh28WAEU,40015
11
11
  snapctl/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  snapctl/config/app.py,sha256=U9Mm0BbGJoqcmBBam2tN7F-oTf_u9dK6EJsiB-yVvKg,888
13
- snapctl/config/constants.py,sha256=qAjeXAFlmkebFMMJo1kb3_nmfkYOinBFHM0ZYsRnB0A,3843
13
+ snapctl/config/constants.py,sha256=rwObpnEgormWPWPkr2TIJKZcfe-YS_OZj7X_W9R6BaU,3843
14
14
  snapctl/config/endpoints.py,sha256=jD0n5ocJBbIkrb97F2_r9hqAHzUuddAqzqqBAPUKDTI,477
15
15
  snapctl/config/hashes.py,sha256=3OKAyOxQPnn--_hvPIzFJnhC8NVfQK4WT-RH4PHEV1w,5242
16
16
  snapctl/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -20,7 +20,8 @@ snapctl/data/profiles/snapser-byosnap-profile.yaml,sha256=vK5JqHa1f1_jlcW0m7qg-s
20
20
  snapctl/data/profiles/snapser-byosnap-profile.yml,sha256=vK5JqHa1f1_jlcW0m7qg-sKN9njE8PURJHzaRdvfEOY,3600
21
21
  snapctl/data/releases/1.0.0.mdx,sha256=UY6qLOFv7lGgBU2A6ROf4Q0WGW-JbYN2ZyhLO3JUIKs,215
22
22
  snapctl/data/releases/1.0.2.mdx,sha256=BptVj9boWRf_V22O0V4EzkGFPFWK6XzRQUQlmTFTZdY,192
23
- snapctl/data/releases/1.0.3.mdx,sha256=IGEb6qqV06diXkejw9ZX1KGyb_cLe-aiwTTUN7Vw0aE,228
23
+ snapctl/data/releases/1.0.3.mdx,sha256=Ifm6kRQQghCWx_OJ3shNOxozUP3hH_yt8dMap7B-1tw,149
24
+ snapctl/data/releases/1.0.4.mdx,sha256=hKwi0tormf0gvKAY5W4G1BY7L6fgwOzlw3R-WGSH49g,243
24
25
  snapctl/data/releases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
26
  snapctl/data/releases/beta-0.46.0.mdx,sha256=_MJA7TnnJjAnNm_EOvoBiz7FjHwl4c49sYtZ9r4KZQE,2386
26
27
  snapctl/data/releases/beta-0.46.4.mdx,sha256=3-ojdCyvax27sdd8nKmcP0zfCWEzi_edPbSlkFqla4o,173
@@ -42,8 +43,8 @@ snapctl/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
43
  snapctl/utils/echo.py,sha256=9fxrPW9kNJwiJvJBFy9RlAP4qGRcPTOHfQb3pQh3CMg,1446
43
44
  snapctl/utils/helper.py,sha256=5c5jfAYD4WsvPpuCLMCz3tPvji28786_pD9TZkRSFIs,7179
44
45
  snapctl/utils/telemetry.py,sha256=_VntKXUrKgJoLKCskH0Z5VhthiVo8CP572U0mcZIH4k,5028
45
- snapctl-1.0.3.dist-info/LICENSE,sha256=6AcXm54KFSpmUI1ji9NIBd4Xl-DtjTqiyjBzfVb_CEk,2804
46
- snapctl-1.0.3.dist-info/METADATA,sha256=KmhoeaOOOY4uIHa8b3Zcj7KjAZltde4em7H5IIJbLOI,36289
47
- snapctl-1.0.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
48
- snapctl-1.0.3.dist-info/entry_points.txt,sha256=tkKW9MzmFdRs6Bgkv29G78i9WEBK4WIOWunPfe3t2Wg,44
49
- snapctl-1.0.3.dist-info/RECORD,,
46
+ snapctl-1.0.4.dist-info/LICENSE,sha256=6AcXm54KFSpmUI1ji9NIBd4Xl-DtjTqiyjBzfVb_CEk,2804
47
+ snapctl-1.0.4.dist-info/METADATA,sha256=DikrorVDfOMPyniGpL8-VyPLYEO1meSva2Hre67ULy8,36289
48
+ snapctl-1.0.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
49
+ snapctl-1.0.4.dist-info/entry_points.txt,sha256=tkKW9MzmFdRs6Bgkv29G78i9WEBK4WIOWunPfe3t2Wg,44
50
+ snapctl-1.0.4.dist-info/RECORD,,