News for hackers. Stuff that matters.

iggy_knights

Re:How to create a Python package in 2022 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.
Re:How to create a Python package in 2022 on Thursday July 28, 2022 @10:44AM (#32265028)
Good thing about finally converging on some sort of standard means tools become more interoperable:

Another good tool (which was endorsed by the PyPA) is Hatch - https://hatch.pypa.io/latest/environment/

I currently use PDM because it supports conda virtual environments for isolation, but am keeping an eye on Hatch.