snapctl 0.41.3__py3-none-any.whl → 0.42.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.
Potentially problematic release.
This version of snapctl might be problematic. Click here for more details.
- snapctl/config/constants.py +1 -1
- snapctl/utils/helper.py +2 -2
- {snapctl-0.41.3.dist-info → snapctl-0.42.1.dist-info}/METADATA +15 -6
- {snapctl-0.41.3.dist-info → snapctl-0.42.1.dist-info}/RECORD +7 -7
- {snapctl-0.41.3.dist-info → snapctl-0.42.1.dist-info}/LICENSE +0 -0
- {snapctl-0.41.3.dist-info → snapctl-0.42.1.dist-info}/WHEEL +0 -0
- {snapctl-0.41.3.dist-info → snapctl-0.42.1.dist-info}/entry_points.txt +0 -0
snapctl/config/constants.py
CHANGED
snapctl/utils/helper.py
CHANGED
|
@@ -19,8 +19,8 @@ def validate_api_key(base_url: str, api_key: Union[str, None]) -> bool:
|
|
|
19
19
|
"""
|
|
20
20
|
try:
|
|
21
21
|
url = f"{base_url}/v1/snapser-api/validate"
|
|
22
|
-
res = requests.
|
|
23
|
-
url,
|
|
22
|
+
res = requests.post(
|
|
23
|
+
url, json={'api_key': api_key},
|
|
24
24
|
timeout=SERVER_CALL_TIMEOUT
|
|
25
25
|
)
|
|
26
26
|
if res.ok:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: snapctl
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.42.1
|
|
4
4
|
Summary: Snapser CLI Tool
|
|
5
5
|
Author: Ajinkya Apte
|
|
6
6
|
Author-email: aj@snapser.com
|
|
@@ -22,11 +22,19 @@ Description-Content-Type: text/markdown
|
|
|
22
22
|
Snapser has developed a CLI tool called **snapctl** that can be used on MaxOSX, Linux and Windows machines.
|
|
23
23
|
Snapctl will be the best way for game studios to integrate Snapser into their build pipelines.
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
### Python 3.X and Pip
|
|
27
26
|
The Snapser CLI tool depends on Python 3.X and Pip. MacOS comes pre installed with Python. But
|
|
28
27
|
please make sure you are running Python 3.X. On Windows, you can download Python 3.X from the
|
|
29
|
-
Windows store.
|
|
28
|
+
Windows store.
|
|
29
|
+
|
|
30
|
+
### Docker
|
|
31
|
+
Some of the commands also need docker. You can download the latest version of Docker from the
|
|
32
|
+
[Docker website](https://www.docker.com/products/docker-desktop).
|
|
33
|
+
|
|
34
|
+
**IMPORTANT**: Open up Docker desktop and settings. Make sure this setting is disabled
|
|
35
|
+
**Use containerd for pulling and storing images**. This is because Snapser uses Docker
|
|
36
|
+
to build and push images to the Snapser registry. Having this setting enabled will
|
|
37
|
+
cause issues with the Snapser CLI tool.
|
|
30
38
|
|
|
31
39
|
## Installation
|
|
32
40
|
|
|
@@ -132,10 +140,11 @@ SNAPSER_API_KEY=$your_api_key" | Out-File -encoding utf8 ~\.snapser\config
|
|
|
132
140
|
## Verify Snapctl installation
|
|
133
141
|
|
|
134
142
|
```
|
|
135
|
-
snapctl
|
|
143
|
+
snapctl validate
|
|
136
144
|
```
|
|
137
145
|
|
|
138
|
-
|
|
146
|
+
Output will tell you if the Snapctl was able successfully validate your setup with the remote Snapser server
|
|
147
|
+
or not.
|
|
139
148
|
|
|
140
149
|
## Advanced Setup
|
|
141
150
|
|
|
@@ -7,7 +7,7 @@ snapctl/commands/game.py,sha256=nCXtEXAJkvOw26c_OBGr7Pz4hwu-5FXHyBR2kkXhLCM,5247
|
|
|
7
7
|
snapctl/commands/generate.py,sha256=isiTl3SE1G7wqEWjdYPKDtlBR-HE2-iNdZK_pKgiKvY,8398
|
|
8
8
|
snapctl/commands/snapend.py,sha256=Zq9lNp1NO5fHzlv2S4TrzBZUIxssOu4_ZEQFMO2Tfbc,34677
|
|
9
9
|
snapctl/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
|
-
snapctl/config/constants.py,sha256=
|
|
10
|
+
snapctl/config/constants.py,sha256=6bmM6WBhrDEIsGQ2YTCsx2fvEDBGa9XiqWUO8LYJr64,3274
|
|
11
11
|
snapctl/config/endpoints.py,sha256=9kllA79xn9G_aBLp1rohURZi93pwYzTEWZ8ObtZ6crw,338
|
|
12
12
|
snapctl/config/hashes.py,sha256=V5nvBB4beDFIRjhfcPu6eoljNj4JwNKCPku5dJWfF_Q,4220
|
|
13
13
|
snapctl/main.py,sha256=-Mg95GBT4fiN3j_HFUCWRYZNhlcbDun-pLYBJd2EhKI,22055
|
|
@@ -15,9 +15,9 @@ snapctl/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
15
15
|
snapctl/types/definitions.py,sha256=EQzLeiXkJ8ISRlCqHMviNVsWWpmhWjpKaOBLdlvOTmY,644
|
|
16
16
|
snapctl/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
snapctl/utils/echo.py,sha256=V0qgjqqGXRiueMkq31enmNmdqciC8S90qGRcK8UupXA,1090
|
|
18
|
-
snapctl/utils/helper.py,sha256=
|
|
19
|
-
snapctl-0.
|
|
20
|
-
snapctl-0.
|
|
21
|
-
snapctl-0.
|
|
22
|
-
snapctl-0.
|
|
23
|
-
snapctl-0.
|
|
18
|
+
snapctl/utils/helper.py,sha256=xUOpAoMyIObhdI-9APcXwaQdZJgHSLv-g4QqwkTjR7Y,5402
|
|
19
|
+
snapctl-0.42.1.dist-info/LICENSE,sha256=6AcXm54KFSpmUI1ji9NIBd4Xl-DtjTqiyjBzfVb_CEk,2804
|
|
20
|
+
snapctl-0.42.1.dist-info/METADATA,sha256=zH9dFNeatVAxP_2QWesHegBftcsLMLbDPxc7721HsM4,27276
|
|
21
|
+
snapctl-0.42.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
22
|
+
snapctl-0.42.1.dist-info/entry_points.txt,sha256=tkKW9MzmFdRs6Bgkv29G78i9WEBK4WIOWunPfe3t2Wg,44
|
|
23
|
+
snapctl-0.42.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|