canonicalwebteam.store-api 4.11.0__py3-none-any.whl → 4.11.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.
@@ -81,7 +81,7 @@ class Publisher:
81
81
  )
82
82
 
83
83
  return {
84
- "Authorization": f"Macaroon root={root}, discharge={bound}"
84
+ "Authorization": f"macaroon root={root}, discharge={bound}"
85
85
  }
86
86
  # With Candid the header is Macaroons
87
87
  elif "macaroons" in session:
@@ -227,6 +227,24 @@ class SnapPublisher(Publisher):
227
227
  )
228
228
  return response
229
229
 
230
+ def unregister_package_name(self, publisher_auth, snap_name):
231
+ """
232
+ Unregister a package name.
233
+
234
+ Args:
235
+ publisher_auth: Serialized macaroon to consume the API.
236
+ name: Name of the package to unregister
237
+ Returns:
238
+ The package name ID if successful
239
+ Otherwise, returns an error list
240
+ """
241
+ url = self.get_publisherwg_endpoint_url(f"snap/{snap_name}")
242
+ response = self.session.delete(
243
+ url=url,
244
+ headers=self._get_authorization_header(publisher_auth),
245
+ )
246
+ return response
247
+
230
248
 
231
249
  class SnapStoreAdmin(SnapPublisher):
232
250
  def get_endpoint_url(self, endpoint, api_version=2):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: canonicalwebteam.store-api
3
- Version: 4.11.0
3
+ Version: 4.11.1
4
4
  Summary:
5
5
  License: LGPL-3.0
6
6
  Author: Canonical Web Team
@@ -1,12 +1,12 @@
1
1
  canonicalwebteam/__init__.py,sha256=ED6jHcYiuYpr_0vjGz0zx2lrrmJT9sDJCzIljoDfmlM,65
2
2
  canonicalwebteam/store_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  canonicalwebteam/store_api/exceptions.py,sha256=A49LRhiEIfXNB2zC-zNcZEcdh0ugw6G7fBbXbs-BWxA,1517
4
- canonicalwebteam/store_api/publisher.py,sha256=c3zvfp8tbplsju5MLb2Zc5uCldj8fiHcbX1ZD0o9Cfo,10632
4
+ canonicalwebteam/store_api/publisher.py,sha256=9Ru9Lkrb5BlTAIzQnGv8zQTAi-6PUqxFeo__ocug1C0,10632
5
5
  canonicalwebteam/store_api/store.py,sha256=dyz3afMF_mTr3k6oAx5pBU0U8zRLIFYYgO-BUa62mj4,6249
6
6
  canonicalwebteam/store_api/stores/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  canonicalwebteam/store_api/stores/charmstore.py,sha256=ffAaL9WkTkwG1S1DypU2pzqTME_u7bU78UUJwEiDI6A,11533
8
- canonicalwebteam/store_api/stores/snapstore.py,sha256=spvxciOc_nifHFmsS7q6wNNhXj3UtFUEjVDwaEicrQQ,16458
9
- canonicalwebteam_store_api-4.11.0.dist-info/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
10
- canonicalwebteam_store_api-4.11.0.dist-info/METADATA,sha256=PpsG39-MhT0cRdlJATILBfFzdlOFKh0De40ivaG3luk,2265
11
- canonicalwebteam_store_api-4.11.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
12
- canonicalwebteam_store_api-4.11.0.dist-info/RECORD,,
8
+ canonicalwebteam/store_api/stores/snapstore.py,sha256=ry5XYZAXtm4JwwZcQNfrfWTFGGt_BgpH3u9lpR0fyxQ,17059
9
+ canonicalwebteam_store_api-4.11.1.dist-info/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
10
+ canonicalwebteam_store_api-4.11.1.dist-info/METADATA,sha256=ZfffE3XtAuf7G8-l7z3tQOpxgaHqr001DrTIJIONmbE,2265
11
+ canonicalwebteam_store_api-4.11.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
12
+ canonicalwebteam_store_api-4.11.1.dist-info/RECORD,,