> [!attention] > #2025/01/03 **現在では以下のように[[Trusted Publishing]]がオススメ。** > > > If you are publishing to PyPI from a CI provider that supports Trusted Publishing, we strongly recommend using Trusted Publishing instead. https://pypi.org/manage/account/ にて『APIトークンの追加』をクリック。 ![[Pasted image 20230730212551.png]] トークン名とスコープを設定。 ![[Pasted image 20230730212631.png]] > [!hint] スコープについて > スコープを『アカウント全体』にすればプロジェクトごとに作る必要はないが、安全性を重視してプロジェクトごとに作成する。