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

PyPIとTestPyPIへのアップロードの自動化 #184

Merged

Conversation

nimiusrd
Copy link
Contributor

@nimiusrd nimiusrd commented Sep 4, 2021

GiNZAのパッケージが現在ソースでしか配布されていないですが,Wheelが欲しいのでGitHub Actionsで自動的にデプロイできるようにしてみました.
現在のPythonのパッケージはバイナリが含まれていなくてもWheelで配布するのが一般的です.
https://packaging.python.org/tutorials/installing-packages/#source-distributions-vs-wheels

GitHub Actionsを有効にする必要があります.
以下のページに手順にしたがって,PYPI_API_TOKENTEST_PYPI_API_TOKEN の設定が必要です.
https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
https://github.com/pypa/gh-action-pypi-publish

@hiroshi-matsuda-rit
Copy link
Contributor

@nimiusrd ご提案ありがとうございます。実は私たちも依存ライブラリのdarts-clone-pythonについてwheel化のActionsを実装した経緯があります。
rixwew/darts-clone-python#8
ただこちらの実装ではmanylinuxが古かったりいくつか問題が指摘されていて、時間が取れたら改良していきたいと考えていました。
次回以降のAPI変更を伴うリリース時に導入を検討してみますので、その際はアドバイスいただければ幸いです。

@hiroshi-matsuda-rit
Copy link
Contributor

hiroshi-matsuda-rit commented Feb 24, 2022

コードのオリジンは python.org ですので、ライセンスの問題はないと判断します。 @r-terada
actionのトリガーはリリースタグpush時に変更します。
TEST PyPIはこれまで使用してこなかったので今回もセクションを削除します。
これらの変更を加える必要があるため、PYPI_API_TOKENの設定は後ほど行います。

@hiroshi-matsuda-rit
Copy link
Contributor

@nimiusrd wheel化の提案ありがとうございました。こちらの習慣に合わせて少しアレンジする形で採用させていただきました。

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.

None yet

2 participants