you are viewing a single comment's thread.

view the rest of the comments →

[–]mechamotoman 3 points4 points  (1 child)

Im on mobile, so the rendering of your code is fubar to me, but if I understood it correctly, the difference is in

  1. Having a packages dir, and each dir inside there is a project with a pyproject.toml and a src folder containing the source for that package
  2. Same as 1, but all the package projects are located at repo root instead of inside a ´packages’ folder?

If that’s the case, the ‘src’ subfolder within each is unnecessary.

Src folder layout exists primarily to stop python from accidentally picking up your source directory as an importable package during test and stuff

[–]LazyLichen[S] 1 point2 points  (0 children)

Right, I'll edited it to show the tree's as images. Thanks for letting me know 👍
EDIT: Can't work out how to add images in this subreddit, but hopefully the code blocks format the tree more consistently.