Skip to content

Commit e23974c

Browse files
authored
Merge branch 'main' into olitomlinson-patch-1
2 parents 1978bac + de3eef6 commit e23974c

97 files changed

Lines changed: 9335 additions & 5396 deletions

File tree

Some content is hidden

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

.github/workflows/build-push-to-main.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,10 @@ jobs:
113113
cd ext/dapr-ext-langgraph
114114
python setup.py sdist bdist_wheel
115115
twine upload dist/*
116+
- name: Build and publish dapr-ext-strands
117+
env:
118+
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
119+
run: |
120+
cd ext/dapr-ext-strands
121+
python setup.py sdist bdist_wheel
122+
twine upload dist/*

.github/workflows/build-tag.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
- grpc-v*
99
- flask-v*
1010
- fastapi-v*
11+
- langgraph-v*
12+
- strands-v*
1113
workflow_dispatch:
1214

1315
jobs:
@@ -123,3 +125,11 @@ jobs:
123125
cd ext/dapr-ext-langgraph
124126
python setup.py sdist bdist_wheel
125127
twine upload dist/*
128+
- name: Build and publish dapr-ext-strands
129+
if: startsWith(github.ref_name, 'strands-v')
130+
env:
131+
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
132+
run: |
133+
cd ext/dapr-ext-strands
134+
python setup.py sdist bdist_wheel
135+
twine upload dist/*

.github/workflows/fossa.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ on:
2626
- grpc-v*
2727
- flask-v*
2828
- fastapi-v*
29+
- langgraph-v*
30+
- strands-v*
2931
pull_request:
3032
branches:
3133
- main

.github/workflows/validate_examples.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
- grpc-v*
1212
- fastapi-v*
1313
- flask-v*
14+
- langgraph-v*
15+
- strands-v*
1416
pull_request:
1517
branches:
1618
- main

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ pip3 install -e ./ext/dapr-ext-grpc/
8787
pip3 install -e ./ext/dapr-ext-fastapi/
8888
pip3 install -e ./ext/dapr-ext-workflow/
8989
pip3 install -e ./ext/dapr-ext-langgraph/
90+
pip3 install -e ./ext/dapr-ext-strands/
9091
```
9192

9293
3. Install required packages

dapr/aio/clients/grpc/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
from dapr.conf import settings
9797
from dapr.conf.helpers import GrpcEndpoint
9898
from dapr.proto import api_service_v1, api_v1, common_v1
99-
from dapr.proto.runtime.v1.dapr_pb2 import UnsubscribeConfigurationResponse
10099
from dapr.version import __version__
101100

102101

@@ -1206,7 +1205,9 @@ async def unsubscribe_configuration(self, store_name: str, id: str) -> bool:
12061205
bool: True if unsubscribed successfully, False otherwise
12071206
"""
12081207
req = api_v1.UnsubscribeConfigurationRequest(store_name=store_name, id=id)
1209-
response: UnsubscribeConfigurationResponse = await self._stub.UnsubscribeConfiguration(req)
1208+
response: api_v1.UnsubscribeConfigurationResponse = (
1209+
await self._stub.UnsubscribeConfiguration(req)
1210+
)
12101211
return response.ok
12111212

12121213
async def try_lock(

dapr/clients/grpc/_jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def _get_proto(self):
119119
"""
120120
from google.protobuf.any_pb2 import Any as GrpcAny
121121

122-
from dapr.proto.runtime.v1 import dapr_pb2 as api_v1
122+
from dapr.proto import api_v1
123123

124124
# Build the job proto
125125
job_proto = api_v1.Job(name=self.name)

dapr/clients/grpc/client.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
from dapr.conf import settings
9090
from dapr.conf.helpers import GrpcEndpoint
9191
from dapr.proto import api_service_v1, api_v1, common_v1
92-
from dapr.proto.runtime.v1.dapr_pb2 import UnsubscribeConfigurationResponse
9392
from dapr.version import __version__
9493

9594

@@ -501,9 +500,6 @@ def subscribe(
501500
topic (str): The name of the topic.
502501
metadata (Optional[MetadataTuple]): Additional metadata for the subscription.
503502
dead_letter_topic (Optional[str]): Name of the dead-letter topic.
504-
timeout (Optional[int]): The time in seconds to wait for a message before returning None
505-
If not set, the `next_message` method will block indefinitely
506-
until a message is received.
507503
508504
Returns:
509505
Subscription: The Subscription object managing the stream.
@@ -529,9 +525,6 @@ def subscribe_with_handler(
529525
handler_fn (Callable[..., TopicEventResponse]): The function to call when a message is received.
530526
metadata (Optional[MetadataTuple]): Additional metadata for the subscription.
531527
dead_letter_topic (Optional[str]): Name of the dead-letter topic.
532-
timeout (Optional[int]): The time in seconds to wait for a message before returning None
533-
If not set, the `next_message` method will block indefinitely
534-
until a message is received.
535528
"""
536529
subscription = self.subscribe(pubsub_name, topic, metadata, dead_letter_topic)
537530

@@ -1215,7 +1208,7 @@ def unsubscribe_configuration(self, store_name: str, id: str) -> bool:
12151208
bool: True if unsubscribed successfully, False otherwise
12161209
"""
12171210
req = api_v1.UnsubscribeConfigurationRequest(store_name=store_name, id=id)
1218-
response: UnsubscribeConfigurationResponse = self._stub.UnsubscribeConfiguration(req)
1211+
response: api_v1.UnsubscribeConfigurationResponse = self._stub.UnsubscribeConfiguration(req)
12191212
return response.ok
12201213

12211214
def try_lock(

dapr/proto/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121
from dapr.conf import settings
2222

2323
from dapr.proto.common.v1 import common_pb2 as common_v1
24-
from dapr.proto.runtime.v1 import dapr_pb2 as api_v1
24+
import dapr.proto.runtime.v1 as api_v1
2525
from dapr.proto.runtime.v1 import dapr_pb2_grpc as api_service_v1
26+
2627
from dapr.proto.runtime.v1 import appcallback_pb2 as appcallback_v1
2728
from dapr.proto.runtime.v1 import appcallback_pb2_grpc as appcallback_service_v1
2829

dapr/proto/common/v1/common_pb2.py

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

0 commit comments

Comments
 (0)