Python packaging: use the "src"
Briefly

The issue with this is that the current directory is, by default, on the Python import path. Which means import foo was always going to work even if your packaging config was broken. That's why the tests passed: they were still able to successfully import everything they needed. But the packaging wasn't replicating that structure to someone else's machine, so they couldn't use it.
Read at B-list
[
add
]
[
|
|
]