snapctl 0.53.1__py3-none-any.whl → 1.0.2__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/byogs.py +2 -1
- snapctl/commands/snapend.py +9 -4
- snapctl/config/app.py +1 -1
- snapctl/config/constants.py +1 -1
- snapctl/data/releases/1.0.0.mdx +7 -0
- {snapctl-0.53.1.dist-info → snapctl-1.0.2.dist-info}/METADATA +7 -6
- {snapctl-0.53.1.dist-info → snapctl-1.0.2.dist-info}/RECORD +10 -9
- {snapctl-0.53.1.dist-info → snapctl-1.0.2.dist-info}/LICENSE +0 -0
- {snapctl-0.53.1.dist-info → snapctl-1.0.2.dist-info}/WHEEL +0 -0
- {snapctl-0.53.1.dist-info → snapctl-1.0.2.dist-info}/entry_points.txt +0 -0
snapctl/commands/byogs.py
CHANGED
|
@@ -400,8 +400,9 @@ class ByoGs:
|
|
|
400
400
|
code=SNAPCTL_INPUT_ERROR)
|
|
401
401
|
# Check docker file path
|
|
402
402
|
if not self.skip_build and not self.docker_path_filename:
|
|
403
|
+
path_in_message = self.resources_path if self.resources_path else self.path
|
|
403
404
|
snapctl_error(
|
|
404
|
-
f"Unable to find {
|
|
405
|
+
f"Unable to find the Dockerfile at {path_in_message}", SNAPCTL_INPUT_ERROR)
|
|
405
406
|
elif self.subcommand == 'sync':
|
|
406
407
|
# Check path
|
|
407
408
|
if not self.skip_build and not self.path:
|
snapctl/commands/snapend.py
CHANGED
|
@@ -35,7 +35,7 @@ class Snapend:
|
|
|
35
35
|
'download', 'update', 'state'
|
|
36
36
|
]
|
|
37
37
|
DOWNLOAD_CATEGORY = [
|
|
38
|
-
'sdk', 'protos', 'snapend-manifest'
|
|
38
|
+
'sdk', 'protos', 'snapend-manifest', 'legacy-sdk'
|
|
39
39
|
]
|
|
40
40
|
CATEGORY_TYPE_SDK = [
|
|
41
41
|
# 'omni',
|
|
@@ -123,6 +123,10 @@ class Snapend:
|
|
|
123
123
|
The portal server however expects us to pass client-sdk or server-sdk
|
|
124
124
|
Hence we need to do this
|
|
125
125
|
'''
|
|
126
|
+
if category == 'legacy-sdk' and category_format in CLIENT_SDK_TYPES:
|
|
127
|
+
return 'legacy-client-sdk'
|
|
128
|
+
if category == 'legacy-sdk' and category_format in SERVER_SDK_TYPES:
|
|
129
|
+
return 'legacy-server-sdk'
|
|
126
130
|
if category == 'sdk' and category_format in CLIENT_SDK_TYPES:
|
|
127
131
|
return 'client-sdk'
|
|
128
132
|
if category == 'sdk' and category_format in SERVER_SDK_TYPES:
|
|
@@ -135,7 +139,7 @@ class Snapend:
|
|
|
135
139
|
|
|
136
140
|
@staticmethod
|
|
137
141
|
def _make_download_type(category: str):
|
|
138
|
-
if category
|
|
142
|
+
if category in ['sdk', 'legacy-sdk']:
|
|
139
143
|
return SDK_TYPES
|
|
140
144
|
if category == 'protos':
|
|
141
145
|
return PROTOS_TYPES
|
|
@@ -230,7 +234,7 @@ class Snapend:
|
|
|
230
234
|
if self.category == 'protos':
|
|
231
235
|
url += f"&subtype={self.category_type}"
|
|
232
236
|
# If client or server SDK, add sub type and auth type
|
|
233
|
-
if self.category
|
|
237
|
+
if self.category in ['sdk', 'legacy-sdk']:
|
|
234
238
|
url += "&subtype=" + \
|
|
235
239
|
f"{self.download_types[self.category_format]['subtype']}"
|
|
236
240
|
url += f"&access_type={SDK_ACCESS_AUTH_TYPE_LOOKUP[self.category_type]['access_type']}"
|
|
@@ -244,6 +248,7 @@ class Snapend:
|
|
|
244
248
|
# Customize snaps
|
|
245
249
|
if self.snaps:
|
|
246
250
|
url += f"&snaps={self.snaps}"
|
|
251
|
+
# info(f"Downloading from {url}")
|
|
247
252
|
res = requests.get(
|
|
248
253
|
url, headers={'api-key': self.api_key}, timeout=SERVER_CALL_TIMEOUT
|
|
249
254
|
)
|
|
@@ -405,7 +410,7 @@ class Snapend:
|
|
|
405
410
|
code=SNAPCTL_INPUT_ERROR
|
|
406
411
|
)
|
|
407
412
|
# Check the auth type
|
|
408
|
-
if self.category
|
|
413
|
+
if self.category in ['sdk', 'legacy-sdk']:
|
|
409
414
|
if not self.category_type:
|
|
410
415
|
snapctl_error(
|
|
411
416
|
message="Missing required parameter: --type",
|
snapctl/config/app.py
CHANGED
snapctl/config/constants.py
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: snapctl
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.2
|
|
4
4
|
Summary: Snapser CLI Tool
|
|
5
5
|
Author: Ajinkya Apte
|
|
6
6
|
Author-email: aj@snapser.com
|
|
7
|
-
Requires-Python: >=3.10,<
|
|
7
|
+
Requires-Python: >=3.10,<3.13
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.10
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
-
|
|
12
|
+
Provides-Extra: all
|
|
13
|
+
Requires-Dist: configparser (>=6,<7)
|
|
13
14
|
Requires-Dist: pyfiglet (>=1.0.2,<2.0.0)
|
|
14
|
-
Requires-Dist: pytest (>=8.2.2,<9.0.0)
|
|
15
|
-
Requires-Dist: pytest-mock (>=3.14.0,<4.0.0)
|
|
16
15
|
Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
|
|
17
16
|
Requires-Dist: requests (>=2.28.2,<3.0.0)
|
|
18
|
-
Requires-Dist:
|
|
17
|
+
Requires-Dist: rich (>=13) ; extra == "all"
|
|
18
|
+
Requires-Dist: shellingham (>=1.5) ; extra == "all"
|
|
19
|
+
Requires-Dist: typer (>=0.18,<1.0)
|
|
19
20
|
Description-Content-Type: text/markdown
|
|
20
21
|
|
|
21
22
|
export const description = 'CLI'
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
snapctl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
snapctl/__main__.py,sha256=43jKoTk8b85hk_MT6499N3ruHdEfM8WBImd_-3VzjI8,116
|
|
3
3
|
snapctl/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
snapctl/commands/byogs.py,sha256=
|
|
4
|
+
snapctl/commands/byogs.py,sha256=ZeSb6q8zaBCRgUe1MKo_zFvqU70k-tcMFFDqR0F5fGg,20176
|
|
5
5
|
snapctl/commands/byosnap.py,sha256=TAITdbB_FhGk7K94bPDDjykXbU9XwO9opW__qdeg0SQ,78187
|
|
6
6
|
snapctl/commands/byows.py,sha256=wbfCGbjigZo37mryvvE_VJ9bJWjIjcRBLAS7IT6VNrI,18906
|
|
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
|
-
snapctl/commands/snapend.py,sha256
|
|
10
|
+
snapctl/commands/snapend.py,sha256=Fxaf-oy_EX_MYzjR1OVibeClr0UUM53PZllyh28WAEU,40015
|
|
11
11
|
snapctl/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
-
snapctl/config/app.py,sha256=
|
|
13
|
-
snapctl/config/constants.py,sha256=
|
|
12
|
+
snapctl/config/app.py,sha256=U9Mm0BbGJoqcmBBam2tN7F-oTf_u9dK6EJsiB-yVvKg,888
|
|
13
|
+
snapctl/config/constants.py,sha256=trN5WMORszkeLffMhDHx_D5uMfgox-8JGUDU5szDY3M,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
|
|
@@ -18,6 +18,7 @@ snapctl/data/profiles/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
|
18
18
|
snapctl/data/profiles/snapser-byosnap-profile.json,sha256=c7oIzMJewVQaoLaXCBPXlH-k5cL9DCz6q4IixsWWD9c,2404
|
|
19
19
|
snapctl/data/profiles/snapser-byosnap-profile.yaml,sha256=vK5JqHa1f1_jlcW0m7qg-sKN9njE8PURJHzaRdvfEOY,3600
|
|
20
20
|
snapctl/data/profiles/snapser-byosnap-profile.yml,sha256=vK5JqHa1f1_jlcW0m7qg-sKN9njE8PURJHzaRdvfEOY,3600
|
|
21
|
+
snapctl/data/releases/1.0.0.mdx,sha256=UY6qLOFv7lGgBU2A6ROf4Q0WGW-JbYN2ZyhLO3JUIKs,215
|
|
21
22
|
snapctl/data/releases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
23
|
snapctl/data/releases/beta-0.46.0.mdx,sha256=_MJA7TnnJjAnNm_EOvoBiz7FjHwl4c49sYtZ9r4KZQE,2386
|
|
23
24
|
snapctl/data/releases/beta-0.46.4.mdx,sha256=3-ojdCyvax27sdd8nKmcP0zfCWEzi_edPbSlkFqla4o,173
|
|
@@ -39,8 +40,8 @@ snapctl/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
39
40
|
snapctl/utils/echo.py,sha256=9fxrPW9kNJwiJvJBFy9RlAP4qGRcPTOHfQb3pQh3CMg,1446
|
|
40
41
|
snapctl/utils/helper.py,sha256=5c5jfAYD4WsvPpuCLMCz3tPvji28786_pD9TZkRSFIs,7179
|
|
41
42
|
snapctl/utils/telemetry.py,sha256=_VntKXUrKgJoLKCskH0Z5VhthiVo8CP572U0mcZIH4k,5028
|
|
42
|
-
snapctl-0.
|
|
43
|
-
snapctl-0.
|
|
44
|
-
snapctl-0.
|
|
45
|
-
snapctl-0.
|
|
46
|
-
snapctl-0.
|
|
43
|
+
snapctl-1.0.2.dist-info/LICENSE,sha256=6AcXm54KFSpmUI1ji9NIBd4Xl-DtjTqiyjBzfVb_CEk,2804
|
|
44
|
+
snapctl-1.0.2.dist-info/METADATA,sha256=vZqEeGK5vRBxjZFjnm9C380J1Jk1PBjFSZRuJPMhAQY,36289
|
|
45
|
+
snapctl-1.0.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
46
|
+
snapctl-1.0.2.dist-info/entry_points.txt,sha256=tkKW9MzmFdRs6Bgkv29G78i9WEBK4WIOWunPfe3t2Wg,44
|
|
47
|
+
snapctl-1.0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|