How to configure repositories for index publishing¶インデックス公開のためのリポジトリを設定する方法¶
You can select the repository with which to upload using the -r/--repo option or by setting the HATCH_INDEX_REPO environment variable.-r/--repoオプションを使用するか、HATCH_INDEX_REPO環境変数を設定することで、アップロードするリポジトリを選択できます。
Rather than specifying the full URL of a repository, you can use a named repository from a publish.index.repos table defined in Hatch's config file:リポジトリの完全なURLを指定する代わりに、Hatchの設定ファイルに定義されたpublish.index.reposテーブルから名前付きリポジトリを使用できます:
[publish.index.repos.private]
url = "..."
...
The following repository names are reserved by Hatch and cannot be overridden:次のリポジトリ名はHatchによって予約されており、上書きすることはできません:
| Name名前 | Repositoryリポジトリ |
|---|---|
mainmain | https://upload.pypi.org/legacy/https://upload.pypi.org/legacy/ |
testtest | https://test.pypi.org/legacy/https://test.pypi.org/legacy/ |
The main repository is used by default.main リポジトリはデフォルトで使用されます。