Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7af48a7

Browse files
authored
Drop Python 3.8, add 3.13 (temporalio#694)
1 parent3901cb7 commit7af48a7

File tree

13 files changed

+467
-484
lines changed

13 files changed

+467
-484
lines changed

‎.github/workflows/build-binaries.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
# Compile the binaries and upload artifacts
1010
compile-binaries:
1111
strategy:
12-
fail-fast:true
12+
fail-fast:false
1313
matrix:
1414
include:
1515
-os:ubuntu-latest
@@ -32,7 +32,7 @@ jobs:
3232
submodules:recursive
3333
-uses:actions/setup-python@v5
3434
with:
35-
python-version:"3.12"
35+
python-version:"3.13"
3636

3737
# Install Rust locally for non-Linux (Linux uses an internal docker
3838
# command to build with cibuildwheel which uses rustup install defined

‎.github/workflows/ci.yml‎

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,23 @@ jobs:
1212
strategy:
1313
fail-fast:false
1414
matrix:
15-
python:["3.8", "3.12"]
15+
python:["3.9", "3.13"]
1616
os:[ubuntu-latest, ubuntu-arm, macos-intel, macos-arm, windows-latest]
1717
include:
1818
-os:ubuntu-latest
19-
python:"3.12"
19+
python:"3.13"
2020
docsTarget:true
2121
cloudTestTarget:true
2222
clippyLinter:true
2323
-os:ubuntu-latest
24-
python:"3.8"
24+
python:"3.9"
2525
protoCheckTarget:true
2626
-os:ubuntu-arm
2727
runsOn:ubuntu-24.04-arm64-2-core
2828
-os:macos-intel
2929
runsOn:macos-13
3030
-os:macos-arm
31-
runsOn:macos-14
32-
# macOS ARM 3.8 does not have an available Python build at
33-
# https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json.
34-
# See https://github.com/actions/setup-python/issues/808 and
35-
# https://github.com/actions/python-versions/pull/259.
36-
exclude:
37-
-os:macos-arm
38-
python:"3.8"
31+
runsOn:macos-latest
3932
runs-on:${{ matrix.runsOn || matrix.os }}
4033
steps:
4134
-uses:actions/checkout@v4
@@ -47,17 +40,13 @@ jobs:
4740
workspaces:temporalio/bridge -> target
4841
-uses:actions/setup-python@v5
4942
with:
50-
# Pinning due to failed Windows builds on 3.12.5 https://github.com/temporalio/sdk-python/issues/637
51-
python-version:${{ matrix.python == '3.12' && '3.12.4' || matrix.python }}
43+
python-version:${{ matrix.python }}
5244
-uses:arduino/setup-protoc@v3
5345
with:
5446
# TODO(cretz): Can upgrade proto when https://github.com/arduino/setup-protoc/issues/99 fixed
5547
version:"23.x"
5648
repo-token:${{ secrets.GITHUB_TOKEN }}
57-
# Using fixed Poetry version until
58-
# https://github.com/python-poetry/poetry/issues/7611 and
59-
# https://github.com/python-poetry/poetry/pull/7694 are fixed
60-
-run:python -m pip install --upgrade wheel "poetry==1.3.2" poethepoet
49+
-run:python -m pip install --upgrade wheel poetry poethepoet
6150
-run:poetry install --no-root --all-extras
6251
-run:poe bridge-lint
6352
if:${{ matrix.clippyLinter }}
@@ -93,7 +82,8 @@ jobs:
9382
env:
9483
TEMPORAL_TEST_PROTO3:1
9584
run:|
96-
poetry add "protobuf<4"
85+
poetry add --python 3.9 "protobuf<4"
86+
poetry install --no-root --all-extras
9787
poe gen-protos
9888
poe format
9989
[[ -z $(git status --porcelain temporalio) ]] || (git diff temporalio; echo "Protos changed"; exit 1)
@@ -122,3 +112,4 @@ jobs:
122112
python-repo-path:${{github.event.pull_request.head.repo.full_name}}
123113
version:${{github.event.pull_request.head.ref}}
124114
version-is-repo-ref:true
115+
features-repo-ref:python-version-upgrade

‎.github/workflows/run-bench.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
workspaces:temporalio/bridge -> target
3838
-uses:actions/setup-python@v5
3939
with:
40-
python-version:"3.12"
40+
python-version:"3.13"
4141
-uses:arduino/setup-protoc@v3
4242
with:
4343
# TODO(cretz): Can upgrade proto when https://github.com/arduino/setup-protoc/issues/99 fixed

‎README.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![Temporal Python SDK](https://assets.temporal.io/w/py-banner.svg)
22

3-
[![Python 3.8+](https://img.shields.io/pypi/pyversions/temporalio.svg?style=for-the-badge)](https://pypi.org/project/temporalio)
3+
[![Python 3.9+](https://img.shields.io/pypi/pyversions/temporalio.svg?style=for-the-badge)](https://pypi.org/project/temporalio)
44
[![PyPI](https://img.shields.io/pypi/v/temporalio.svg?style=for-the-badge)](https://pypi.org/project/temporalio)
55
[![MIT](https://img.shields.io/pypi/l/temporalio.svg?style=for-the-badge)](LICENSE)
66

@@ -1367,7 +1367,7 @@ The Python SDK is built to work with Python 3.8 and newer. It is built using
13671367

13681368
To build the SDK from source for use as a dependency, the following prerequisites are required:
13691369

1370-
*[Python](https://www.python.org/) >= 3.8
1370+
*[Python](https://www.python.org/) >= 3.9
13711371
* Make sure the latest version of`pip` is in use
13721372
*[Rust](https://www.rust-lang.org/)
13731373
*[Protobuf Compiler](https://protobuf.dev/)
@@ -1512,9 +1512,9 @@ poe test -s --log-cli-level=DEBUG -k test_sync_activity_thread_cancel_caught
15121512
####Proto Generation and Testing
15131513

15141514
To allow for backwards compatibility, protobuf code is generated on the 3.x series of the protobuf library. To generate
1515-
protobuf code, you must be on Python <= 3.10, and then run`poetry add "protobuf<4"`. Then the protobuf files can be
1516-
generated via`poe gen-protos`.Tests can be run forprotobufversion 3 by setting the`TEMPORAL_TEST_PROTO3` env var
1517-
to`1` prior to running tests.
1515+
protobuf code, you must be on Python <= 3.10, and then run`poetry add "protobuf<4"` +
1516+
`poetry install --no-root --all-extras`.Then theprotobuffiles can be generated via`poe gen-protos`. Tests can be run
1517+
for protobuf version 3 by setting the`TEMPORAL_TEST_PROTO3` env varto`1` prior to running tests.
15181518

15191519
Do not commit`poetry.lock` or`pyproject.toml` changes. To go back from this downgrade, restore both of those files
15201520
and run`poetry install --no-root --all-extras`. Make sure you`poe format` the results.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp