digitalhub 0.11.0b5__py3-none-any.whl → 0.11.0b6__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.

Potentially problematic release.


This version of digitalhub might be problematic. Click here for more details.

@@ -128,8 +128,12 @@ class ContextEntityOperationsProcessor:
128
128
  try:
129
129
  new_obj.upload(source)
130
130
  uploaded = True
131
- except Exception:
131
+ msg = None
132
+ except Exception as e:
132
133
  uploaded = False
134
+ msg = str(e)
135
+
136
+ new_obj.status.message = msg
133
137
 
134
138
  # Update status after upload
135
139
  if uploaded:
@@ -138,6 +142,7 @@ class ContextEntityOperationsProcessor:
138
142
  else:
139
143
  new_obj.status.state = State.ERROR.value
140
144
  new_obj = self._update_material_entity(new_obj)
145
+ raise EntityError(msg)
141
146
 
142
147
  return new_obj
143
148
 
@@ -649,8 +649,8 @@ class S3Store(Store):
649
649
  """
650
650
  try:
651
651
  client.head_bucket(Bucket=bucket)
652
- except (ClientError, NoCredentialsError):
653
- raise StoreError("No access to s3 bucket!")
652
+ except (ClientError, NoCredentialsError) as err:
653
+ raise StoreError(f"No access to s3 bucket! Error: {err}")
654
654
 
655
655
  @staticmethod
656
656
  def _get_key(path: str) -> str:
@@ -190,7 +190,7 @@ def get_file_info_from_s3(path: str, metadata: dict) -> None | dict:
190
190
  if size < file_size_limit_multipart:
191
191
  file_hash = "md5:" + file_hash
192
192
  else:
193
- file_hash = "LiteralETag:" + file_hash
193
+ file_hash = "ETag:" + file_hash
194
194
 
195
195
  name = get_path_name(path)
196
196
  content_type = metadata["ContentType"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: digitalhub
3
- Version: 0.11.0b5
3
+ Version: 0.11.0b6
4
4
  Summary: Python SDK for Digitalhub
5
5
  Project-URL: Homepage, https://github.com/scc-digitalhub/digitalhub-sdk
6
6
  Author-email: Fondazione Bruno Kessler <dslab@fbk.eu>, Matteo Martini <mmartini@fbk.eu>
@@ -43,7 +43,7 @@ digitalhub/entities/_commons/types.py,sha256=bwK-2iQHL2gdtOPfRcXWBRWqqS1Tic6ywRQ
43
43
  digitalhub/entities/_commons/utils.py,sha256=354ZL5wKvijJ2A25pM0xK5JMhgTyZF6urjHZNjosINI,1846
44
44
  digitalhub/entities/_processors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
45
  digitalhub/entities/_processors/base.py,sha256=K_XfwgzsYWKMQ5Que1C_oTwQU67jQJPbA98g26OND58,13440
46
- digitalhub/entities/_processors/context.py,sha256=D6X9l6ZSnsqi94h93IiyyCLahayUcvYAEXaqlfu6SUA,34445
46
+ digitalhub/entities/_processors/context.py,sha256=euGE8yM2nthFbq7PNcTUjGIR5kHNCmOyNM1m7u957No,34571
47
47
  digitalhub/entities/_processors/utils.py,sha256=byhWUv3CfaS-RNPu5FdOdNNCakaKh5zNQFziJvwZdkY,3791
48
48
  digitalhub/entities/artifact/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
49
  digitalhub/entities/artifact/crud.py,sha256=smyZLWfkBEH1pxwFJXhoqfFpLrKeeWTqXmahyPj8QAY,7983
@@ -223,7 +223,7 @@ digitalhub/stores/data/remote/store.py,sha256=9KCFk8Fz1Mr7AK8gEITMh2sMw_jQldNPaV
223
223
  digitalhub/stores/data/s3/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
224
224
  digitalhub/stores/data/s3/configurator.py,sha256=QowR285g3FBY6IktTLq0e8Y3XJdXL_eutzfM2mumLY8,3648
225
225
  digitalhub/stores/data/s3/enums.py,sha256=lgqcuCMbO00Ic8thcELifoebUL5Zqn1hb6hkos1v8ps,364
226
- digitalhub/stores/data/s3/store.py,sha256=BXyMdDjF_bj2TqAx5RSXrzWKIGE7PMObFSqEp1n-ZPo,19664
226
+ digitalhub/stores/data/s3/store.py,sha256=2DXDywVRFMoU24FWHXcqIToP9ZU2JikuabdbWAwLi0s,19685
227
227
  digitalhub/stores/data/s3/utils.py,sha256=vkgYL9auoyvPtWay50biIfSJ1T4gZT4CmpJdq83L4t8,1650
228
228
  digitalhub/stores/data/sql/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
229
229
  digitalhub/stores/data/sql/configurator.py,sha256=VCGukcuVpHDWHdL-hv4aPzyOXlhk-4tkjgIcfEIPXDM,3230
@@ -243,14 +243,14 @@ digitalhub/stores/readers/query/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
243
243
  digitalhub/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
244
244
  digitalhub/utils/enums.py,sha256=BjsLkUQ15W3KYTRYd0kuut77jTNMDBtTfJbixMReEew,269
245
245
  digitalhub/utils/exceptions.py,sha256=CGiRXx6OvYpjg6d9yEn2OvyfF0FA5n1l8uH6loCDoAY,1233
246
- digitalhub/utils/file_utils.py,sha256=qRb0ETNaQKwBlF5iwflDFlkrku5TvJXHHhxgHtAeS9w,5117
246
+ digitalhub/utils/file_utils.py,sha256=D6h8yt52nJMn_3Y3NDQM1waPCRM_zE48N2eJjyJmbjQ,5110
247
247
  digitalhub/utils/generic_utils.py,sha256=gyFCRvujBreTarv7YCWbQ4WnFBPOeE3pNoaqvGVnrhw,5561
248
248
  digitalhub/utils/git_utils.py,sha256=6vnZoJnL6uMZj0ZtHj3Tf-NYJsw3V9yitTJooSaFYEg,3407
249
249
  digitalhub/utils/io_utils.py,sha256=8jD4Rp_b7LZEpY5JSMxVUowZsnifKnbGpHT5Hijx9-g,3299
250
250
  digitalhub/utils/logger.py,sha256=ml3ne6D8wuRdNZ4F6ywmvWotSxjmZWnmKgNiuHb4R5M,437
251
251
  digitalhub/utils/types.py,sha256=x8zXsbivD8vdaNeNRZLKOPvGbz6d-59nncuvO0FsueY,109
252
252
  digitalhub/utils/uri_utils.py,sha256=wVkA2OcfHG5EcQOr9YxLJzo--VV6sjFjgXDNx-gP94I,4021
253
- digitalhub-0.11.0b5.dist-info/METADATA,sha256=0mlxcxa7sNYnJt6u6wcf4j2ygQ-JRQJ4QqP1edQQBX8,15037
254
- digitalhub-0.11.0b5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
255
- digitalhub-0.11.0b5.dist-info/licenses/LICENSE.txt,sha256=qmrTTXPlgU0kSRlRVbjhlyGs1IXs2QPxo_Y-Mn06J0k,11589
256
- digitalhub-0.11.0b5.dist-info/RECORD,,
253
+ digitalhub-0.11.0b6.dist-info/METADATA,sha256=smZg332rpxDxzwAon79H6fxpKN-U82T-wLN8xQTO0sk,15037
254
+ digitalhub-0.11.0b6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
255
+ digitalhub-0.11.0b6.dist-info/licenses/LICENSE.txt,sha256=qmrTTXPlgU0kSRlRVbjhlyGs1IXs2QPxo_Y-Mn06J0k,11589
256
+ digitalhub-0.11.0b6.dist-info/RECORD,,