Skip to content

Commit 50283db

Browse files
authored
Merge branch 'main' into drop-3.8
2 parents abb91b7 + 3901cb7 commit 50283db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+7525
-804
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ temporalio/bridge/temporal_sdk_bridge*
88
/tests/helpers/golangworker/golangworker
99
/.idea
1010
/sdk-python.iml
11+
/.zed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ Some things to note about the above code:
680680

681681
#### Timers
682682

683-
* A timer is represented by normal `asyncio.sleep()`
683+
* A timer is represented by normal `asyncio.sleep()` or a `workflow.sleep()` call
684684
* Timers are also implicitly started on any `asyncio` calls with timeouts (e.g. `asyncio.wait_for`)
685685
* Timers are Temporal server timers, not local ones, so sub-second resolution rarely has value
686686
* Calls that use a specific point in time, e.g. `call_at` or `timeout_at`, should be based on the current loop time

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "temporalio"
3-
version = "1.8.0"
3+
version = "1.9.0"
44
description = "Temporal.io Python SDK"
55
license = "MIT"
66
authors = ["Temporal Technologies Inc <[email protected]>"]
@@ -131,6 +131,9 @@ before-all = "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stab
131131
before-build = "pip install protoc-wheel-0"
132132
environment = { PATH = "$PATH:$HOME/.cargo/bin", CARGO_NET_GIT_FETCH_WITH_CLI = "true" }
133133

134+
[tool.cibuildwheel.macos]
135+
environment = { MACOSX_DEPLOYMENT_TARGET = "10.12" }
136+
134137
[tool.mypy]
135138
ignore_missing_imports = true
136139
exclude = [

temporalio/api/cloud/account/__init__.py

Whitespace-only changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from .message_pb2 import Account, AccountSpec, Metrics, MetricsSpec
2+
3+
__all__ = [
4+
"Account",
5+
"AccountSpec",
6+
"Metrics",
7+
"MetricsSpec",
8+
]

temporalio/api/cloud/account/v1/message_pb2.py

Lines changed: 85 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
"""
2+
@generated by mypy-protobuf. Do not edit manually!
3+
isort:skip_file
4+
"""
5+
6+
import builtins
7+
import sys
8+
9+
import google.protobuf.descriptor
10+
import google.protobuf.message
11+
12+
import temporalio.api.cloud.resource.v1.message_pb2
13+
14+
if sys.version_info >= (3, 8):
15+
import typing as typing_extensions
16+
else:
17+
import typing_extensions
18+
19+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
20+
21+
class MetricsSpec(google.protobuf.message.Message):
22+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
23+
24+
ACCEPTED_CLIENT_CA_FIELD_NUMBER: builtins.int
25+
accepted_client_ca: builtins.bytes
26+
"""The ca cert(s) in PEM format that clients connecting to the metrics endpoint can use for authentication.
27+
This must only be one value, but the CA can have a chain.
28+
"""
29+
def __init__(
30+
self,
31+
*,
32+
accepted_client_ca: builtins.bytes = ...,
33+
) -> None: ...
34+
def ClearField(
35+
self,
36+
field_name: typing_extensions.Literal[
37+
"accepted_client_ca", b"accepted_client_ca"
38+
],
39+
) -> None: ...
40+
41+
global___MetricsSpec = MetricsSpec
42+
43+
class AccountSpec(google.protobuf.message.Message):
44+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
45+
46+
METRICS_FIELD_NUMBER: builtins.int
47+
@property
48+
def metrics(self) -> global___MetricsSpec:
49+
"""The metrics specification for this account.
50+
If not specified, metrics will not be enabled.
51+
"""
52+
def __init__(
53+
self,
54+
*,
55+
metrics: global___MetricsSpec | None = ...,
56+
) -> None: ...
57+
def HasField(
58+
self, field_name: typing_extensions.Literal["metrics", b"metrics"]
59+
) -> builtins.bool: ...
60+
def ClearField(
61+
self, field_name: typing_extensions.Literal["metrics", b"metrics"]
62+
) -> None: ...
63+
64+
global___AccountSpec = AccountSpec
65+
66+
class Metrics(google.protobuf.message.Message):
67+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
68+
69+
URI_FIELD_NUMBER: builtins.int
70+
uri: builtins.str
71+
"""The prometheus metrics endpoint uri.
72+
This is only populated when the metrics is enabled in the metrics specification.
73+
"""
74+
def __init__(
75+
self,
76+
*,
77+
uri: builtins.str = ...,
78+
) -> None: ...
79+
def ClearField(
80+
self, field_name: typing_extensions.Literal["uri", b"uri"]
81+
) -> None: ...
82+
83+
global___Metrics = Metrics
84+
85+
class Account(google.protobuf.message.Message):
86+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
87+
88+
ID_FIELD_NUMBER: builtins.int
89+
SPEC_FIELD_NUMBER: builtins.int
90+
RESOURCE_VERSION_FIELD_NUMBER: builtins.int
91+
STATE_FIELD_NUMBER: builtins.int
92+
ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int
93+
METRICS_FIELD_NUMBER: builtins.int
94+
id: builtins.str
95+
"""The id of the account."""
96+
@property
97+
def spec(self) -> global___AccountSpec:
98+
"""The account specification."""
99+
resource_version: builtins.str
100+
"""The current version of the account specification.
101+
The next update operation will have to include this version.
102+
"""
103+
state: temporalio.api.cloud.resource.v1.message_pb2.ResourceState.ValueType
104+
"""The current state of the account."""
105+
async_operation_id: builtins.str
106+
"""The id of the async operation that is updating the account, if any."""
107+
@property
108+
def metrics(self) -> global___Metrics:
109+
"""Information related to metrics."""
110+
def __init__(
111+
self,
112+
*,
113+
id: builtins.str = ...,
114+
spec: global___AccountSpec | None = ...,
115+
resource_version: builtins.str = ...,
116+
state: temporalio.api.cloud.resource.v1.message_pb2.ResourceState.ValueType = ...,
117+
async_operation_id: builtins.str = ...,
118+
metrics: global___Metrics | None = ...,
119+
) -> None: ...
120+
def HasField(
121+
self,
122+
field_name: typing_extensions.Literal["metrics", b"metrics", "spec", b"spec"],
123+
) -> builtins.bool: ...
124+
def ClearField(
125+
self,
126+
field_name: typing_extensions.Literal[
127+
"async_operation_id",
128+
b"async_operation_id",
129+
"id",
130+
b"id",
131+
"metrics",
132+
b"metrics",
133+
"resource_version",
134+
b"resource_version",
135+
"spec",
136+
b"spec",
137+
"state",
138+
b"state",
139+
],
140+
) -> None: ...
141+
142+
global___Account = Account

0 commit comments

Comments
 (0)