File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff 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 }}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ train = ["lindera/train"] # Enable training functionality
3939default = [" 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 " ] }
4343serde = { version = " 1.0.228" , features = [" derive" ] }
4444serde_json = " 1.0.149"
4545num_cpus = " 1.17.0"
Original file line number Diff line number Diff line change 11[tool .maturin ]
22module-name = " lindera"
3+ features = [" pyo3/abi3-py310" ]
34
45[project ]
56name = " lindera-python"
@@ -37,8 +38,8 @@ flake8-pyproject = "^1.2.4"
3738mypy = " ^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 ]
4445line-length = 119
You can’t perform that action at this time.
0 commit comments