Skip to content

Commit 0d5b1cf

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents bbc4324 + 8d2165d commit 0d5b1cf

4 files changed

Lines changed: 2362 additions & 2052 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The SDK automatically resolves configuration from multiple sources with the foll
6060

6161
2. **Environment variables**: `CLOUD_SDK_CFG_<MODULE>_<INSTANCE>_<FIELD>`
6262
- For instance names, hyphens (`"-"`) are replaced with underscores (`"_"`) for compatibility with system environment variables.
63-
- You can see examples in our [env_integration_tests.example](.env_integration_tests.example)
63+
- You can see examples in our [env_integration_tests.example](.env_integration_tests.example).
6464

6565
### Usage Guides
6666

pyproject.toml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ authors = [
99
]
1010
requires-python = ">=3.11"
1111
dependencies = [
12-
"minio~=7.2.16",
13-
"setuptools>=83.0",
14-
"requests>=2.33.0",
15-
"requests-oauthlib~=2.0.0",
12+
"minio>=7.2.16,<7.2.17",
13+
"setuptools>=83.0,<84",
14+
"requests>=2.33.0,<3",
15+
"requests-oauthlib>=2.0.0,<3",
1616
"pydantic~=2.12.3",
1717
"hatchling~=1.27.0",
1818
"opentelemetry-exporter-otlp-proto-grpc~=1.43.0",
1919
"opentelemetry-exporter-otlp-proto-http~=1.43.0",
2020
"traceloop-sdk~=0.61.0",
21-
"opentelemetry-instrumentation-langchain>=0.61.0",
22-
"httpx>=0.27.0",
23-
"PyJWT>=2.13.0",
24-
"protobuf>=5.29.5",
25-
"protovalidate>=0.14.1",
26-
"grpcio>=1.60.0",
27-
"opentelemetry-api>=1.43.0",
28-
"opentelemetry-sdk>=1.43.0",
21+
"opentelemetry-instrumentation-langchain>=0.61.0,<1",
22+
"httpx>=0.27.0,<1",
23+
"PyJWT>=2.13.0,<3",
24+
"protobuf>=6.0.0,<7",
25+
"protovalidate>=0.14.1,<1",
26+
"grpcio>=1.60.0,<2",
27+
"opentelemetry-api>=1.43.0,<2",
28+
"opentelemetry-sdk>=1.43.0,<2",
2929
"opentelemetry-instrumentation-httpx~=0.64b0",
3030
"opentelemetry-instrumentation-requests~=0.64b0",
3131
"opentelemetry-instrumentation-grpc~=0.64b0",
@@ -36,20 +36,20 @@ dependencies = [
3636
"opentelemetry-instrumentation-sqlalchemy~=0.64b0",
3737
"opentelemetry-instrumentation-django~=0.64b0",
3838
"opentelemetry-instrumentation-flask~=0.64b0",
39-
"mcp>=1.1.0",
39+
"mcp>=1.1.0,<2",
4040
"python-odata>=0.7.0",
41-
"cryptography>=46.0.3",
41+
"cryptography>=46.0.3,<47",
4242
]
4343

4444
[project.optional-dependencies]
45-
extensibility = ["a2a-sdk>=0.2.0"]
46-
starlette = ["starlette>=0.40.0"]
47-
fastapi = ["fastapi>=0.100.0"]
48-
aiohttp = ["aiohttp>=3.9.0"]
49-
sqlalchemy = ["sqlalchemy>=2.0.0"]
50-
django = ["django>=4.0"]
51-
flask = ["flask>=3.0"]
52-
langgraph = ["langgraph>=1.0.0"]
45+
extensibility = ["a2a-sdk>=0.2.0,<2"]
46+
starlette = ["starlette>=0.40.0,<1"]
47+
fastapi = ["fastapi>=0.100.0,<1"]
48+
aiohttp = ["aiohttp>=3.9.0,<4"]
49+
sqlalchemy = ["sqlalchemy>=2.0.0,<3"]
50+
django = ["django>=4.0,<5"]
51+
flask = ["flask>=3.0,<4"]
52+
langgraph = ["langgraph>=1.0.0,<2"]
5353

5454
[build-system]
5555
requires = ["hatchling"]

src/sap_cloud_sdk/core/data_anonymization/_http_transport.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,16 +180,18 @@ def _post_file_request(
180180
"""Submit a multipart request with either a file path or in-memory bytes."""
181181
file_handle: Optional[BinaryIO] = None
182182
try:
183+
file_data: BinaryIO | bytes
183184
if request.file_path is not None:
184185
file_handle = open(request.file_path, "rb")
185-
file_value = file_handle
186+
file_data = file_handle
186187
else:
187-
file_value = request.file_content
188+
assert request.file_content is not None
189+
file_data = request.file_content
188190

189191
files = {
190192
"file": (
191193
request.resolved_file_name(),
192-
file_value,
194+
file_data,
193195
)
194196
}
195197

0 commit comments

Comments
 (0)