Skip to content

Commit c4472ca

Browse files
committed
fix: update for build and give dt same version setup as other pkgs
Signed-off-by: Samantha Coyle <sam@diagrid.io>
1 parent f861543 commit c4472ca

26 files changed

Lines changed: 117 additions & 93 deletions

durabletask/internal/helpers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
from datetime import datetime
66
from typing import Optional
77

8-
from google.protobuf import timestamp_pb2, wrappers_pb2
9-
108
import durabletask.internal.protos as pb
9+
from google.protobuf import timestamp_pb2, wrappers_pb2
1110

1211
# TODO: The new_xxx_event methods are only used by test code and should be moved elsewhere
1312

durabletask/internal/history_events_pb2.py

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

durabletask/internal/history_events_pb2.pyi

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import datetime
2+
from collections.abc import Mapping as _Mapping
3+
from typing import ClassVar as _ClassVar
4+
from typing import Optional as _Optional
5+
from typing import Union as _Union
26

37
from durabletask.internal import orchestration_pb2 as _orchestration_pb2
8+
from google.protobuf import descriptor as _descriptor
9+
from google.protobuf import message as _message
410
from google.protobuf import timestamp_pb2 as _timestamp_pb2
511
from google.protobuf import wrappers_pb2 as _wrappers_pb2
612
from google.protobuf.internal import containers as _containers
7-
from google.protobuf import descriptor as _descriptor
8-
from google.protobuf import message as _message
9-
from collections.abc import Mapping as _Mapping
10-
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
1113

1214
DESCRIPTOR: _descriptor.FileDescriptor
1315

durabletask/internal/history_events_pb2_grpc.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
"""Client and server classes corresponding to protobuf-defined services."""
33

44
import grpc
5-
import warnings
6-
75

86
GRPC_GENERATED_VERSION = "1.75.1"
97
GRPC_VERSION = grpc.__version__
@@ -19,7 +17,7 @@
1917
if _version_not_supported:
2018
raise RuntimeError(
2119
f"The grpc package installed is at version {GRPC_VERSION},"
22-
+ f" but the generated code in durabletask/internal/history_events_pb2_grpc.py depends on"
20+
+ " but the generated code in durabletask/internal/history_events_pb2_grpc.py depends on"
2321
+ f" grpcio>={GRPC_GENERATED_VERSION}."
2422
+ f" Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}"
2523
+ f" or downgrade your generated code using grpcio-tools<={GRPC_VERSION}."

durabletask/internal/orchestration_pb2.py

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

durabletask/internal/orchestration_pb2.pyi

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import datetime
2+
from collections.abc import Iterable as _Iterable
3+
from collections.abc import Mapping as _Mapping
4+
from typing import ClassVar as _ClassVar
5+
from typing import Optional as _Optional
6+
from typing import Union as _Union
27

8+
from google.protobuf import descriptor as _descriptor
9+
from google.protobuf import message as _message
310
from google.protobuf import timestamp_pb2 as _timestamp_pb2
411
from google.protobuf import wrappers_pb2 as _wrappers_pb2
512
from google.protobuf.internal import containers as _containers
613
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
7-
from google.protobuf import descriptor as _descriptor
8-
from google.protobuf import message as _message
9-
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
10-
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
1114

1215
DESCRIPTOR: _descriptor.FileDescriptor
1316

durabletask/internal/orchestration_pb2_grpc.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
"""Client and server classes corresponding to protobuf-defined services."""
33

44
import grpc
5-
import warnings
6-
75

86
GRPC_GENERATED_VERSION = "1.75.1"
97
GRPC_VERSION = grpc.__version__
@@ -19,7 +17,7 @@
1917
if _version_not_supported:
2018
raise RuntimeError(
2119
f"The grpc package installed is at version {GRPC_VERSION},"
22-
+ f" but the generated code in durabletask/internal/orchestration_pb2_grpc.py depends on"
20+
+ " but the generated code in durabletask/internal/orchestration_pb2_grpc.py depends on"
2321
+ f" grpcio>={GRPC_GENERATED_VERSION}."
2422
+ f" Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}"
2523
+ f" or downgrade your generated code using grpcio-tools<={GRPC_VERSION}."

durabletask/internal/orchestrator_actions_pb2.py

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

durabletask/internal/orchestrator_actions_pb2.pyi

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
import datetime
2+
from collections.abc import Iterable as _Iterable
3+
from collections.abc import Mapping as _Mapping
4+
from typing import ClassVar as _ClassVar
5+
from typing import Optional as _Optional
6+
from typing import Union as _Union
27

3-
from durabletask.internal import orchestration_pb2 as _orchestration_pb2
48
from durabletask.internal import history_events_pb2 as _history_events_pb2
9+
from durabletask.internal import orchestration_pb2 as _orchestration_pb2
10+
from google.protobuf import descriptor as _descriptor
11+
from google.protobuf import message as _message
512
from google.protobuf import timestamp_pb2 as _timestamp_pb2
613
from google.protobuf import wrappers_pb2 as _wrappers_pb2
714
from google.protobuf.internal import containers as _containers
8-
from google.protobuf import descriptor as _descriptor
9-
from google.protobuf import message as _message
10-
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
11-
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
1215

1316
DESCRIPTOR: _descriptor.FileDescriptor
1417

durabletask/internal/orchestrator_actions_pb2_grpc.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
"""Client and server classes corresponding to protobuf-defined services."""
33

44
import grpc
5-
import warnings
6-
75

86
GRPC_GENERATED_VERSION = "1.75.1"
97
GRPC_VERSION = grpc.__version__
@@ -19,7 +17,7 @@
1917
if _version_not_supported:
2018
raise RuntimeError(
2119
f"The grpc package installed is at version {GRPC_VERSION},"
22-
+ f" but the generated code in durabletask/internal/orchestrator_actions_pb2_grpc.py depends on"
20+
+ " but the generated code in durabletask/internal/orchestrator_actions_pb2_grpc.py depends on"
2321
+ f" grpcio>={GRPC_GENERATED_VERSION}."
2422
+ f" Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}"
2523
+ f" or downgrade your generated code using grpcio-tools<={GRPC_VERSION}."

0 commit comments

Comments
 (0)