cmem-client 0.7.1__py3-none-any.whl → 0.8.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.
- cmem_client/repositories/protocols/create_item.py +1 -0
- cmem_client/repositories/protocols/delete_item.py +1 -1
- cmem_client/repositories/protocols/export_item.py +1 -0
- cmem_client/repositories/protocols/import_item.py +1 -0
- {cmem_client-0.7.1.dist-info → cmem_client-0.8.0.dist-info}/METADATA +1 -1
- {cmem_client-0.7.1.dist-info → cmem_client-0.8.0.dist-info}/RECORD +8 -8
- {cmem_client-0.7.1.dist-info → cmem_client-0.8.0.dist-info}/WHEEL +1 -1
- {cmem_client-0.7.1.dist-info → cmem_client-0.8.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -81,6 +81,7 @@ class CreateItemProtocol(Protocol[ItemType, CreateItemConfig_contra]):
|
|
|
81
81
|
response = self._create_item(item)
|
|
82
82
|
if isinstance(response, Response):
|
|
83
83
|
self.raise_modification_error(response)
|
|
84
|
+
self.logger.info("Repository item '%s' created.", item.get_id())
|
|
84
85
|
self.fetch_data()
|
|
85
86
|
|
|
86
87
|
def raise_modification_error(self, response: Response) -> None:
|
|
@@ -76,7 +76,7 @@ class DeleteItemProtocol(Protocol[ItemType, DeleteItemConfig_contra]):
|
|
|
76
76
|
self._delete_item(key=key, configuration=configuration)
|
|
77
77
|
except HTTPError as error:
|
|
78
78
|
raise RepositoryModificationError(f"Error on deleting repository item '{key}'.") from error
|
|
79
|
-
|
|
79
|
+
self.logger.info("Repository item '%s' deleted.", key)
|
|
80
80
|
del self._dict[key]
|
|
81
81
|
|
|
82
82
|
@abstractmethod
|
|
@@ -86,6 +86,7 @@ class ExportItemProtocol(Protocol[ItemType, ExportItemConfig_contra]):
|
|
|
86
86
|
raise RepositoryReadError(
|
|
87
87
|
f"Repository export returned different path than requested: '{path}' != `{new_path}`"
|
|
88
88
|
)
|
|
89
|
+
self.logger.info("Repository item '%s' exported.", key)
|
|
89
90
|
if path:
|
|
90
91
|
return path
|
|
91
92
|
|
|
@@ -122,6 +122,7 @@ class ImportItemProtocol(Protocol[ItemType, ImportItemConfig_contra]):
|
|
|
122
122
|
)
|
|
123
123
|
if key and key not in self._dict:
|
|
124
124
|
raise RepositoryModificationError(f"Repository item '{key}' not there after import.")
|
|
125
|
+
self.logger.info("Repository item '%s' imported.", key)
|
|
125
126
|
if key:
|
|
126
127
|
return key
|
|
127
128
|
return new_key
|
|
@@ -42,13 +42,13 @@ cmem_client/repositories/graphs.py,sha256=BjeC-BW3jzJSO-zNYo_b9a1S0Xi6EaNzVSlpYy
|
|
|
42
42
|
cmem_client/repositories/marketplace_packages.py,sha256=fzbuw4aZH69Y0togyzWIPjUvJqcxepkeLFFDd_rzbx4,26620
|
|
43
43
|
cmem_client/repositories/projects.py,sha256=aY35uw1wp_ocV-WKh3ouFBClkBB5MTsQaKC1cZ95RY8,8642
|
|
44
44
|
cmem_client/repositories/protocols/__init__.py,sha256=qXSmMthpY6Tp9FpLZP32GM4cERDflTZoWpSCrEQHNcc,656
|
|
45
|
-
cmem_client/repositories/protocols/create_item.py,sha256=
|
|
46
|
-
cmem_client/repositories/protocols/delete_item.py,sha256=
|
|
47
|
-
cmem_client/repositories/protocols/export_item.py,sha256=
|
|
48
|
-
cmem_client/repositories/protocols/import_item.py,sha256=
|
|
45
|
+
cmem_client/repositories/protocols/create_item.py,sha256=mwQNnxZbRv0XkzKJ7gKEuetqTHoQdaa6AGsG9rgTCQc,4844
|
|
46
|
+
cmem_client/repositories/protocols/delete_item.py,sha256=QymEckCgCSbLXmVA_-tBOGWt6iXmyALxn66BXa-baKc,3493
|
|
47
|
+
cmem_client/repositories/protocols/export_item.py,sha256=k7k6N-P-CETkyihk5f_2MQoZm2Hr3FLtYz1oJYNm5nI,4257
|
|
48
|
+
cmem_client/repositories/protocols/import_item.py,sha256=vFDRkH_P_GtMx8u99NToRbOGyJMJd8nE_oGB9F5Dt1A,5772
|
|
49
49
|
cmem_client/repositories/python_packages.py,sha256=Hs5ydf2nb4JW8j_jtjju4VgyUidBrlIZkJBzHVrQQFY,2470
|
|
50
50
|
cmem_client/repositories/workflows.py,sha256=ZTlKIwQXGgad96UKa6Ic1wh3Xhpy6KIOR2LolGW519U,4893
|
|
51
|
-
cmem_client-0.
|
|
52
|
-
cmem_client-0.
|
|
53
|
-
cmem_client-0.
|
|
54
|
-
cmem_client-0.
|
|
51
|
+
cmem_client-0.8.0.dist-info/METADATA,sha256=vtDdWgswKBNhp1xxW3zzxXiucoQTon5RLSm1co63gj4,2916
|
|
52
|
+
cmem_client-0.8.0.dist-info/WHEEL,sha256=kJCRJT_g0adfAJzTx2GUMmS80rTJIVHRCfG0DQgLq3o,88
|
|
53
|
+
cmem_client-0.8.0.dist-info/licenses/LICENSE,sha256=5t6lcWcFU3TBO5wwq9PYNbgzfVfFUuL-80v5BTGuuMQ,11334
|
|
54
|
+
cmem_client-0.8.0.dist-info/RECORD,,
|
|
File without changes
|