7474 target : x86_64
7575 toolchain : [stable]
7676 features :
77- - value : " ipadic"
78- package_name : " lindera-py-ipadic"
79- package_description : " Python binding for Lindera with Japanese dictionary (IPADIC)"
80- - value : " unidic"
81- package_name : " lindera-py-unidic"
82- package_description : " Python binding for Lindera with Japanese dictionary (Unidic)"
83- - value : " ko-dic"
84- package_name : " lindera-py-ko-dic"
85- package_description : " Python binding for Lindera with Korean dictionary (ko-dic)"
86- - value : " cc-cedict"
87- package_name : " lindera-py-cc-cedict"
88- package_description : " Python binding for Lindera with CHinese dictionary (CC-CEDICT)"
8977 - value : " cjk"
9078 package_name : " lindera-py"
9179 package_description : " Python binding for Lindera with CJK dictionaries (IPADIC, ko-dic, CC-CEDICT)"
@@ -99,24 +87,11 @@ jobs:
9987 with :
10088 python-version : 3.x
10189
102- - name : Generate pyproject.toml for each feature
103- run : |
104- # Make package name to Python package name conversion (hyphen to underscore)
105- PYTHON_PACKAGE_NAME=$(echo "${{ matrix.features.package_name }}" | sed 's/-/_/g')
106- # Copy the original pyproject.toml
107- cp pyproject.toml pyproject-${{ matrix.features.value }}.toml
108- # Replace package name and description
109- sed -i 's/name = "lindera_py"/name = "'${PYTHON_PACKAGE_NAME}'"/' pyproject-${{ matrix.features.value }}.toml
110- sed -i 's/description = ""/description = "${{ matrix.features.package_description }}"/' pyproject-${{ matrix.features.value }}.toml
111- # Confirm the generated file
112- echo "Generated pyproject-${{ matrix.features.value }}.toml:"
113- cat pyproject-${{ matrix.features.value }}.toml
114-
11590 - name : Build wheels
11691 uses : PyO3/maturin-action@v1
11792 with :
11893 target : ${{ matrix.platform.target }}
119- args : --release --out dist --find-interpreter --features=${{ matrix.features.value }} --config-file pyproject-${{ matrix.features.value }}.toml
94+ args : --release --out dist --find-interpreter --features=${{ matrix.features.value }} # --manifest-path pyproject-${{ matrix.features.value }}.toml
12095 sccache : " false"
12196 manylinux : auto
12297 before-script-linux : " yum install openssl-devel devtoolset-10-libatomic-devel perl-IPC-Cmd -y"
@@ -135,22 +110,8 @@ jobs:
135110 platform :
136111 - runner : ubuntu-latest
137112 target : aarch64
138- # - runner: ubuntu-latest
139- # target: armv7
140113 toolchain : [stable]
141114 features :
142- - value : " ipadic"
143- package_name : " lindera-py-ipadic"
144- package_description : " Python binding for Lindera with Japanese dictionary (IPADIC)"
145- - value : " unidic"
146- package_name : " lindera-py-unidic"
147- package_description : " Python binding for Lindera with Japanese dictionary (Unidic)"
148- - value : " ko-dic"
149- package_name : " lindera-py-ko-dic"
150- package_description : " Python binding for Lindera with Korean dictionary (ko-dic)"
151- - value : " cc-cedict"
152- package_name : " lindera-py-cc-cedict"
153- package_description : " Python binding for Lindera with CHinese dictionary (CC-CEDICT)"
154115 - value : " cjk"
155116 package_name : " lindera-py"
156117 package_description : " Python binding for Lindera with CJK dictionaries (IPADIC, ko-dic, CC-CEDICT)"
@@ -164,24 +125,11 @@ jobs:
164125 with :
165126 python-version : 3.x
166127
167- - name : Generate pyproject.toml for each feature
168- run : |
169- # Make package name to Python package name conversion (hyphen to underscore)
170- PYTHON_PACKAGE_NAME=$(echo "${{ matrix.features.package_name }}" | sed 's/-/_/g')
171- # Copy the original pyproject.toml
172- cp pyproject.toml pyproject-${{ matrix.features.value }}.toml
173- # Replace package name and description
174- sed -i 's/name = "lindera_py"/name = "'${PYTHON_PACKAGE_NAME}'"/' pyproject-${{ matrix.features.value }}.toml
175- sed -i 's/description = ""/description = "${{ matrix.features.package_description }}"/' pyproject-${{ matrix.features.value }}.toml
176- # Confirm the generated file
177- echo "Generated pyproject-${{ matrix.features.value }}.toml:"
178- cat pyproject-${{ matrix.features.value }}.toml
179-
180128 - name : Build wheels
181129 uses : PyO3/maturin-action@v1
182130 with :
183131 target : ${{ matrix.platform.target }}
184- args : --release --out dist --find-interpreter --features=${{ matrix.features.value }} --config-file pyproject-${{ matrix.features.value }}.toml
132+ args : --release --out dist --find-interpreter --features=${{ matrix.features.value }} # --manifest-path pyproject-${{ matrix.features.value }}.toml
185133 sccache : " false"
186134 manylinux : auto
187135 before-script-linux : " apt-get update && apt-get install libssl-dev pkg-config -y"
@@ -202,18 +150,6 @@ jobs:
202150 target : x64
203151 toolchain : [stable]
204152 features :
205- - value : " ipadic"
206- package_name : " lindera-py-ipadic"
207- package_description : " Python binding for Lindera with Japanese dictionary (IPADIC)"
208- - value : " unidic"
209- package_name : " lindera-py-unidic"
210- package_description : " Python binding for Lindera with Japanese dictionary (Unidic)"
211- - value : " ko-dic"
212- package_name : " lindera-py-ko-dic"
213- package_description : " Python binding for Lindera with Korean dictionary (ko-dic)"
214- - value : " cc-cedict"
215- package_name : " lindera-py-cc-cedict"
216- package_description : " Python binding for Lindera with CHinese dictionary (CC-CEDICT)"
217153 - value : " cjk"
218154 package_name : " lindera-py"
219155 package_description : " Python binding for Lindera with CJK dictionaries (IPADIC, ko-dic, CC-CEDICT)"
@@ -228,22 +164,11 @@ jobs:
228164 python-version : 3.x
229165 architecture : ${{ matrix.platform.target }}
230166
231- - name : Generate pyproject.toml for each feature (Windows)
232- run : |
233- $PYTHON_PACKAGE_NAME = "${{ matrix.features.package_name }}".Replace("-", "_")
234- Copy-Item pyproject.toml pyproject-${{ matrix.features.value }}.toml
235- (Get-Content pyproject-${{ matrix.features.value }}.toml) -replace 'name = "lindera_py"', "name = `"$PYTHON_PACKAGE_NAME`"" | Set-Content pyproject-${{ matrix.features.value }}.toml
236- (Get-Content pyproject-${{ matrix.features.value }}.toml) -replace 'description = ""', 'description = "${{ matrix.features.package_description }}"' | Set-Content pyproject-${{ matrix.features.value }}.toml
237- # Confirm the generated file
238- Write-Host "Generated pyproject-${{ matrix.features.value }}.toml:"
239- Get-Content pyproject-${{ matrix.features.value }}.toml
240- shell : powershell
241-
242167 - name : Build wheels
243168 uses : PyO3/maturin-action@v1
244169 with :
245170 target : ${{ matrix.platform.target }}
246- args : --release --out dist --find-interpreter --features=${{ matrix.features.value }} --config-file pyproject-${{ matrix.features.value }}.toml
171+ args : --release --out dist --find-interpreter --features=${{ matrix.features.value }} # --manifest-path pyproject-${{ matrix.features.value }}.toml
247172 sccache : " false"
248173
249174 - name : Upload wheels
@@ -264,18 +189,6 @@ jobs:
264189 target : aarch64
265190 toolchain : [stable]
266191 features :
267- - value : " ipadic"
268- package_name : " lindera-py-ipadic"
269- package_description : " Python binding for Lindera with Japanese dictionary (IPADIC)"
270- - value : " unidic"
271- package_name : " lindera-py-unidic"
272- package_description : " Python binding for Lindera with Japanese dictionary (Unidic)"
273- - value : " ko-dic"
274- package_name : " lindera-py-ko-dic"
275- package_description : " Python binding for Lindera with Korean dictionary (ko-dic)"
276- - value : " cc-cedict"
277- package_name : " lindera-py-cc-cedict"
278- package_description : " Python binding for Lindera with CHinese dictionary (CC-CEDICT)"
279192 - value : " cjk"
280193 package_name : " lindera-py"
281194 package_description : " Python binding for Lindera with CJK dictionaries (IPADIC, ko-dic, CC-CEDICT)"
@@ -289,24 +202,11 @@ jobs:
289202 with :
290203 python-version : 3.x
291204
292- - name : Generate pyproject.toml for each feature
293- run : |
294- # Make package name to Python package name conversion (hyphen to underscore)
295- PYTHON_PACKAGE_NAME=$(echo "${{ matrix.features.package_name }}" | sed 's/-/_/g')
296- # Copy the original pyproject.toml
297- cp pyproject.toml pyproject-${{ matrix.features.value }}.toml
298- # Replace package name and description
299- sed -i '' 's/name = "lindera_py"/name = "'${PYTHON_PACKAGE_NAME}'"/' pyproject-${{ matrix.features.value }}.toml
300- sed -i '' 's/description = ""/description = "${{ matrix.features.package_description }}"/' pyproject-${{ matrix.features.value }}.toml
301- # Confirm the generated file
302- echo "Generated pyproject-${{ matrix.features.value }}.toml:"
303- cat pyproject-${{ matrix.features.value }}.toml
304-
305205 - name : Build wheels
306206 uses : PyO3/maturin-action@v1
307207 with :
308208 target : ${{ matrix.platform.target }}
309- args : --release --out dist --find-interpreter --features=${{ matrix.features.value }} --config-file pyproject-${{ matrix.features.value }}.toml
209+ args : --release --out dist --find-interpreter --features=${{ matrix.features.value }} # --manifest-path pyproject-${{ matrix.features.value }}.toml
310210 sccache : " false"
311211
312212 - name : Upload wheels
@@ -355,50 +255,14 @@ jobs:
355255 with :
356256 subject-path : " wheels-*/*"
357257
358- - name : Publish to PyPI - lindera-py
359- if : ${{ startsWith(github.ref, 'refs/tags/') }}
360- uses : PyO3/maturin-action@v1
361- env :
362- MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
363- with :
364- command : upload
365- args : --non-interactive --skip-existing wheels-lindera-py-*/*
366-
367- - name : Publish to PyPI - lindera-py-ipadic
368- if : ${{ startsWith(github.ref, 'refs/tags/') }}
369- uses : PyO3/maturin-action@v1
370- env :
371- MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
372- with :
373- command : upload
374- args : --non-interactive --skip-existing wheels-lindera-py-ipadic-*/*
375-
376- - name : Publish to PyPI - lindera-py-unidic
377- if : ${{ startsWith(github.ref, 'refs/tags/') }}
378- uses : PyO3/maturin-action@v1
379- env :
380- MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
381- with :
382- command : upload
383- args : --non-interactive --skip-existing wheels-lindera-py-unidic-*/*
384-
385- - name : Publish to PyPI - lindera-py-ko-dic
386- if : ${{ startsWith(github.ref, 'refs/tags/') }}
387- uses : PyO3/maturin-action@v1
388- env :
389- MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
390- with :
391- command : upload
392- args : --non-interactive --skip-existing wheels-lindera-py-ko-dic-*/*
393-
394- - name : Publish to PyPI - lindera-py-cc-cedict
258+ - name : Publish to PyPI
395259 if : ${{ startsWith(github.ref, 'refs/tags/') }}
396260 uses : PyO3/maturin-action@v1
397261 env :
398262 MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
399263 with :
400264 command : upload
401- args : --non-interactive --skip-existing wheels-lindera-py-cc-cedict- */*
265+ args : --non-interactive --skip-existing wheels-*/*
402266
403267 - name : Create GitHub Release
404268 id : create_release
0 commit comments