datashare-python 0.10.8__tar.gz → 0.10.10__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.
- {datashare_python-0.10.8 → datashare_python-0.10.10}/PKG-INFO +1 -1
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/objects.py +8 -1
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/utils.py +2 -0
- datashare_python-0.10.10/datashare_python/worker-template.tar.gz +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/pyproject.toml +1 -1
- datashare_python-0.10.8/datashare_python/worker-template.tar.gz +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/.gitignore +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/README.md +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/.gitignore +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/__init__.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/__main__.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/cli/__init__.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/cli/project.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/cli/task.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/cli/utils.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/cli/worker.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/config.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/conftest.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/constants.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/dependencies.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/discovery.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/exceptions.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/interceptors.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/logging_.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/mimetypes_.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/task_client.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/template.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/types_.py +0 -0
- {datashare_python-0.10.8 → datashare_python-0.10.10}/datashare_python/worker.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: datashare-python
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.10
|
|
4
4
|
Summary: Manage Python tasks and local resources in Datashare
|
|
5
5
|
Project-URL: Homepage, https://icij.github.io/datashare-python/
|
|
6
6
|
Project-URL: Documentation, https://icij.github.io/datashare-python/
|
|
@@ -267,7 +267,14 @@ class Document(DatashareModel):
|
|
|
267
267
|
raise ValueError(
|
|
268
268
|
"can't compute filesystem path for document withtout metadata"
|
|
269
269
|
)
|
|
270
|
-
resource_name =
|
|
270
|
+
resource_name = self.metadata.get(TIKA_METADATA_RESOURCENAME)
|
|
271
|
+
if resource_name is None:
|
|
272
|
+
msg = (
|
|
273
|
+
f"doc {self} can't turn ES document into a {ProcessedFile.__name__} "
|
|
274
|
+
f"without tika metadata resources name in metadata: {self.metadata}"
|
|
275
|
+
)
|
|
276
|
+
raise ValueError(msg)
|
|
277
|
+
resource_name = cast(str, resource_name)
|
|
271
278
|
if self.root_document is None:
|
|
272
279
|
path = self.path
|
|
273
280
|
location = DocumentLocation.FILESYSTEM
|
|
@@ -735,12 +735,14 @@ class _PydanticPayloadConverter(CompositePayloadConverter):
|
|
|
735
735
|
try:
|
|
736
736
|
return super().from_payloads(payloads, type_hints)
|
|
737
737
|
except (TypeError, ValidationError) as e:
|
|
738
|
+
logger.exception("failing activity due to non retriable error")
|
|
738
739
|
raise fatal_error_from_exception(e) from e
|
|
739
740
|
|
|
740
741
|
def to_payloads(self, values: Sequence[Any]) -> list[Payload]:
|
|
741
742
|
try:
|
|
742
743
|
return super().to_payloads(values)
|
|
743
744
|
except (TypeError, ValidationError) as e:
|
|
745
|
+
logger.exception("failing activity due to non retriable error")
|
|
744
746
|
raise fatal_error_from_exception(e) from e
|
|
745
747
|
|
|
746
748
|
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|