Skip to article frontmatterSkip to article content

Including Generated Files

Some tools can generate files which should be ignored by Git, but included in the Binary distribution.

You can include these with artifacts:

pyproject.toml
1
2
3
4
5
6
7
[tool.hatch.build.targets.wheel]
artifacts = [
  # Include generated JSON
  "*.json"
  # Ignore this specific JSON file, though
  "!particular-data.json"
]

artifacts are not affected by exclude.