snapctl 0.41.3__tar.gz → 0.42.1__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snapctl
3
- Version: 0.41.3
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
- ## Dependencies
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. Some of the commands also need docker.
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 --version
143
+ snapctl validate
136
144
  ```
137
145
 
138
- You should see the latest snapctl version in the output
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
 
@@ -3,11 +3,19 @@
3
3
  Snapser has developed a CLI tool called **snapctl** that can be used on MaxOSX, Linux and Windows machines.
4
4
  Snapctl will be the best way for game studios to integrate Snapser into their build pipelines.
5
5
 
6
- ## Dependencies
7
-
6
+ ### Python 3.X and Pip
8
7
  The Snapser CLI tool depends on Python 3.X and Pip. MacOS comes pre installed with Python. But
9
8
  please make sure you are running Python 3.X. On Windows, you can download Python 3.X from the
10
- Windows store. Some of the commands also need docker.
9
+ Windows store.
10
+
11
+ ### Docker
12
+ Some of the commands also need docker. You can download the latest version of Docker from the
13
+ [Docker website](https://www.docker.com/products/docker-desktop).
14
+
15
+ **IMPORTANT**: Open up Docker desktop and settings. Make sure this setting is disabled
16
+ **Use containerd for pulling and storing images**. This is because Snapser uses Docker
17
+ to build and push images to the Snapser registry. Having this setting enabled will
18
+ cause issues with the Snapser CLI tool.
11
19
 
12
20
  ## Installation
13
21
 
@@ -113,10 +121,11 @@ SNAPSER_API_KEY=$your_api_key" | Out-File -encoding utf8 ~\.snapser\config
113
121
  ## Verify Snapctl installation
114
122
 
115
123
  ```
116
- snapctl --version
124
+ snapctl validate
117
125
  ```
118
126
 
119
- You should see the latest snapctl version in the output
127
+ Output will tell you if the Snapctl was able successfully validate your setup with the remote Snapser server
128
+ or not.
120
129
 
121
130
  ## Advanced Setup
122
131
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "snapctl"
3
- version = "0.41.3"
3
+ version = "0.42.1"
4
4
  description = "Snapser CLI Tool"
5
5
  authors = ["Ajinkya Apte <aj@snapser.com>"]
6
6
  readme = "README.md"
@@ -2,7 +2,7 @@
2
2
  Constants used by snapctl
3
3
  """
4
4
  COMPANY_NAME = 'Snapser'
5
- VERSION = '0.41.3'
5
+ VERSION = '0.42.1'
6
6
  CONFIG_FILE_MAC = '~/.snapser/config'
7
7
  CONFIG_FILE_WIN = '%homepath%\\.snapser\\config'
8
8
 
@@ -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.get(
23
- url, headers={'api-key': api_key},
22
+ res = requests.post(
23
+ url, json={'api_key': api_key},
24
24
  timeout=SERVER_CALL_TIMEOUT
25
25
  )
26
26
  if res.ok:
File without changes
File without changes
File without changes
File without changes
File without changes