Skip to content

Instantly share code, notes, and snippets.

@Aviksaikat
Last active July 6, 2024 07:38
Show Gist options
  • Save Aviksaikat/ccc811d1f6962f99bdeae5ba8e481c07 to your computer and use it in GitHub Desktop.
Save Aviksaikat/ccc811d1f6962f99bdeae5ba8e481c07 to your computer and use it in GitHub Desktop.
Add custom files and folders to ship with your pip package
## Using hatch but should be similar for other tools
# https://hatch.pypa.io/latest/config/build/#pyprojecttoml_5
# Build configs
[tool.hatch.build.targets.sdist]
include = [
"src/**/*.py",
".configs/*"
]
[tool.hatch.build.targets.wheel]
packages = ["src", ".configs"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment