Skip to content

Commit a5ee599

Browse files
authored
Drop 3.9 support (#212)
Fixes #37 * drop 3.9 support * Skip trio test for Python < 3.12
1 parent 41877f0 commit a5ee599

File tree

6 files changed

+46
-471
lines changed

6 files changed

+46
-471
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: true
1414
matrix:
15-
python: ["3.9", "3.12"]
15+
python: ["3.10", "3.13"]
1616
os: [ubuntu-latest, macos-intel, macos-arm, windows-latest]
1717
include:
1818
- os: macos-intel

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Prerequisites:
1010
* [Temporal CLI installed](https://docs.temporal.io/cli#install)
1111
* [Local Temporal server running](https://docs.temporal.io/cli/server#start-dev)
1212

13-
The SDK requires Python >= 3.9. You can install Python using uv. For example,
13+
The SDK requires Python >= 3.10. You can install Python using uv. For example,
1414

1515
uv python install 3.13
1616

cloud_export_to_parquet/README.md

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

33
This is an example workflow to convert exported file from proto to parquet file. The workflow is an hourly schedule.
44

5-
Please make sure your python is 3.9 above. For this sample, run:
5+
Please make sure your python version is 3.10 or above. For this sample, run:
66

77
uv sync --group=cloud-export-to-parquet
88

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "temporalio-samples"
33
version = "0.1a1"
44
description = "Temporal.io Python SDK samples"
55
authors = [{ name = "Temporal Technologies Inc", email = "sdk@temporal.io" }]
6-
requires-python = ">=3.9"
6+
requires-python = ">=3.10"
77
readme = "README.md"
88
license = "MIT"
99
dependencies = ["temporalio>=1.14.1,<2"]
@@ -65,8 +65,8 @@ trio-async = [
6565
"trio-asyncio>=0.15.0,<0.16",
6666
]
6767
cloud-export-to-parquet = [
68-
"pandas>=2.2.2,<3 ; python_version >= '3.9' and python_version < '4.0'",
69-
"numpy>=1.26.0,<2 ; python_version >= '3.9' and python_version < '3.13'",
68+
"pandas>=2.2.2,<3 ; python_version >= '3.10' and python_version < '4.0'",
69+
"numpy>=1.26.0,<2 ; python_version >= '3.10' and python_version < '3.13'",
7070
"boto3>=1.34.89,<2",
7171
"pyarrow>=19.0.1",
7272
]

tests/trio_async/workflow_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import sys
12
import uuid
23

4+
import pytest
35
import trio_asyncio
46
from temporalio.client import Client
57
from temporalio.worker import Worker
@@ -33,7 +35,11 @@ async def inside_trio(client: Client) -> list[str]:
3335
task_queue=task_queue,
3436
)
3537

38+
if sys.version_info[:2] < (3, 12):
39+
pytest.skip("Trio support requires >= 3.12")
40+
3641
result = trio_asyncio.run(inside_trio, client)
42+
3743
assert result == [
3844
"Hello, some-user! (from asyncio)",
3945
"Hello, some-user! (from thread)",

0 commit comments

Comments
 (0)