Skip to content

Commit 3c8b73b

Browse files
committed
Fix release.yml
1 parent 9a58732 commit 3c8b73b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ jobs:
131131
uses: PyO3/maturin-action@v1
132132
env:
133133
NODE_OPTIONS: "--max-old-space-size=8192"
134+
PYO3_CROSS_PYTHON_VERSION: ${{ contains(matrix.platform.target, 'aarch64') && '3.10' || '' }}
134135
with:
135136
target: ${{ matrix.platform.target }}
136137
args: --release --out dist --find-interpreter --features=${{ matrix.features.value }}
@@ -203,6 +204,7 @@ jobs:
203204
uses: PyO3/maturin-action@v1
204205
env:
205206
NODE_OPTIONS: "--max-old-space-size=8192"
207+
PYO3_CROSS_PYTHON_VERSION: ${{ contains(matrix.platform.target, 'aarch64') && '3.10' || '' }}
206208
with:
207209
target: ${{ matrix.platform.target }}
208210
args: --release --out dist --find-interpreter --features=${{ matrix.features.value }}
@@ -265,6 +267,7 @@ jobs:
265267
uses: PyO3/maturin-action@v1
266268
env:
267269
NODE_OPTIONS: "--max-old-space-size=8192"
270+
PYO3_CROSS_PYTHON_VERSION: ${{ contains(matrix.platform.target, 'aarch64') && '3.10' || '' }}
268271
with:
269272
target: ${{ matrix.platform.target }}
270273
args: --release --out dist --find-interpreter --features=${{ matrix.features.value }}

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ train = ["lindera/train"] # Enable training functionality
3939
default = ["train"] # No directories included
4040

4141
[dependencies]
42-
pyo3 = { version = "0.27.2", features = ["extension-module"] }
42+
pyo3 = { version = "0.27.2", features = ["extension-module", "abi3-py310"] }
4343
serde = { version = "1.0.228", features = ["derive"] }
4444
serde_json = "1.0.149"
4545
num_cpus = "1.17.0"

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[tool.maturin]
22
module-name = "lindera"
3+
features = ["pyo3/abi3-py310"]
34

45
[project]
56
name = "lindera-python"
@@ -37,8 +38,8 @@ flake8-pyproject = "^1.2.4"
3738
mypy = "^1.19.1"
3839

3940
[build-system]
40-
requires = ["poetry-core"]
41-
build-backend = "poetry.core.masonry.api"
41+
requires = ["maturin>=1.7,<2.0"]
42+
build-backend = "maturin"
4243

4344
[tool.black]
4445
line-length = 119

0 commit comments

Comments
 (0)