Skip to content
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

feat: whlにLICENSEファイルを含める #947

Merged
merged 1 commit into from
Jan 26, 2025

Conversation

qryxip
Copy link
Member

@qryxip qryxip commented Jan 26, 2025

内容

Maturinの機能で埋め込む。whlの内容は次のようになる。

 ├── voicevox_core
 │   └── …
 └── voicevox_core-{version}.dist-info
+    ├── licenses
+    │   └── LICENSE
     ├── METADATA
     ├── RECORD
     └── WHEEL

関連 Issue

Refs: #938

その他

ちなみにONNX Runtimeのwhlでは、dist-infoではなくonnxruntime/下に無造作に置かれていました。

あとreadmeについては今こうなっていますが、

# TODO:ユーザー用のREADMEを作る
# readme = "README.md"

どうもMaturinが自動でREADME.mdを見つけて埋め込むようで、今METADATAにはcrates/voicevox_core_python_api/README.mdがそのまま埋め込まれています。

@qryxip qryxip requested a review from Hiroshiba January 26, 2025 07:43
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!!

ちなみにreadmeも埋め込まれる、という認識であってますか?👀
であればOK!!

@qryxip
Copy link
Member Author

qryxip commented Jan 26, 2025

埋め込まれる、というか埋め込まれている、ですね。

まあ埋め込まれているのはPython API直下のこれなので、リポジトリトップのものを指定した方がよいかもしれません。

@Hiroshiba
Copy link
Member

なーるほどです!
「voicevox coreはmitライセンス」という一文が入ってるroot直下のreadmeが入っててくれた方がありがたい気もしますねぇ。

とりあえず0.16用のwheelの下にmit license文が置かれるのは問題ないはず!

@qryxip qryxip merged commit b673563 into VOICEVOX:main Jan 26, 2025
30 checks passed
@qryxip qryxip deleted the feat-include-license-file-in-whl branch January 26, 2025 14:50
@qryxip
Copy link
Member Author

qryxip commented Jan 26, 2025

なんかMETADATAでは

License-File: LICENSE

って書かれているけど、licenses/LICENSEでは?という気がする。Maturin側でこの件について認知されているか調べなくては。

qryxip added a commit that referenced this pull request Jan 26, 2025
Rust APIではシンボリックリンク、Python APIではpyproject.tomlによる指定と
する。

Rust APIとしては #913 、Python APIとしては #947 の続きとなる。
@qryxip
Copy link
Member Author

qryxip commented Jan 30, 2025

PyO3/maturin#2181 の経緯を見るに、LICENSEで正しいっぽい。

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.

2 participants