snapctl 1.0.2__tar.gz → 1.0.4__tar.gz

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.

Files changed (49) hide show
  1. {snapctl-1.0.2 → snapctl-1.0.4}/PKG-INFO +1 -1
  2. {snapctl-1.0.2 → snapctl-1.0.4}/pyproject.toml +1 -1
  3. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/commands/byogs.py +2 -2
  4. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/commands/byosnap.py +2 -2
  5. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/commands/byows.py +6 -4
  6. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/config/constants.py +1 -1
  7. snapctl-1.0.4/snapctl/data/releases/1.0.2.mdx +5 -0
  8. snapctl-1.0.4/snapctl/data/releases/1.0.3.mdx +4 -0
  9. snapctl-1.0.4/snapctl/data/releases/1.0.4.mdx +5 -0
  10. {snapctl-1.0.2 → snapctl-1.0.4}/LICENSE +0 -0
  11. {snapctl-1.0.2 → snapctl-1.0.4}/README.md +0 -0
  12. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/__init__.py +0 -0
  13. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/__main__.py +0 -0
  14. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/commands/__init__.py +0 -0
  15. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/commands/game.py +0 -0
  16. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/commands/generate.py +0 -0
  17. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/commands/release_notes.py +0 -0
  18. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/commands/snapend.py +0 -0
  19. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/config/__init__.py +0 -0
  20. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/config/app.py +0 -0
  21. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/config/endpoints.py +0 -0
  22. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/config/hashes.py +0 -0
  23. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/__init__.py +0 -0
  24. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/profiles/__init__.py +0 -0
  25. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/profiles/snapser-byosnap-profile.json +0 -0
  26. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/profiles/snapser-byosnap-profile.yaml +0 -0
  27. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/profiles/snapser-byosnap-profile.yml +0 -0
  28. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/1.0.0.mdx +0 -0
  29. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/__init__.py +0 -0
  30. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.46.0.mdx +0 -0
  31. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.46.4.mdx +0 -0
  32. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.47.0.mdx +0 -0
  33. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.47.1.mdx +0 -0
  34. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.47.2.mdx +0 -0
  35. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.48.0.mdx +0 -0
  36. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.49.0.mdx +0 -0
  37. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.49.1.mdx +0 -0
  38. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.49.2.mdx +0 -0
  39. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.49.3.mdx +0 -0
  40. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.50.0.mdx +0 -0
  41. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.51.0.mdx +0 -0
  42. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.53.1.mdx +0 -0
  43. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/main.py +0 -0
  44. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/types/__init__.py +0 -0
  45. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/types/definitions.py +0 -0
  46. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/utils/__init__.py +0 -0
  47. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/utils/echo.py +0 -0
  48. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/utils/helper.py +0 -0
  49. {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/utils/telemetry.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snapctl
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: Snapser CLI Tool
5
5
  Author: Ajinkya Apte
6
6
  Author-email: aj@snapser.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "snapctl"
3
- version = "1.0.2"
3
+ version = "1.0.4"
4
4
  description = "Snapser CLI Tool"
5
5
  authors = ["Ajinkya Apte <aj@snapser.com>"]
6
6
  readme = "README.md"
@@ -229,14 +229,14 @@ class ByoGs:
229
229
  if platform == "win32":
230
230
  response = subprocess.run([
231
231
  # f"docker build --no-cache -t {tag} {path}"
232
- 'docker', 'build', '--platform', build_platform, '-t', self.tag,
232
+ 'docker', 'build', '--load', '--platform', build_platform, '-t', self.tag,
233
233
  '-f', self.docker_path_filename, self.path
234
234
  ], shell=True, check=False, env=env)
235
235
  # stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
236
236
  else:
237
237
  response = subprocess.run([
238
238
  # f"docker build --no-cache -t {tag} {path}"
239
- "docker build --platform " +
239
+ "docker build --load --platform " +
240
240
  f"{build_platform} -t {self.tag} " +
241
241
  f"-f {self.docker_path_filename} {self.path}"
242
242
  ], shell=True, check=False, env=env)
@@ -748,14 +748,14 @@ class ByoSnap:
748
748
  if platform == "win32":
749
749
  response = subprocess.run([
750
750
  # f"docker build --no-cache -t {remote_tag} {path}"
751
- 'docker', 'build', '--platform', build_platform, '-t', self.remote_tag,
751
+ 'docker', 'build', '--load', '--platform', build_platform, '-t', self.remote_tag,
752
752
  '-f', self.docker_path_filename, self.path
753
753
  ], shell=True, check=False, env=env)
754
754
  # stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
755
755
  else:
756
756
  response = subprocess.run([
757
757
  # f"docker build --no-cache -t {remote_tag} {path}"
758
- "docker build --platform " +
758
+ "docker build --load --platform " +
759
759
  f"{build_platform} -t {self.remote_tag} " +
760
760
  f"-f {self.docker_path_filename} {self.path}"
761
761
  ], shell=True, check=False, env=env)
@@ -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.2'
6
+ VERSION = '1.0.4'
7
7
  CONFIG_FILE_MAC = '~/.snapser/config'
8
8
  CONFIG_FILE_WIN = '%homepath%\\.snapser\\config'
9
9
 
@@ -0,0 +1,5 @@
1
+ ## Release 1.0.2
2
+ ##### Sept 19, 2025
3
+
4
+ ### Fixes
5
+ 1. The Click library made a non-backward compatible change in version 8.x that broke the Typer library. This has been fixed by upgrading Typer.
@@ -0,0 +1,4 @@
1
+ ## Release 1.0.3
2
+ ##### Sept 22, 2025
3
+
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.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes