Skip to content

Commit f8c31bc

Browse files
authored
Merge pull request #11 from django-components/jo-chore-python-3.14
2 parents ee0ae90 + bc3ffab commit f8c31bc

File tree

11 files changed

+140
-236
lines changed

11 files changed

+140
-236
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github: ["EmilStenstrom"]
1+
github: ["EmilStenstrom", "JuroOravec"]
22

.github/workflows/publish.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name: Publish to PyPI
88
on:
99
push:
1010
tags:
11-
- '*'
11+
- "*"
1212

1313
# Allows you to run this workflow manually from the Actions tab
1414
workflow_dispatch:
@@ -22,29 +22,29 @@ jobs:
2222
strategy:
2323
matrix:
2424
platform:
25-
- runner: ubuntu-22.04
25+
- runner: ubuntu-latest
2626
target: x86_64
27-
- runner: ubuntu-22.04
27+
- runner: ubuntu-latest
2828
target: x86
29-
- runner: ubuntu-22.04
29+
- runner: ubuntu-latest
3030
target: aarch64
31-
- runner: ubuntu-22.04
31+
- runner: ubuntu-latest
3232
target: armv7
33-
- runner: ubuntu-22.04
33+
- runner: ubuntu-latest
3434
target: s390x
35-
- runner: ubuntu-22.04
35+
- runner: ubuntu-latest
3636
target: ppc64le
3737
steps:
38-
- uses: actions/checkout@v4
39-
- uses: actions/setup-python@v5
38+
- uses: actions/checkout@v5
39+
- uses: actions/setup-python@v6
4040
with:
41-
python-version: "3.13"
41+
python-version: "3.14"
4242
- name: Build wheels
4343
uses: PyO3/maturin-action@v1
4444
with:
4545
target: ${{ matrix.platform.target }}
4646
args: --release --out dist --find-interpreter
47-
sccache: 'true'
47+
sccache: "true"
4848
manylinux: auto
4949
- name: Upload wheels
5050
uses: actions/upload-artifact@v4
@@ -57,25 +57,25 @@ jobs:
5757
strategy:
5858
matrix:
5959
platform:
60-
- runner: ubuntu-22.04
60+
- runner: ubuntu-latest
6161
target: x86_64
62-
- runner: ubuntu-22.04
62+
- runner: ubuntu-latest
6363
target: x86
64-
- runner: ubuntu-22.04
64+
- runner: ubuntu-latest
6565
target: aarch64
66-
- runner: ubuntu-22.04
66+
- runner: ubuntu-latest
6767
target: armv7
6868
steps:
69-
- uses: actions/checkout@v4
70-
- uses: actions/setup-python@v5
69+
- uses: actions/checkout@v5
70+
- uses: actions/setup-python@v6
7171
with:
72-
python-version: "3.13"
72+
python-version: "3.14"
7373
- name: Build wheels
7474
uses: PyO3/maturin-action@v1
7575
with:
7676
target: ${{ matrix.platform.target }}
7777
args: --release --out dist --find-interpreter
78-
sccache: 'true'
78+
sccache: "true"
7979
manylinux: musllinux_1_2
8080
- name: Upload wheels
8181
uses: actions/upload-artifact@v4
@@ -93,17 +93,17 @@ jobs:
9393
- runner: windows-latest
9494
target: x86
9595
steps:
96-
- uses: actions/checkout@v4
97-
- uses: actions/setup-python@v5
96+
- uses: actions/checkout@v5
97+
- uses: actions/setup-python@v6
9898
with:
99-
python-version: "3.13"
99+
python-version: "3.14"
100100
architecture: ${{ matrix.platform.target }}
101101
- name: Build wheels
102102
uses: PyO3/maturin-action@v1
103103
with:
104104
target: ${{ matrix.platform.target }}
105105
args: --release --out dist --find-interpreter
106-
sccache: 'true'
106+
sccache: "true"
107107
- name: Upload wheels
108108
uses: actions/upload-artifact@v4
109109
with:
@@ -120,16 +120,16 @@ jobs:
120120
- runner: macos-14
121121
target: aarch64
122122
steps:
123-
- uses: actions/checkout@v4
124-
- uses: actions/setup-python@v5
123+
- uses: actions/checkout@v5
124+
- uses: actions/setup-python@v6
125125
with:
126-
python-version: "3.13"
126+
python-version: "3.14"
127127
- name: Build wheels
128128
uses: PyO3/maturin-action@v1
129129
with:
130130
target: ${{ matrix.platform.target }}
131131
args: --release --out dist --find-interpreter
132-
sccache: 'true'
132+
sccache: "true"
133133
- name: Upload wheels
134134
uses: actions/upload-artifact@v4
135135
with:
@@ -139,7 +139,7 @@ jobs:
139139
sdist:
140140
runs-on: ubuntu-latest
141141
steps:
142-
- uses: actions/checkout@v4
142+
- uses: actions/checkout@v5
143143
- name: Build sdist
144144
uses: PyO3/maturin-action@v1
145145
with:
@@ -164,11 +164,11 @@ jobs:
164164
# Used to generate artifact attestation
165165
attestations: write
166166
steps:
167-
- uses: actions/download-artifact@v4
167+
- uses: actions/download-artifact@v5
168168
- name: Generate artifact attestation
169-
uses: actions/attest-build-provenance@v2
169+
uses: actions/attest-build-provenance@v3
170170
with:
171-
subject-path: 'wheels-*/*'
171+
subject-path: "wheels-*/*"
172172
- name: Publish to PyPI
173173
if: ${{ startsWith(github.ref, 'refs/tags/') }}
174174
uses: PyO3/maturin-action@v1

