Re:How to create a Python package in 2022
by bvrmn on Thursday July 28, 2022 @06:54AM
(#32262740)
Post doesn't make sense. It clearly states that you only be sure that package is working by actually installing it into clean virtualenv and testing it there. `src` or any other layout doesn't matter.
[ Parent
| on HN ]
Re:How to create a Python package in 2022
by iggy_knights on Thursday July 28, 2022 @10:53AM
(#32265164)
The difference is if you're running tests from your root project directory, the package is importable regardless of whether or not it is installed, as python picks up packages in the current working directory by name. src/ prevents this.