-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an 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
version取得APIを作った #260
version取得APIを作った #260
Conversation
d85c369
to
3abd816
Compare
3abd816
to
b04ffc9
Compare
* Export more items in `voicevox_core` * Add `voicevox_core_python_api` * Add pyd files to .gitignore * Install Python 3.8 * Build only `voicevox_core_c_api` in `build-unix-cpp-example` * Add `build-python-api` job * Deny non-Unicode path for `open_jtalk_dict_dir` * Remove an unused dependency * Use pyo3-log again * Add `VoicevoxCore.is_gpu_mode` as a `@property` * Add example/pyo3/.gitignore * Add `help`s * Add example/pyo3/README.md * Insert an empty line * Use `@pydantic.dataclasses.dataclass` for `SupportedDevices` * Load `./*.dll` * Modify run.py * Do not allow `None` for `acceleration_mode` * Reorder methods * Move pyproject.toml * Move requirements.txt * Release whl * Leave the `package.version` of voicevox_core_python_api as is * Add crates/voicevox_core_python_api/README.md * Minor refactor * Improve "環境構築" * Fix a typo Co-authored-by: Nanashi. <[email protected]> * Fix a link * Add `voicevox_core_python_api/directml` feature * Update crates/voicevox_core_python_api/README.md * Add a comment * Remove /requirements.txt * `pass` → `...` * Type the return type of `VoicevoxCore.decode` * Minor refactor Co-authored-by: Nanashi. <[email protected]>
… feature/version_api
6e23780
to
a1393d6
Compare
reviewできるようになりました |
versionを0.0.0にしました |
… feature/version_api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
run: | | ||
set-cargo-version ./crates/voicevox_core/Cargo.toml ${{ env.VERSION }} | ||
set-cargo-version ./crates/voicevox_core_c_api/Cargo.toml ${{ env.VERSION }} | ||
set-cargo-version ./crates/voicevox_core_python_api/Cargo.toml ${{ env.VERSION }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
将来増えたときに抜け漏れしそうだなとちょっとだけ思いました。
voiccevox_*/Cargo.toml
とかできるならこっちでも良いかも。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for cargo_toml in $( echo ./crate/voicevox_core_*/Cargo.toml ); do
set-cargo-version $cargo_toml ${{ env.VERSION }}
done
で出来なくはなさそう。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run: | | |
set-cargo-version ./crates/voicevox_core/Cargo.toml ${{ env.VERSION }} | |
set-cargo-version ./crates/voicevox_core_c_api/Cargo.toml ${{ env.VERSION }} | |
set-cargo-version ./crates/voicevox_core_python_api/Cargo.toml ${{ env.VERSION }} | |
shell: bash | |
run: | | |
cargo metadata --format-version 1 | | |
jq -r '.workspace_members as $members | .packages[] | select(.id as $id | $members | any(. == $id)) | .manifest_path' | | |
xargs -d '\n' -i{} -n 1 set-cargo-version {} "$VERSION" |
ちゃんとやるんだったらこんな感じかな、とは思います。
(edit) 改行を入れました
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./crate/voicevox_core*/Cargo.toml
でBash的に駄目な文字は出ないでしょうからnanashiさんのやつでもいいとは思いますが。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あまり複雑過ぎてもメンテできなくなりそうなので、nanashiさんの案をもとにつくりました
Co-authored-by: Ryo Yamashita <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
内容
バージョン判別の需要がありそうだったのでこの際作ることにした
release build時にCargo.tomlにバージョン情報を埋め込むことで対応する
関連 Issue
VOICEVOX/voicevox_engine#454
その他
python APIがmergeされてから本格的にreviewしたほうがよさそう