datashare-python 0.9.2__tar.gz → 0.9.4__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.
Files changed (28) hide show
  1. {datashare_python-0.9.2 → datashare_python-0.9.4}/PKG-INFO +1 -1
  2. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/logging_.py +3 -2
  3. datashare_python-0.9.4/datashare_python/worker-template.tar.gz +0 -0
  4. {datashare_python-0.9.2 → datashare_python-0.9.4}/pyproject.toml +1 -1
  5. datashare_python-0.9.2/datashare_python/worker-template.tar.gz +0 -0
  6. {datashare_python-0.9.2 → datashare_python-0.9.4}/.gitignore +0 -0
  7. {datashare_python-0.9.2 → datashare_python-0.9.4}/README.md +0 -0
  8. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/.gitignore +0 -0
  9. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/__init__.py +0 -0
  10. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/__main__.py +0 -0
  11. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/cli/__init__.py +0 -0
  12. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/cli/project.py +0 -0
  13. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/cli/task.py +0 -0
  14. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/cli/utils.py +0 -0
  15. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/cli/worker.py +0 -0
  16. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/config.py +0 -0
  17. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/conftest.py +0 -0
  18. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/constants.py +0 -0
  19. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/dependencies.py +0 -0
  20. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/discovery.py +0 -0
  21. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/exceptions.py +0 -0
  22. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/interceptors.py +0 -0
  23. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/objects.py +0 -0
  24. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/task_client.py +0 -0
  25. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/template.py +0 -0
  26. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/types_.py +0 -0
  27. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/utils.py +0 -0
  28. {datashare_python-0.9.2 → datashare_python-0.9.4}/datashare_python/worker.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datashare-python
3
- Version: 0.9.2
3
+ Version: 0.9.4
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/
@@ -68,7 +68,7 @@ class WorkerFilter(logging.Filter):
68
68
 
69
69
  def filter(self, record: logging.LogRecord) -> bool:
70
70
  if not hasattr(record, "message") and record.msg is not None:
71
- setattr(record, "msg", record.msg) # noqa: B010
71
+ setattr(record, "msg", record.getMessage()) # noqa: B010
72
72
  if self.worker_id is not None:
73
73
  record.worker_id = self.worker_id
74
74
  if workflow.in_workflow():
@@ -121,8 +121,9 @@ class LogFmtFormatter(logging.Formatter):
121
121
  record.exc_text = self.formatException(record.exc_info)
122
122
  logged["exc_info"] = record.exc_text
123
123
  for k, v in record.__dict__.items():
124
- if k in _LOGGED_ATTRIBUTES and k != "exc_info":
124
+ if k in _LOGGED_ATTRIBUTES and k not in {"exc_info", "msg"}:
125
125
  logged[k] = _encode_value(v)
126
+ logged["msg"] = _encode_value(record.getMessage())
126
127
  return " ".join(f"{k}={v}" for k, v in sorted(logged.items()))
127
128
 
128
129
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "datashare-python"
3
- version = "0.9.2"
3
+ version = "0.9.4"
4
4
  description = "Manage Python tasks and local resources in Datashare"
5
5
  authors = [
6
6
  { name = "Clément Doumouro", email = "cdoumouro@icij.org" },