8000 Python APIとJava APIのCargo.tomlからtest_utilへの依存を外す by qryxip · Pull Request #660 · VOICEVOX/voicevox_core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Python APIとJava APIのCargo.tomlからtest_utilへの依存を外す #660

New issue

Have a question about this project? Sign up for a free GitHub account to open a 8000 n issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

qryxip
Copy link
Member
@qryxip qryxip commented Oct 26, 2023

内容

pytestgradle testは現在/crates/test_util/dataのファイルに依存しています。

それが自動的にビルドされるよう、Python/Java APIのCargo.tomlに依存としてtest_utilクレートが入っているのですが、この指定はほとんど意味を成していません。なぜならPython/Java APIを単体で「ビルド」する際には結局test_utilを単体でcargo buildしなければならなくなるからです。このPRではその指定を削除してしまいます。
(その代わり、Python APIの方のCIにはcargo build -p test_utilの指定を入れます)

経緯: #659 (comment)

関連 Issue

Closes #659.

その他

@@ -274,7 +274,7 @@ jobs:
- run: |
pip install --upgrade poetry
poetry install --with dev --with test
- run: cargo build -p voicevox_core_c_api -vv
- run: cargo build -p test_util -vv # build scriptにより/crates/test_util/data/の生成
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

メモ: #659 (comment)

WindowsかmacOSでのMaturin関係だったと思う...多分。少なくともこれで動くし問題無いはず。

Copy link
Member
@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!
テストまだなので未マージです。

一応確認ですが、たぶんopensslのあれこれ関係なくこうした方が良いという理解で合ってそうでしょうか?👀

@qryxip
Copy link
Member Author
qryxip commented Oct 26, 2023

一応確認ですが、たぶんopensslのあれこれ関係なくこうした方が良いという理解で合ってそうでしょうか?👀

ですね。この方が(現状でできる範囲だと)混乱を避けれそうかと。

@qryxip qryxip merged commit d252b81 into VOICEVOX:main Oct 26, 2023
@qryxip qryxip deleted the rm-test-util-crate-from-cargo-toml-of-python-java-api branch October 26, 2023 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0