wherobots-python-sdk 0.9.0__tar.gz → 0.9.1__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 (58) hide show
  1. {wherobots_python_sdk-0.9.0/wherobots_python_sdk.egg-info → wherobots_python_sdk-0.9.1}/PKG-INFO +1 -1
  2. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/pyproject.toml +9 -6
  3. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_tasks.py +11 -0
  4. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/__version__.py +1 -1
  5. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/models/_generated.py +1 -1
  6. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1/wherobots_python_sdk.egg-info}/PKG-INFO +1 -1
  7. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/LICENSE +0 -0
  8. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/README.md +0 -0
  9. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/setup.cfg +0 -0
  10. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_api.py +0 -0
  11. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_base_client.py +0 -0
  12. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_client.py +0 -0
  13. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_client_header.py +0 -0
  14. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_config.py +0 -0
  15. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_enums.py +0 -0
  16. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_exceptions.py +0 -0
  17. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_files_api.py +0 -0
  18. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_files_drive.py +0 -0
  19. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_init_exports.py +0 -0
  20. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_integration.py +0 -0
  21. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_live_contract.py +0 -0
  22. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_logger.py +0 -0
  23. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_models.py +0 -0
  24. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_regressions.py +0 -0
  25. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_security.py +0 -0
  26. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_spec_contract.py +0 -0
  27. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_task_run_wait.py +0 -0
  28. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_utils.py +0 -0
  29. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_wire.py +0 -0
  30. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/tests/test_workload_auth.py +0 -0
  31. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/__init__.py +0 -0
  32. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/_wire.py +0 -0
  33. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/api/__init__.py +0 -0
  34. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/api/_operations.py +0 -0
  35. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/api/base.py +0 -0
  36. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/api/drive.py +0 -0
  37. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/api/files.py +0 -0
  38. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/api/runs.py +0 -0
  39. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/api/tasks.py +0 -0
  40. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/api/workload_auth.py +0 -0
  41. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/client.py +0 -0
  42. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/config.py +0 -0
  43. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/enums/__init__.py +0 -0
  44. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/enums/_generated.py +0 -0
  45. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/enums/_handwritten.py +0 -0
  46. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/exceptions.py +0 -0
  47. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/models/__init__.py +0 -0
  48. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/models/_handwritten.py +0 -0
  49. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/py.typed +0 -0
  50. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/sdk.py +0 -0
  51. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/utils/__init__.py +0 -0
  52. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/utils/client_header.py +0 -0
  53. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/utils/logger.py +0 -0
  54. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots/utils/validation.py +0 -0
  55. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots_python_sdk.egg-info/SOURCES.txt +0 -0
  56. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots_python_sdk.egg-info/dependency_links.txt +0 -0
  57. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots_python_sdk.egg-info/requires.txt +0 -0
  58. {wherobots_python_sdk-0.9.0 → wherobots_python_sdk-0.9.1}/wherobots_python_sdk.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wherobots-python-sdk
3
- Version: 0.9.0
3
+ Version: 0.9.1
4
4
  Summary: Python SDK for Wherobots (currently covers the Jobs REST API)
5
5
  Author-email: Wherobots <support@wherobots.com>
6
6
  License-Expression: Apache-2.0
@@ -41,13 +41,13 @@ dev = [
41
41
  "pytest==9.2.0",
42
42
  "pytest-cov==7.1.0",
43
43
  "pytest-mock==3.17.0",
44
- "ruff==0.17.3",
45
- "pyrefly==1.4.0",
46
- "import-linter==2.15",
44
+ "ruff==0.17.5",
45
+ "pyrefly==1.4.1",
46
+ "import-linter==2.16",
47
47
  "pre-commit==4.7.0",
48
- "hypothesis==6.170.14",
49
- "cosmic-ray==8.7.0",
50
- "ast-grep-cli==0.51.1",
48
+ "hypothesis==6.170.15",
49
+ "cosmic-ray==8.9.0",
50
+ "ast-grep-cli==0.51.3",
51
51
  "types-requests==2.33.0.20261030",
52
52
  ]
53
53
 
@@ -123,3 +123,6 @@ markers = [
123
123
  "integration: live API tests requiring WHEROBOTS_API_KEY (deselected by default)",
124
124
  "off_contract: feeds a response the spec forbids, so skip the spec_contract fixture",
125
125
  ]
126
+
127
+ [tool.uv]
128
+ exclude-newer = "14 days"
@@ -227,6 +227,17 @@ def test_logs_pass_since_and_keep_nanosecond_timestamps(session):
227
227
 
228
228
 
229
229
  # Off contract because `units` is an integer on production and a decimal string on staging.
230
+ @pytest.mark.off_contract # The spec gains null when the API ships it (WBC-2038).
231
+ def test_get_task_run_reads_a_null_cached_flag_while_the_run_is_going(session):
232
+ body = TASK_RUN | {"state": "RUNNING", "endedAt": None, "cached": None}
233
+ wb = _wb(session, body=body)
234
+
235
+ run = wb.task_runs.get("tr_1")
236
+
237
+ assert run.cached is None
238
+ assert run.is_active
239
+
240
+
230
241
  @pytest.mark.off_contract
231
242
  @pytest.mark.parametrize("units", [11, "1.333333"])
232
243
  def test_cost_is_a_decimal(session, units):
@@ -1,5 +1,5 @@
1
1
  """Version information."""
2
2
 
3
- __version__ = "0.9.0"
3
+ __version__ = "0.9.1"
4
4
  __author__ = "Wherobots"
5
5
  __email__ = "support@wherobots.com"
@@ -614,7 +614,7 @@ class TaskRun(TaskRunDetailBehavior, WireModel):
614
614
 
615
615
  batch_kind: BatchKind | None = dc.field(default=None, metadata={"wire": "batchKind"})
616
616
  batch_time: datetime | None = dc.field(default=None, metadata={"wire": "batchTime"})
617
- cached: bool = dc.field(default=False, metadata={"wire": "cached"})
617
+ cached: bool | None = dc.field(default=False, metadata={"wire": "cached"})
618
618
  cancel_requested_at: datetime | None = dc.field(
619
619
  default=None, metadata={"wire": "cancelRequestedAt"}
620
620
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wherobots-python-sdk
3
- Version: 0.9.0
3
+ Version: 0.9.1
4
4
  Summary: Python SDK for Wherobots (currently covers the Jobs REST API)
5
5
  Author-email: Wherobots <support@wherobots.com>
6
6
  License-Expression: Apache-2.0