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/"
repo
とrepos
オプションは効果がありません。
Confirmation prompt¶
Hatchのconfig fileまたはプロジェクト固有の設定(これが優先されます)でパブリッシャーのdisable
オプションをtrue
に設定することで、確認プロンプトを要求するか-y
/--yes
フラグを使用できます。
[publish.index]
disable = true
[tool.hatch.publish.index]
disable = true
[publish.index]
disable = true