Skip to content

Commit 978606c

Browse files
Allow nested dataclasses inside lists, tuples and dicts as task args (#5)
1 parent 459cd73 commit 978606c

File tree

19 files changed

+403
-231
lines changed

19 files changed

+403
-231
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: end-of-file-fixer
77
- repo: https://github.com/charliermarsh/ruff-pre-commit
88
# keep the version here in sync with the version in uv.lock
9-
rev: "v0.11.13"
9+
rev: "v0.12.0"
1010
hooks:
1111
- id: ruff-check
1212
args: [--fix, --exit-non-zero-on-fix]

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"python.analysis.autoImportCompletions": true,
1818
"python.analysis.typeCheckingMode": "standard",
1919
"python.testing.pytestArgs": [
20-
"tilebox-datasets"
20+
"tilebox-workflows"
2121
],
2222
"search.useGlobalIgnoreFiles": false,
2323
"search.useIgnoreFiles": true

CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [0.38.0] - 2025-06-24
11+
1012
### Added
1113

1214
- `tilebox-datasets`: Added `delete_collection` method to `DatasetClient` to delete a collection.
15+
- `tilebox-workflows`: Added support for nested dataclasses and protobuf messages inside a `list`, `dict` or `tuple`
16+
as task arguments.
1317

1418
## [0.37.1] - 2025-06-10
1519

@@ -194,7 +198,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
194198
- Released packages: `tilebox-datasets`, `tilebox-workflows`, `tilebox-storage`, `tilebox-grpc`
195199

196200

197-
[Unreleased]: https://github.com/tilebox/tilebox-python/compare/v0.37.1...HEAD
201+
[Unreleased]: https://github.com/tilebox/tilebox-python/compare/v0.38.0...HEAD
202+
[0.38.0]: https://github.com/tilebox/tilebox-python/compare/v0.37.1...v0.38.0
198203
[0.37.1]: https://github.com/tilebox/tilebox-python/compare/v0.37.0...v0.37.1
199204
[0.37.0]: https://github.com/tilebox/tilebox-python/compare/v0.36.1...v0.37.0
200205
[0.36.1]: https://github.com/tilebox/tilebox-python/compare/v0.36.0...v0.36.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
# Tilebox Python
3333

34-
Python clients for [Tilebox](https://tilebox.com) - a framework for space data management and workflow orchestration.
34+
Python library for [Tilebox](https://tilebox.com), a lightweight space data management and orchestration software - on ground and in orbit.
3535

3636
## Install
3737

tilebox-datasets/tests/data/test_time_interval.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ def test_time_interval_to_half_open_preserves_eq(interval: TimeInterval) -> None
4444
assert interval.to_half_open() == interval
4545

4646

47+
@given(time_intervals())
48+
def test_time_interval_to_half_open_preserves_hash(interval: TimeInterval) -> None:
49+
"""Assert that converting a time interval to a half-open interval preserves hash equality"""
50+
assert hash(interval.to_half_open()) == hash(interval)
51+
52+
4753
@given(time_intervals())
4854
def test_time_interval_repr(interval: TimeInterval) -> None:
4955
"""Assert the repr of a time interval is as expected"""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:8072337bacb7142d3c501c7bc6be339d6bb84c3528ce524896d167bf9af36648
2+
oid sha256:5234a799245c656e37e16e249f6212b0c7a48021d9a2fbc7a672375d7354a57c
33
size 10004
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:4d42759c7a576103c0f27b7ca099fa5bee57e82f1132b61773e20ec30a58b907
3-
size 51373
2+
oid sha256:b090da550257de86055244f03cedb98cb09a88a3551664ab9d8ebbd8641e3441
3+
size 57645
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:051d73203c97c307b17339d6f40e878684c979286ccfd57c659211debd41954b
2+
oid sha256:0f928b7432ffedbd3896a89a7ff5e714eae7be5a4b01bc217bfc5fd6799abff8
33
size 9154
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:8ed6af9697d66efc75fc996a6bcd37639716f458d8ddee7373e4bd29ae7e9994
2+
oid sha256:ef04121a4e99f85a25513d0933823b1c271a367b575dece8959be080c85e456d
33
size 903956
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:fdb9d76547b77c03c477faa991411d5a3bd0ee1887e350be7400e59e777f84dc
2+
oid sha256:a5fee0adc442645fb623f35d133681f34003690f582d532f486ecd91f59cc67b
33
size 873354

0 commit comments

Comments
 (0)