canonicalwebteam.store-api 4.12.0__tar.gz → 4.12.2__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.
- {canonicalwebteam_store_api-4.12.0 → canonicalwebteam_store_api-4.12.2}/PKG-INFO +1 -1
- {canonicalwebteam_store_api-4.12.0 → canonicalwebteam_store_api-4.12.2}/canonicalwebteam/store_api/stores/snapstore.py +4 -2
- {canonicalwebteam_store_api-4.12.0 → canonicalwebteam_store_api-4.12.2}/pyproject.toml +1 -1
- {canonicalwebteam_store_api-4.12.0 → canonicalwebteam_store_api-4.12.2}/LICENSE +0 -0
- {canonicalwebteam_store_api-4.12.0 → canonicalwebteam_store_api-4.12.2}/README.md +0 -0
- {canonicalwebteam_store_api-4.12.0 → canonicalwebteam_store_api-4.12.2}/canonicalwebteam/__init__.py +0 -0
- {canonicalwebteam_store_api-4.12.0 → canonicalwebteam_store_api-4.12.2}/canonicalwebteam/store_api/__init__.py +0 -0
- {canonicalwebteam_store_api-4.12.0 → canonicalwebteam_store_api-4.12.2}/canonicalwebteam/store_api/exceptions.py +0 -0
- {canonicalwebteam_store_api-4.12.0 → canonicalwebteam_store_api-4.12.2}/canonicalwebteam/store_api/publisher.py +0 -0
- {canonicalwebteam_store_api-4.12.0 → canonicalwebteam_store_api-4.12.2}/canonicalwebteam/store_api/store.py +0 -0
- {canonicalwebteam_store_api-4.12.0 → canonicalwebteam_store_api-4.12.2}/canonicalwebteam/store_api/stores/__init__.py +0 -0
- {canonicalwebteam_store_api-4.12.0 → canonicalwebteam_store_api-4.12.2}/canonicalwebteam/store_api/stores/charmstore.py +0 -0
|
@@ -272,6 +272,9 @@ class SnapPublisher(Publisher):
|
|
|
272
272
|
def get_package_metadata(self, publisher_auth, package_type, snap_name):
|
|
273
273
|
"""
|
|
274
274
|
Get general metadata for a package.
|
|
275
|
+
Documentation:
|
|
276
|
+
https://api.charmhub.io/docs/default.html#package_metadata
|
|
277
|
+
Endpoint: [GET] https://api.charmhub.io/v1/{package_type}/{snap_name}
|
|
275
278
|
Args:
|
|
276
279
|
publisher_auth: Serialized macaroon to consume the API.
|
|
277
280
|
package_type: Type of packages to obtain.
|
|
@@ -284,8 +287,7 @@ class SnapPublisher(Publisher):
|
|
|
284
287
|
),
|
|
285
288
|
headers=self._get_publisherwg_authorization_header(publisher_auth),
|
|
286
289
|
)
|
|
287
|
-
|
|
288
|
-
return self.process_response(response)["metadata"]
|
|
290
|
+
return response.json()
|
|
289
291
|
|
|
290
292
|
def unregister_package_name(self, publisher_auth, snap_name):
|
|
291
293
|
"""
|
|
File without changes
|
|
File without changes
|
{canonicalwebteam_store_api-4.12.0 → canonicalwebteam_store_api-4.12.2}/canonicalwebteam/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|