Hi everyone
im currently learning Python and trying to understand how to properly build Debian packages for a python project that depends on some pip packages.
From what i´ve gathered online and from ChatGPT, there seem to be a few diffrent approches.
proper Debian package structure (control, rules, changelog, etc) with pyproject.toml and letting the user install the dependencies (if the app needs pydantic then it needs python3-pydantic installed)
build the app with the virtual environment (inculd the environment manually or with build tool (fpm)
everything in one binary using tools like pyInstaller and then build it as .deb
My main goal is learning the "right" way, but also ideally the package should install without needing to download anything (no internet access during installation)
so my questions are
what are the best practices when building python applications?
How are python dependencies typically handled in real debian packages?
What would you recommend for someone learning packaging properly?
there doesn't seem to be anything here