RandomFileTree icon indicating copy to clipboard operation
RandomFileTree copied to clipboard

Use src layout and declarative setup config

Open buhtz opened this issue 3 years ago • 3 comments

I would recommend to restructure the folders and files in the repo to the officially recommended "src" layout. This will easy your install and test infrastructure and you don't have to ship your package with test files.

Official docu: https://packaging.python.org/en/latest/tutorials/packaging-projects/

Additional infos:

  • https://stackoverflow.com/a/73106998/4865723
  • https://blog.ionelmc.ro/2014/05/25/python-packaging/

buhtz avatar Sep 27 '22 08:09 buhtz

Yup, thanks. And should also switch to declarative setup.cfg

klieret avatar Sep 27 '22 14:09 klieret

Here (in the develop branch!) you can see a real-life example. https://codeberg.org/buhtz/hyperorg/src/branch/develop

buhtz avatar Sep 27 '22 15:09 buhtz

Thanks (I've also adopted that for newer projects :) )

klieret avatar Sep 27 '22 15:09 klieret