Replies: 2 comments 3 replies
-
https://hatch.pypa.io/latest/config/build/#packages [tool.hatch.build.targets.wheel]
packages = ["src/foo"] |
Beta Was this translation helpful? Give feedback.
1 reply
-
In a case where you don't use project sub folders in
following might be helpful, too:
However, that would only work if the project does not import dependencies from itself.
vs.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I think I have an essential misunderstand with
hatch
. So I created a minimal example to illustrate it.src
layout."bar"
(definied inpyproject.toml
)."foo"
(definied??? by the folder name used insidesrc
folder?)"foobar"
(definied inpyproject.toml
).But this is not installed as import package
foo
. It is installed assrc
.The problem might be that the package is installed in
/home/user/.local/lib/python3.11/site-packages/src/foo
instead of/home/user/.local/lib/python3.11/site-packages/foo
.pyproject.toml
I also tried to add this two lines to
pyproject.toml
. But without success.Beta Was this translation helpful? Give feedback.
All reactions