Skip to content

Index publisher


publishingのマニュアルを参照してください。

Options

Flag Config name Description
-r/--repo repo アーティファクトをパブリッシュするリポジトリ。
-u/--user user 認証に使用するユーザー。
-a/--auth auth 認証に使用する資格情報。
--ca-cert ca-cert CAバンドルへのパス。
--client-cert client-cert クライアント証明書へのパス。オプションで秘密キーが含まれます。
--client-key client-key クライアント証明書のプライベートキーへのパス。
repos 名前付きのrepositoriesをそれぞれのオプションに関連付けたテーブル。

Configuration

パブリッシャープラグイン名はindexです。

[publish.index]

Repositories

すべてのトップレベルオプションは、各リポジトリに必要なurl属性を持つreposテーブルを使用して、リポジトリごとに上書きできます。次に、デフォルト設定を示します。:

[publish.index.repos.main]
url = "https://upload.pypi.org/legacy/"

[publish.index.repos.test]
url = "https://test.pypi.org/legacy/"

reporeposオプションは効果がありません。

Confirmation prompt

Hatchのconfig fileまたはプロジェクト固有の設定(これが優先されます)でパブリッシャーのdisableオプションをtrueに設定することで、確認プロンプトを要求するか-y/--yesフラグを使用できます。

[publish.index]
disable = true
[tool.hatch.publish.index]
disable = true
[publish.index]
disable = true