Skip to content

Commit cfe40cc

Browse files
corentinmusardlukasbindreiter
authored andcommitted
Make cluster arguments optional (#190)
1 parent 98d920b commit cfe40cc

19 files changed

Lines changed: 87 additions & 74 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.36.1] - 2025-06-04
11+
12+
### Changed
13+
14+
- Changed the `runner` method of the `Client` to take an optional `cluster` argument. If not provided, the default cluster will be used.
15+
- Changed the `create_cron_automation` and `create_storage_event_automation` methods of the `AutomationClient` to take an optional `cluster` argument. If not provided, the default cluster will be used.
16+
- Changed the `submit` method of the `JobClient` to take an optional `cluster` argument. If not provided, the default cluster will be used.
17+
1018
## [0.36.0] - 2025-05-27
1119

1220
## Added
@@ -167,7 +175,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
167175
- Released packages: `tilebox-datasets`, `tilebox-workflows`, `tilebox-storage`, `tilebox-grpc`
168176

169177

170-
[Unreleased]: https://github.com/tilebox/tilebox-python/compare/v0.36.0...HEAD
178+
[Unreleased]: https://github.com/tilebox/tilebox-python/compare/v0.36.1...HEAD
179+
[0.36.1]: https://github.com/tilebox/tilebox-python/compare/v0.36.0...v0.36.1
171180
[0.36.0]: https://github.com/tilebox/tilebox-python/compare/v0.35.0...v0.36.0
172181
[0.35.0]: https://github.com/tilebox/tilebox-python/compare/v0.34.0...v0.35.0
173182
[0.34.0]: https://github.com/tilebox/tilebox-python/compare/v0.33.1...v0.34.0

tilebox-datasets/tilebox/datasets/datasetsv1/core_pb2.py

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tilebox-datasets/tilebox/datasets/datasetsv1/core_pb2.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from google.protobuf import timestamp_pb2 as _timestamp_pb2
21
from tilebox.datasets.datasetsv1 import dataset_type_pb2 as _dataset_type_pb2
2+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
33
from google.protobuf.internal import containers as _containers
44
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
55
from google.protobuf import descriptor as _descriptor

tilebox-datasets/tilebox/datasets/datasetsv1/dataset_type_pb2.py

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tilebox-datasets/tilebox/datasets/datasetsv1/dataset_type_pb2.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
from tilebox.datasets.datasetsv1 import well_known_types_pb2 as _well_known_types_pb2
12
from google.protobuf import descriptor_pb2 as _descriptor_pb2
23
from google.protobuf import timestamp_pb2 as _timestamp_pb2
3-
from tilebox.datasets.datasetsv1 import well_known_types_pb2 as _well_known_types_pb2
44
from google.protobuf.internal import containers as _containers
55
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
66
from google.protobuf import descriptor as _descriptor
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:fba40503e0395c345fbb429cad7a7063c2275c8f57b822dfc374387216495d42
3-
size 35157
2+
oid sha256:43960f4cd0782472294024a06cae56b1c77352be99f47b784a22d7cb7cdcc768
3+
size 9519
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:f75d492b9097dda0d39ecb1cd7310c11f409c4122991b95d3eca49679e34c750
3-
size 4207
2+
oid sha256:f7bd111411d39ad34dfec99dd45fd64bf630395d32260ef08a677790e18aa11a
3+
size 5629

tilebox-workflows/tests/tasks_data.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ def alphanumerical_text(draw: DrawFn, min_size: int = 1, max_size: int = 100) ->
4949
def clusters(draw: DrawFn) -> Cluster:
5050
"""A hypothesis strategy for generating random clusters"""
5151
slug = draw(alphanumerical_text(min_size=4, max_size=20))
52-
return Cluster(slug, draw(alphanumerical_text()))
52+
display_name = draw(alphanumerical_text())
53+
deletable = draw(booleans())
54+
return Cluster(slug, display_name, deletable)
5355

5456

5557
@composite

0 commit comments

Comments
 (0)