Skip to content

Commit 4192a77

Browse files
committed
Remove client and common packages, rework some converter approach, update python version in CI
1 parent eca5b0a commit 4192a77

File tree

12 files changed

+117
-280
lines changed

12 files changed

+117
-280
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"]
15+
python: ["3.7", "3.10"]
1616
os: [ubuntu-latest] # TODO: macos-latest, windows-latest
1717
runs-on: ${{ matrix.os }}
1818
steps:

scripts/gen-protos.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
#!/usr/bin/env python3
22
import collections
3-
import os
43
import re
54
import shutil
65
import subprocess
76
import sys
87
import tempfile
98
from functools import partial
109
from pathlib import Path
11-
from typing import Mapping
10+
from typing import List, Mapping
1211

1312
base_dir = Path(__file__).parent.parent
1413
proto_dir = base_dir / "temporalio" / "bridge" / "sdk-core" / "protos"
@@ -43,7 +42,7 @@ def fix_generated_output(base_path: Path):
4342
(https://github.com/protocolbuffers/protobuf/issues/1491)
4443
"""
4544

46-
imports: Mapping[str, list[str]] = collections.defaultdict(list)
45+
imports: Mapping[str, List[str]] = collections.defaultdict(list)
4746
for p in base_path.iterdir():
4847
if p.is_dir():
4948
fix_generated_output(p)

temporalio/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +0,0 @@
1-
import typing
2-
3-
from .common import RetryPolicy
4-
5-
Convertible = typing.Any

temporalio/client/__init__.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

temporalio/client/client.py

Lines changed: 0 additions & 131 deletions
This file was deleted.

temporalio/client/workflow_execution.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

temporalio/client/workflow_handle.py

Lines changed: 0 additions & 39 deletions
This file was deleted.

temporalio/client/workflow_service.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

temporalio/common/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

temporalio/common/retry_policy.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)