Source distribution builder¶
ソースディストリビューション、またはsdist
は、Pythonの"ソースコード"のアーカイブです。ほとんど指定されていませんが、慣例により、ネットワーク要求を行わずにwheelを構築するために必要なすべてのものを含める必要があります。
Configuration¶
ビルダープラグイン名はsdist
です。
[tool.hatch.build.targets.sdist]
[build.targets.sdist]
Options¶
Option | Default | Description |
---|---|---|
core-metadata-version | "2.3" | 使用するcore metadataのバージョン。 |
strict-naming | true | ファイル名にプロジェクト名の正規化バージョンを含めるかどうかを指定します。 |
support-legacy | false | レガシーインストールメカニズムをサポートするためにsetup.py ファイルを含めるかどうか。 |
Versions¶
Version | Description |
---|---|
standard (default) | 最新の型どおりの形式。 |
Default file selection¶
ユーザーがfile selectionオプションを設定していない場合は、VCSによって無視されないすべてのファイルignored by your VCSが含まれます。
Note
次のファイルは常に含まれ、除外できません。
/pyproject.toml
/hatch.toml
/hatch_build.py
/.gitignore
or/.hgignore
- Any defined
readme
file - All defined
license-files
Reproducibility¶
Reproducible buildsがサポートされています。
Build data¶
このデータは、build hooksで変更できます。
Data | Default | Description |
---|---|---|
dependencies | Extra project dependencies |