Do you know how to run your Python package, not a script, from source?
For example,
`python src/drain_swamp/cli_scm_version.py get`
https://substack.com/profile/281001976-drain-swamp-author/note/c-74389406
drain-swamp author on Substack
Running python project code from source ### Why? python -m makes a huge assumption, that the package is installed. For a complex Python build backend, which needs to build itself, do not have that luxury. Catch 22; the .whl doesn't exist yet and the code being executed is more than just one py module. It's just exceedingly rare for a Python coder to know how to execute from source. The topic is nasty and the pep rudely lacks an implementation. So there is probably less than a dozen people on the planet familiar with the topic. Within each entrypoint, insert pep366 boilerplate. Here is a working implementation. [scm_version](https://github.com/msftcangoblowm/drain-swamp/blob/master/src/drain_swamp/cli_scm_version.py) ### Usage With an active venv, run from source code python src/drain_swamp/cli_scm_version.py get or run from the installed package code python -m scm-version get Into your entrypoint, copy+paste the boilerplate and try to run from source!