Skip to content

Commit 98309b1

Browse files
authored
First commit (#1)
* First commit - Generate protos - Create GitHub Actions workflow for PRs and main * Address CR comments, transition to poetry
1 parent 75f7113 commit 98309b1

File tree

10 files changed

+751
-0
lines changed

10 files changed

+751
-0
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Continuous Integration
2+
on: # rebuild any PRs and main branch changes
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
- "releases/*"
8+
9+
jobs:
10+
# Build and test the project
11+
build-lint-test:
12+
strategy:
13+
fail-fast: true
14+
matrix:
15+
python: ["3.9"]
16+
os: [ubuntu-latest] # TODO:, macos-latest, windows-latest]
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- name: Print build information
20+
run: "echo head_ref: ${{ github.head_ref }}, ref: ${{ github.ref }}, os: ${{ matrix.os }}, python: ${{ matrix.python }}"
21+
- uses: actions/checkout@v2
22+
with:
23+
submodules: recursive
24+
- uses: actions-rs/toolchain@v1
25+
with:
26+
toolchain: stable
27+
- uses: actions/setup-python@v1
28+
with:
29+
python-version: ${{ matrix.python }}
30+
- run: python -m pip install --upgrade wheel poetry poethepoet
31+
- run: poetry install
32+
- run: poe lint
33+
- run: poe build

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
temporalio/proto/*

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "sdk-core"]
2+
path = temporalio/bridge/sdk-core
3+
url = git@github.com:temporalio/sdk-core.git

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Temporal Python SDK
2+
3+
### Local development enviroment
4+
5+
- Install the system dependencies
6+
7+
- Python >=3.7
8+
- [pipx](https://github.com/pypa/pipx#install-pipx)
9+
- [`poetry`](https://github.com/python-poetry/poetry) `pipx install poetry`
10+
- [`poe`](https://github.com/nat-n/poethepoet) `pipx install poethepoet`
11+
12+
- Install the package dependencies
13+
14+
```bash
15+
poetry install
16+
```
17+
18+
- Build the project (only generate the protos for now)
19+
20+
```bash
21+
poe build
22+
```

0 commit comments

Comments
 (0)