Skip to content

Index publisherインデックスパブリッシャー


See the documentation for publishing.パブリッシングのドキュメントを参照してください。

Optionsオプション

Flagフラグ Config name設定名 Description説明
-r/--repo-r/--repo reporepo The repository with which to publish artifactsアーティファクトを公開するためのリポジトリ
-u/--user-u/--user useruser The user with which to authenticate認証に使用するユーザー
-a/--auth-a/--auth authauth The credentials to use for authentication認証に使用する資格情報
--ca-cert--ca-cert ca-certca-cert The path to a CA bundleCAバンドルへのパス
--client-cert--client-cert client-certclient-cert The path to a client certificate, optionally containing the private keyクライアント証明書へのパス。オプションで秘密鍵を含むことができます。
--client-key--client-key client-keyclient-key The path to the client certificate's private keyクライアント証明書の秘密鍵へのパス。
reposrepos A table of named repositories to their respective optionsそれぞれのオプションに対する名前付きリポジトリのテーブル。

Configuration設定

The publisher plugin name is index.パブリッシャープラグイン名はindexです。

[publish.index]

Repositoriesリポジトリ

All top-level options can be overridden per repository using the repos table with a required url attribute for each repository. The following shows the default configuration:すべてのトップレベルオプションは、各リポジトリに対してreposテーブルを使用してオーバーライドできます。各リポジトリには必須のurl属性が必要です。以下にデフォルト設定を示します:

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

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

The repo and repos options have no effect.repoおよびreposオプションは効果がありません。

Confirmation prompt確認プロンプト

You can require a confirmation prompt or use of the -y/--yes flag by setting publishers' disable option to true in either Hatch's config file or project-specific configuration (which takes precedence):確認プロンプトを要求するか、-y/--yes フラグの使用をするには、Hatchの 設定ファイル またはプロジェクト固有の設定(こちらが優先されます)で、パブリッシャーの disable オプションを true に設定します:

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