Skip to content

Question about hatchling and customizing build outputs #813

Answered by ofek
lwasser asked this question in Q&A
Discussion options

You must be logged in to vote

Everything is very configurable and really anything can be achieved https://hatch.pypa.io/latest/config/build/#file-selection (note that patterns for include/exclude are the same as Git so everyone will be familiar)

[tool.hatch.build.targets.wheel]
packages = ["xclim"]  # since there is no src directory the `include` option is equivalent here
exclude = ["xclim/testing"]

[tool.hatch.build.targets.sdist]
include = ["..."]

Replies: 1 comment 4 replies

Comment options

ofek
Apr 5, 2023
Maintainer Sponsor

You must be logged in to vote
4 replies
@lwasser
Comment options

@ofek
Comment options

ofek Apr 5, 2023
Maintainer Sponsor

Answer selected by lwasser
@lwasser
Comment options

@ofek
Comment options

ofek Apr 5, 2023
Maintainer Sponsor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants