You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like currently according to docs, hatch requires either __init__.py or <NAME>.py.
However from modern python's perspective, src/<NAME>/... is a perfectly good python package!
Setuptools is able to build such a package without any extra configuration (at least when using pyproject.toml)
Hatch results in
ValueError: Unable to determine which files to ship inside the wheel using the following heuristics:
https://hatch.pypa.io/latest/plugins/builder/wheel/#default-file-selection
The most likely cause of this is that there is no directory that matches the name of your project
, unless we specify (as this message helpfully suggests)
This works, but it's an extra section of config where project name needs to be duplicated.
I wonder if it's possible to detect package in src/<NAME> automatically?
Setuptools can do that, is there a good reason hatch can't? :) Thanks!
Many of my packages are implicit namespace packages, so I don't have
__init__.py
at all.Seems like currently according to docs, hatch requires either
__init__.py
or<NAME>.py
.However from modern python's perspective,
src/<NAME>/...
is a perfectly good python package!Setuptools is able to build such a package without any extra configuration (at least when using
pyproject.toml
)Hatch results in
, unless we specify (as this message helpfully suggests)
This works, but it's an extra section of config where project name needs to be duplicated.
I wonder if it's possible to detect package in
src/<NAME>
automatically?Setuptools can do that, is there a good reason hatch can't? :) Thanks!
Related issues: #587 #1646
The text was updated successfully, but these errors were encountered: