Skip to content

Commit 119459a

Browse files
chore: support python 3.14 (#1271)
* chore: support python 3.14 * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 9865bf4 commit 119459a

19 files changed

Lines changed: 341 additions & 372 deletions

.github/workflows/codspeed.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
- uses: actions/checkout@v4
1818

1919
- name: Set up Python
20-
uses: actions/setup-python@v5
20+
uses: actions/setup-python@v6
2121
with:
22-
python-version: "3.9"
22+
python-version: "3.10"
2323

2424
- name: Install uv
2525
uses: astral-sh/setup-uv@v6

.github/workflows/lint-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install uv
1717
uses: astral-sh/setup-uv@v3
1818

19-
- uses: actions/setup-python@v5
19+
- uses: actions/setup-python@v6
2020
with:
2121
python-version: "3.11"
2222

.github/workflows/preview-deployments.yml

Lines changed: 21 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ env:
1616

1717
jobs:
1818
macos:
19-
runs-on: macos-13
19+
runs-on: macos-latest
2020
strategy:
2121
matrix:
22-
python-version: ["3.9", "3.10", "3.11", "3.12"]
22+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
2323
steps:
2424
- uses: actions/checkout@v4
2525
- name: Install uv
2626
uses: astral-sh/setup-uv@v3
27-
- uses: actions/setup-python@v5
27+
- uses: actions/setup-python@v6
2828
with:
2929
python-version: ${{ matrix.python-version }}
3030
- uses: dtolnay/rust-toolchain@stable
@@ -34,15 +34,12 @@ jobs:
3434
uses: PyO3/maturin-action@v1
3535
with:
3636
target: x86_64
37-
args: -i python --release --out dist --no-sdist
38-
- name: Install build wheel - x86_64
39-
run: |
40-
uv pip install --force-reinstall dist/robyn*.whl
41-
cd ~ && python -c 'import robyn'
37+
args: -i python --release --out dist
4238
- name: Build wheels - universal2
4339
uses: PyO3/maturin-action@v1
4440
with:
45-
args: -i python --release --universal2 --out dist --no-sdist
41+
target: universal2-apple-darwin
42+
args: -i python --release --out dist
4643
- name: Install build wheel - universal2
4744
run: |
4845
uv pip install --force-reinstall dist/robyn*_universal2.whl
@@ -52,13 +49,13 @@ jobs:
5249
runs-on: windows-latest
5350
strategy:
5451
matrix:
55-
python-version: ["3.9", "3.10", "3.11", "3.12"]
52+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
5653
target: [x64, x86]
5754
steps:
5855
- uses: actions/checkout@v4
5956
- name: Install uv
6057
uses: astral-sh/setup-uv@v3
61-
- uses: actions/setup-python@v5
58+
- uses: actions/setup-python@v6
6259
with:
6360
python-version: ${{ matrix.python-version }}
6461
architecture: ${{ matrix.target }}
@@ -67,7 +64,7 @@ jobs:
6764
uses: PyO3/maturin-action@v1
6865
with:
6966
target: ${{ matrix.target }}
70-
args: -i python --release --out dist --no-sdist
67+
args: -i python --release --out dist
7168
- name: Install build wheel
7269
shell: bash
7370
run: |
@@ -78,22 +75,22 @@ jobs:
7875
runs-on: ubuntu-latest
7976
strategy:
8077
matrix:
81-
python-version: ["3.9", "3.10", "3.11", "3.12"]
78+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
8279
target: [x86_64, i686]
8380
steps:
8481
- uses: actions/checkout@v4
8582
- uses: dtolnay/rust-toolchain@stable
8683
- name: Install uv
8784
uses: astral-sh/setup-uv@v3
88-
- uses: actions/setup-python@v5
85+
- uses: actions/setup-python@v6
8986
with:
9087
python-version: ${{ matrix.python-version }}
9188
- name: Build Wheels
9289
uses: PyO3/maturin-action@v1
9390
with:
9491
target: ${{ matrix.target }}
9592
manylinux: auto
96-
args: -i python${{ matrix.python-version }} --release --out dist --no-sdist
93+
args: -i python${{ matrix.python-version }} --release --out dist
9794
- name: Install build wheel
9895
if: matrix.target == 'x86_64'
9996
run: |
@@ -107,11 +104,11 @@ jobs:
107104
matrix:
108105
python:
109106
[
110-
{ version: "3.9", abi: "cp39-cp39" },
111107
{ version: "3.10", abi: "cp310-cp310" },
112108
{ version: "3.11", abi: "cp311-cp311" },
113109
{ version: "3.12", abi: "cp312-cp312" },
114110
{ version: "3.13", abi: "cp313-cp313" },
111+
{ version: "3.14", abi: "cp314-cp314" },
115112
]
116113
target: [aarch64, armv7]
117114
steps:
@@ -123,30 +120,26 @@ jobs:
123120
with:
124121
target: ${{ matrix.target }}
125122
manylinux: auto
126-
args: -i python${{matrix.python.version}} --release --out dist --no-sdist
123+
args: -i python${{matrix.python.version}} --release --out dist
127124
- uses: uraimo/run-on-arch-action@v2
128125
name: Install build wheel
129126
with:
130127
arch: ${{ matrix.target }}
131-
distro: ubuntu20.04
128+
distro: ubuntu22.04
132129
githubToken: ${{ github.token }}
133130
# Mount the dist directory as /artifacts in the container
134131
dockerRunArgs: |
135132
--volume "${PWD}/dist:/artifacts"
136133
install: |
137134
apt update -y
138-
apt install -y gcc musl-dev python3-dev # this is needed for psutil
139-
apt install -y --no-install-recommends software-properties-common
140-
add-apt-repository ppa:deadsnakes/ppa
135+
apt install -y software-properties-common
136+
add-apt-repository -y ppa:deadsnakes/ppa
141137
apt update -y
142-
PYTHON=python${{ matrix.python.version }}
143-
apt install -y $PYTHON $PYTHON-venv
138+
apt install -y gcc musl-dev python3-dev python${{ matrix.python.version }} python${{ matrix.python.version }}-venv
144139
run: |
145140
ls -lrth /artifacts
146-
PYTHON=python${{ matrix.python.version }}
147-
$PYTHON --version
148-
$PYTHON -m venv venv
141+
python${{ matrix.python.version }} -m venv venv
149142
source venv/bin/activate
150-
pip install --upgrade pip setuptools wheel
151-
pip install --force-reinstall dist/robyn*.whl
143+
python -m pip install --upgrade pip setuptools wheel
144+
python -m pip install --force-reinstall /artifacts/robyn*.whl
152145
cd ~ && python -c 'import robyn'

.github/workflows/python-CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
os: ["windows", "ubuntu", "macos"]
13-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
13+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1414
name: ${{ matrix.os }} tests with python ${{ matrix.python-version }}
1515
runs-on: ${{ matrix.os }}-latest
1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v5
19+
uses: actions/setup-python@v6
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222
- name: Set up Nox

.github/workflows/release-CI.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ env:
1616
UV_SYSTEM_PYTHON: 1
1717
jobs:
1818
macos:
19-
runs-on: macos-13
19+
runs-on: macos-latest
2020
strategy:
2121
matrix:
22-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
22+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
2323
steps:
2424
- uses: actions/checkout@v3
2525
- name: Install uv
2626
uses: astral-sh/setup-uv@v3
27-
- uses: actions/setup-python@v5
27+
- uses: actions/setup-python@v6
2828
with:
2929
python-version: ${{ matrix.python-version }}
3030
- uses: dtolnay/rust-toolchain@stable
@@ -35,14 +35,11 @@ jobs:
3535
with:
3636
target: x86_64
3737
args: -i python --release --out dist
38-
- name: Install build wheel - x86_64
39-
run: |
40-
uv pip install --force-reinstall dist/robyn*.whl
41-
cd ~ && python -c 'import robyn'
4238
- name: Build wheels - universal2
4339
uses: PyO3/maturin-action@v1
4440
with:
45-
args: -i python --release --universal2 --out dist
41+
target: universal2-apple-darwin
42+
args: -i python --release --out dist
4643
- name: Install build wheel - universal2
4744
run: |
4845
uv pip install --force-reinstall dist/robyn*_universal2.whl
@@ -56,13 +53,13 @@ jobs:
5653
runs-on: windows-latest
5754
strategy:
5855
matrix:
59-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
56+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
6057
target: [x64, x86]
6158
steps:
6259
- uses: actions/checkout@v3
6360
- name: Install uv
6461
uses: astral-sh/setup-uv@v3
65-
- uses: actions/setup-python@v5
62+
- uses: actions/setup-python@v6
6663
with:
6764
python-version: ${{ matrix.python-version }}
6865
architecture: ${{ matrix.target }}
@@ -86,14 +83,14 @@ jobs:
8683
runs-on: ubuntu-latest
8784
strategy:
8885
matrix:
89-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
86+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
9087
target: [x86_64, i686]
9188
steps:
9289
- uses: actions/checkout@v3
9390
- uses: dtolnay/rust-toolchain@stable
9491
- name: Install uv
9592
uses: astral-sh/setup-uv@v3
96-
- uses: actions/setup-python@v5
93+
- uses: actions/setup-python@v6
9794
with:
9895
python-version: ${{ matrix.python-version }}
9996
- name: Build Wheels
@@ -119,11 +116,11 @@ jobs:
119116
matrix:
120117
python:
121118
[
122-
{ version: "3.9", abi: "cp39-cp39" },
123119
{ version: "3.10", abi: "cp310-cp310" },
124120
{ version: "3.11", abi: "cp311-cp311" },
125121
{ version: "3.12", abi: "cp312-cp312" },
126122
{ version: "3.13", abi: "cp313-cp313" },
123+
{ version: "3.14", abi: "cp314-cp314" },
127124
]
128125
target: [aarch64, armv7]
129126
steps:
@@ -195,7 +192,7 @@ jobs:
195192
name: wheels
196193
- name: Install uv
197194
uses: astral-sh/setup-uv@v3
198-
- uses: actions/setup-python@v5
195+
- uses: actions/setup-python@v6
199196
with:
200197
python-version: 3.x
201198
- name: Publish to PyPi

Cargo.lock

Lines changed: 18 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)