Skip to content

Commit 7b5a69c

Browse files
authored
Converters and scaffolding (#4)
1 parent a3d5328 commit 7b5a69c

File tree

6 files changed

+531
-5
lines changed

6 files changed

+531
-5
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)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "temporal-sdk-core-bridge"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[lib]
7+
name = "temporal_sdk_core_bridge"
8+
crate-type = ["cdylib"]
9+
10+
[dependencies]
11+
tokio = "1.15"
12+
prost = "0.9"
13+
prost-types = "0.9"
14+
temporal-sdk-core = { version = "0.1.0", path = "../sdk-core/core" }
15+
temporal-sdk-core-api = { version = "0.1.0", path = "../sdk-core/core-api" }
16+
temporal-sdk-core-protos = { version = "0.1.0", path = "../sdk-core/sdk-core-protos" }
17+
pyo3 = { version = "0.15", features = ["extension-module"] }
18+
pyo3-asyncio = { version = "0.15", features = ["tokio-runtime"] }

0 commit comments

Comments
 (0)