canonicalwebteam.store-api 4.12.0__tar.gz → 4.12.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: canonicalwebteam.store-api
3
- Version: 4.12.0
3
+ Version: 4.12.1
4
4
  Summary:
5
5
  License: LGPL-3.0
6
6
  Author: Canonical Web Team
@@ -272,6 +272,8 @@ 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: https://api.charmhub.io/docs/default.html#package_metadata
276
+ Endpoint: [GET] https://api.charmhub.io/v1/{package_type}/{snap_name}
275
277
  Args:
276
278
  publisher_auth: Serialized macaroon to consume the API.
277
279
  package_type: Type of packages to obtain.
@@ -284,8 +286,7 @@ class SnapPublisher(Publisher):
284
286
  ),
285
287
  headers=self._get_publisherwg_authorization_header(publisher_auth),
286
288
  )
287
-
288
- return self.process_response(response)["metadata"]
289
+ return response.json()
289
290
 
290
291
  def unregister_package_name(self, publisher_auth, snap_name):
291
292
  """
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = 'canonicalwebteam.store-api'
3
- version = '4.12.0'
3
+ version = '4.12.1'
4
4
  description = ''
5
5
  authors = ['Canonical Web Team <webteam@canonical.com>']
6
6
  license = 'LGPL-3.0'