7474 target : x86_64
7575 toolchain : [stable]
7676 features :
77- - value : " cjk "
77+ - value : " default "
7878 package_name : " lindera-python"
79+ package_description : " Python binding for Lindera (no embedded dictionaries)"
80+ - value : " embedded-cjk"
81+ package_name : " lindera-python-cjk"
7982 package_description : " Python binding for Lindera with CJK dictionaries (IPADIC, ko-dic, CC-CEDICT)"
83+ - value : " embedded-ipadic"
84+ package_name : " lindera-python-ipadic"
85+ package_description : " Python binding for Lindera with IPADIC dictionary"
86+ - value : " embedded-unidic"
87+ package_name : " lindera-python-unidic"
88+ package_description : " Python binding for Lindera with UniDic dictionary"
89+ - value : " embedded-ko-dic"
90+ package_name : " lindera-python-ko-dic"
91+ package_description : " Python binding for Lindera with ko-dic Korean dictionary"
92+ - value : " embedded-cc-cedict"
93+ package_name : " lindera-python-cc-cedict"
94+ package_description : " Python binding for Lindera with CC-CEDICT Chinese dictionary"
8095 runs-on : ${{ matrix.platform.runner }}
8196 steps :
8297 - name : Run checkout
91106 uses : PyO3/maturin-action@v1
92107 with :
93108 target : ${{ matrix.platform.target }}
94- args : --release --out dist --find-interpreter --features=${{ matrix.features.value }} # --manifest-path pyproject-${{ matrix.features.value }}.toml
109+ args : --release --out dist --find-interpreter --features=${{ matrix.features.value }}
95110 sccache : " false"
96111 manylinux : auto
97112 before-script-linux : " yum install openssl-devel devtoolset-10-libatomic-devel perl-IPC-Cmd -y"
@@ -112,9 +127,24 @@ jobs:
112127 target : aarch64
113128 toolchain : [stable]
114129 features :
115- - value : " cjk "
130+ - value : " default "
116131 package_name : " lindera-python"
132+ package_description : " Python binding for Lindera (no embedded dictionaries)"
133+ - value : " embedded-cjk"
134+ package_name : " lindera-python-cjk"
117135 package_description : " Python binding for Lindera with CJK dictionaries (IPADIC, ko-dic, CC-CEDICT)"
136+ - value : " embedded-ipadic"
137+ package_name : " lindera-python-ipadic"
138+ package_description : " Python binding for Lindera with IPADIC dictionary"
139+ - value : " embedded-unidic"
140+ package_name : " lindera-python-unidic"
141+ package_description : " Python binding for Lindera with UniDic dictionary"
142+ - value : " embedded-ko-dic"
143+ package_name : " lindera-python-ko-dic"
144+ package_description : " Python binding for Lindera with ko-dic Korean dictionary"
145+ - value : " embedded-cc-cedict"
146+ package_name : " lindera-python-cc-cedict"
147+ package_description : " Python binding for Lindera with CC-CEDICT Chinese dictionary"
118148 runs-on : ${{ matrix.platform.runner }}
119149 steps :
120150 - name : Run checkout
@@ -129,7 +159,7 @@ jobs:
129159 uses : PyO3/maturin-action@v1
130160 with :
131161 target : ${{ matrix.platform.target }}
132- args : --release --out dist --find-interpreter --features=${{ matrix.features.value }} # --manifest-path pyproject-${{ matrix.features.value }}.toml
162+ args : --release --out dist --find-interpreter --features=${{ matrix.features.value }}
133163 sccache : " false"
134164 manylinux : auto
135165 before-script-linux : " apt-get update && apt-get install libssl-dev pkg-config -y"
@@ -150,9 +180,24 @@ jobs:
150180 target : x64
151181 toolchain : [stable]
152182 features :
153- - value : " cjk "
183+ - value : " default "
154184 package_name : " lindera-python"
185+ package_description : " Python binding for Lindera (no embedded dictionaries)"
186+ - value : " embedded-cjk"
187+ package_name : " lindera-python-cjk"
155188 package_description : " Python binding for Lindera with CJK dictionaries (IPADIC, ko-dic, CC-CEDICT)"
189+ - value : " embedded-ipadic"
190+ package_name : " lindera-python-ipadic"
191+ package_description : " Python binding for Lindera with IPADIC dictionary"
192+ - value : " embedded-unidic"
193+ package_name : " lindera-python-unidic"
194+ package_description : " Python binding for Lindera with UniDic dictionary"
195+ - value : " embedded-ko-dic"
196+ package_name : " lindera-python-ko-dic"
197+ package_description : " Python binding for Lindera with ko-dic Korean dictionary"
198+ - value : " embedded-cc-cedict"
199+ package_name : " lindera-python-cc-cedict"
200+ package_description : " Python binding for Lindera with CC-CEDICT Chinese dictionary"
156201 runs-on : ${{ matrix.platform.runner }}
157202 steps :
158203 - name : Run checkout
@@ -168,7 +213,7 @@ jobs:
168213 uses : PyO3/maturin-action@v1
169214 with :
170215 target : ${{ matrix.platform.target }}
171- args : --release --out dist --find-interpreter --features=${{ matrix.features.value }} # --manifest-path pyproject-${{ matrix.features.value }}.toml
216+ args : --release --out dist --find-interpreter --features=${{ matrix.features.value }}
172217 sccache : " false"
173218
174219 - name : Upload wheels
@@ -189,9 +234,24 @@ jobs:
189234 target : aarch64
190235 toolchain : [stable]
191236 features :
192- - value : " cjk "
237+ - value : " default "
193238 package_name : " lindera-python"
239+ package_description : " Python binding for Lindera (no embedded dictionaries)"
240+ - value : " embedded-cjk"
241+ package_name : " lindera-python-cjk"
194242 package_description : " Python binding for Lindera with CJK dictionaries (IPADIC, ko-dic, CC-CEDICT)"
243+ - value : " embedded-ipadic"
244+ package_name : " lindera-python-ipadic"
245+ package_description : " Python binding for Lindera with IPADIC dictionary"
246+ - value : " embedded-unidic"
247+ package_name : " lindera-python-unidic"
248+ package_description : " Python binding for Lindera with UniDic dictionary"
249+ - value : " embedded-ko-dic"
250+ package_name : " lindera-python-ko-dic"
251+ package_description : " Python binding for Lindera with ko-dic Korean dictionary"
252+ - value : " embedded-cc-cedict"
253+ package_name : " lindera-python-cc-cedict"
254+ package_description : " Python binding for Lindera with CC-CEDICT Chinese dictionary"
195255 runs-on : ${{ matrix.platform.runner }}
196256 steps :
197257 - name : Run checkout
@@ -206,7 +266,7 @@ jobs:
206266 uses : PyO3/maturin-action@v1
207267 with :
208268 target : ${{ matrix.platform.target }}
209- args : --release --out dist --find-interpreter --features=${{ matrix.features.value }} # --manifest-path pyproject-${{ matrix.features.value }}.toml
269+ args : --release --out dist --find-interpreter --features=${{ matrix.features.value }}
210270 sccache : " false"
211271
212272 - name : Upload wheels
@@ -234,7 +294,7 @@ jobs:
234294 path : dist
235295
236296 release :
237- name : Release
297+ name : GitHub Release
238298 # needs: [linux, linux2, musllinux, windows, macos, sdist]
239299 needs : [linux, linux2, windows, macos, sdist]
240300 runs-on : ubuntu-latest
@@ -255,15 +315,6 @@ jobs:
255315 with :
256316 subject-path : " wheels-*/*"
257317
258- - name : Publish to PyPI
259- if : ${{ startsWith(github.ref, 'refs/tags/') }}
260- uses : PyO3/maturin-action@v1
261- env :
262- MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
263- with :
264- command : upload
265- args : --non-interactive --skip-existing wheels-*/*
266-
267318 - name : Create GitHub Release
268319 id : create_release
269320 uses : softprops/action-gh-release@v2
@@ -277,8 +328,27 @@ jobs:
277328 env :
278329 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
279330
331+ publish-pypi :
332+ name : Publish to PyPI
333+ needs : [linux, linux2, windows, macos, sdist]
334+ runs-on : ubuntu-latest
335+ if : ${{ startsWith(github.ref, 'refs/tags/') }}
336+ permissions :
337+ id-token : write
338+ steps :
339+ - name : Download build artifacts
340+ uses : actions/download-artifact@v4
341+
342+ - name : Publish to PyPI
343+ uses : PyO3/maturin-action@v1
344+ env :
345+ MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
346+ with :
347+ command : upload
348+ args : --non-interactive --skip-existing wheels-*/*
349+
280350 publish-crates :
281- name : Publish crate
351+ name : Publish to crates.io
282352 needs : [release]
283353 strategy :
284354 matrix :
0 commit comments