.github/workflows/tests.yml

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Run tests
33
on:
44
push:
55
branches:
6-
- 'main'
7-
- 'dev'
6+
- "main"
7+
- "dev"
88
pull_request:
99
workflow_dispatch:
1010

@@ -13,46 +13,46 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
matrix:
16-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
17-
os: [ubuntu-20.04, windows-latest]
16+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
17+
os: [ubuntu-latest, windows-latest]
1818

1919
steps:
20-
- uses: actions/checkout@v4
21-
22-
# First check Rust tests
23-
- name: Install Rust toolchain
24-
uses: dtolnay/rust-toolchain@stable
25-
with:
26-
toolchain: stable
27-
components: rustfmt, clippy
28-
29-
- name: Cache Rust dependencies
30-
uses: Swatinem/rust-cache@v2
31-
32-
- name: Run Rust tests
33-
run: cargo test
34-
35-
# After Rust tests pass, run Python tests next
36-
- name: Set up Python ${{ matrix.python-version }}
37-
uses: actions/setup-python@v5
38-
with:
39-
python-version: ${{ matrix.python-version }}
40-
cache: "pip"
41-
42-
- name: Install Python dependencies
43-
run: |
44-
# NOTE: maturin requires a virtual environment to be active
45-
python -m venv .venv
46-
${{ runner.os == 'Windows' && '.venv\Scripts\activate' || 'source .venv/bin/activate' }}
47-
python -m pip install --upgrade pip
48-
python -m pip install -r requirements-ci.txt
49-
50-
- name: Build Python package
51-
run: |
52-
${{ runner.os == 'Windows' && '.venv\Scripts\activate' || 'source .venv/bin/activate' }}
53-
maturin develop
54-
55-
- name: Run Python tests
56-
run: |
57-
${{ runner.os == 'Windows' && '.venv\Scripts\activate' || 'source .venv/bin/activate' }}
58-
pytest
20+
- uses: actions/checkout@v5
21+
22+
# First check Rust tests
23+
- name: Install Rust toolchain
24+
uses: dtolnay/rust-toolchain@stable
25+
with:
26+
toolchain: stable
27+
components: rustfmt, clippy
28+
29+
- name: Cache Rust dependencies
30+
uses: Swatinem/rust-cache@v2
31+
32+
- name: Run Rust tests
33+
run: cargo test
34+
35+
# After Rust tests pass, run Python tests next
36+
- name: Set up Python ${{ matrix.python-version }}
37+
uses: actions/setup-python@v6
38+
with:
39+
python-version: ${{ matrix.python-version }}
40+
cache: "pip"
41+
42+
- name: Install Python dependencies
43+
run: |
44+
# NOTE: maturin requires a virtual environment to be active
45+
python -m venv .venv
46+
${{ runner.os == 'Windows' && '.venv\Scripts\activate' || 'source .venv/bin/activate' }}
47+
python -m pip install --upgrade pip
48+
python -m pip install -r requirements-ci.txt
49+
50+
- name: Build Python package
51+
run: |
52+
${{ runner.os == 'Windows' && '.venv\Scripts\activate' || 'source .venv/bin/activate' }}
53+
maturin develop
54+
55+
- name: Run Python tests
56+
run: |
57+
${{ runner.os == 'Windows' && '.venv\Scripts\activate' || 'source .venv/bin/activate' }}
58+
pytest

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release notes
22

3+
## v1.0.3
4+
5+
- Update to Python 3.14
6+
37
## v1.0.2
48

59
- Add build for Python 3.13 for Windows.

0 commit comments

Comments
 (0)