canonicalwebteam.store-api 6.3.0__py3-none-any.whl → 6.5.0__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.
- canonicalwebteam/store_api/base.py +1 -1
- canonicalwebteam/store_api/publishergw.py +8 -3
- {canonicalwebteam_store_api-6.3.0.dist-info → canonicalwebteam_store_api-6.5.0.dist-info}/METADATA +1 -1
- {canonicalwebteam_store_api-6.3.0.dist-info → canonicalwebteam_store_api-6.5.0.dist-info}/RECORD +6 -6
- {canonicalwebteam_store_api-6.3.0.dist-info → canonicalwebteam_store_api-6.5.0.dist-info}/LICENSE +0 -0
- {canonicalwebteam_store_api-6.3.0.dist-info → canonicalwebteam_store_api-6.5.0.dist-info}/WHEEL +0 -0
|
@@ -243,7 +243,12 @@ class PublisherGW(Base):
|
|
|
243
243
|
headers=self._get_dev_token_authorization_header(session),
|
|
244
244
|
)
|
|
245
245
|
|
|
246
|
-
|
|
246
|
+
processed_response = self.process_response(response)
|
|
247
|
+
|
|
248
|
+
if "metadata" not in processed_response:
|
|
249
|
+
raise KeyError("Missing 'metadata' key in response")
|
|
250
|
+
|
|
251
|
+
return processed_response["metadata"]
|
|
247
252
|
|
|
248
253
|
def update_package_metadata(
|
|
249
254
|
self, publisher_auth: str, package_type: str, name: str, data: dict
|
|
@@ -307,7 +312,7 @@ class PublisherGW(Base):
|
|
|
307
312
|
return self.process_response(response)
|
|
308
313
|
|
|
309
314
|
def unregister_package_name(
|
|
310
|
-
self,
|
|
315
|
+
self, publisher_auth: str, package_name: str
|
|
311
316
|
) -> dict:
|
|
312
317
|
"""
|
|
313
318
|
Unregister a package name.
|
|
@@ -325,7 +330,7 @@ class PublisherGW(Base):
|
|
|
325
330
|
url = self.get_endpoint_url(package_name, has_name_space=True)
|
|
326
331
|
response = self.session.delete(
|
|
327
332
|
url=url,
|
|
328
|
-
headers=
|
|
333
|
+
headers=self._get_authorization_header(publisher_auth),
|
|
329
334
|
)
|
|
330
335
|
return response
|
|
331
336
|
|
{canonicalwebteam_store_api-6.3.0.dist-info → canonicalwebteam_store_api-6.5.0.dist-info}/RECORD
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
canonicalwebteam/__init__.py,sha256=ED6jHcYiuYpr_0vjGz0zx2lrrmJT9sDJCzIljoDfmlM,65
|
|
2
2
|
canonicalwebteam/exceptions.py,sha256=A49LRhiEIfXNB2zC-zNcZEcdh0ugw6G7fBbXbs-BWxA,1517
|
|
3
3
|
canonicalwebteam/store_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
canonicalwebteam/store_api/base.py,sha256=
|
|
4
|
+
canonicalwebteam/store_api/base.py,sha256=DPJSqp25vk7905Rdebz449vUs2CWyo5b2titg1o_Fvc,2405
|
|
5
5
|
canonicalwebteam/store_api/dashboard.py,sha256=M5JLjTTahN-bfiVz9SuP6ahLjqEvOalwmNim6X5Ky6o,22796
|
|
6
6
|
canonicalwebteam/store_api/devicegw.py,sha256=YXmVXdHCZhukNHJq-eaFUCxa2VxqLT8qt19UrqgXGN0,9777
|
|
7
|
-
canonicalwebteam/store_api/publishergw.py,sha256=
|
|
8
|
-
canonicalwebteam_store_api-6.
|
|
9
|
-
canonicalwebteam_store_api-6.
|
|
10
|
-
canonicalwebteam_store_api-6.
|
|
11
|
-
canonicalwebteam_store_api-6.
|
|
7
|
+
canonicalwebteam/store_api/publishergw.py,sha256=BLA80XXIisPV30xpz8FGILN7nSy6QOlgZySjfJbBQfQ,28872
|
|
8
|
+
canonicalwebteam_store_api-6.5.0.dist-info/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
|
|
9
|
+
canonicalwebteam_store_api-6.5.0.dist-info/METADATA,sha256=PqpZZlEmH7DZ2DisNHDf6qjEO8PkPURC0D-UGInRlpk,2253
|
|
10
|
+
canonicalwebteam_store_api-6.5.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
11
|
+
canonicalwebteam_store_api-6.5.0.dist-info/RECORD,,
|
{canonicalwebteam_store_api-6.3.0.dist-info → canonicalwebteam_store_api-6.5.0.dist-info}/LICENSE
RENAMED
|
File without changes
|
{canonicalwebteam_store_api-6.3.0.dist-info → canonicalwebteam_store_api-6.5.0.dist-info}/WHEEL
RENAMED
|
File without changes
|