pypa / hatch

Modern, extensible Python project management
https://hatch.pypa.io/latest/
MIT License
5.89k stars 292 forks source link

Accept src/<NAMESPACE>/<NAME> layouts in wheel builder by default #1646

Open kohlrabi opened 1 month ago

kohlrabi commented 1 month ago

Currently hatch wheel builder autodetects packages in directory layouts shown on https://hatch.pypa.io/1.11/plugins/builder/wheel/#default-file-selection

For my package with src/NAMESPACE/NAME layout I had to manually configure hatch. If it is possible, could hatch also detect those layouts as part of the heuristic?

I'm still looking through the code to find the location this might be handled at, so I could prepare a PR.

kohlrabi commented 1 month ago

Is this a possible solution?:

https://github.com/kohlrabi/hatch/commit/597d5feefa2647c8f8f7e6f27c0d28a3cf0d054f