Publishing¶公開¶
After your project is built, you can distribute it using the publish command.プロジェクトがビルドされた後、publishコマンドを使用して配布できます。
The -p/--publisher option controls which publisher to use, with the default being index.-p/--publisherオプションは、使用するパブリッシャーを制御し、デフォルトはindexです。
Artifact selection¶アーティファクトの選択¶
By default, the dist directory located at the root of your project will be used:デフォルトでは、プロジェクトのルートにあるdistディレクトリが使用されます:
$ hatch publish
dist/hatch_demo-1rc0-py3-none-any.whl ... success
dist/hatch_demo-1rc0.tar.gz ... success
[hatch-demo]
https://pypi.org/project/hatch-demo/1rc0/
You can instead pass specific paths as arguments:代わりに特定のパスを引数として渡すことができます:
hatch publish /path/to/artifacts foo-1.tar.gz
Only files ending with .whl or .tar.gz will be published.ファイルは .whl または .tar.gz で終わるもののみが公開されます。
Further resources¶さらなるリソース¶
Please refer to the publisher plugin reference for configuration options.設定オプションについては、出版社プラグインのリファレンスを参照してください。
There's a How-To on authentication and on options to select the target repository.認証に関するHow-Toや、ターゲットリポジトリを選択するためのオプションについての情報があります。
The publish command is implemented as a built-in plugin, if you're planning your own plugin, read about the publisher plugin API. publish コマンドは組み込みプラグインとして実装されています。独自のプラグインを計画している場合は、出版社プラグインAPIについて読んでください。