Python doesn't have the notion of dependencies.
Pip doesn't have dev dependencies, poetry does.
It's already available behind a feature flag.
https://pythoninsider.blogspot.com/2020/07/upgrade-pip-20-2-...
1. setup.py with self contained dependencies (this is my general preference)
2. setup.py loading from requirements.txt
3. Standalone requirements.txt
4. requirements.txt generated from requirements.in (or similar)
5. pyproject.toml + Poetry with a dependencies section
It’s also a tiny subset of what the parent describes.
I do sometimes feel that people are making rube goldberg machines out of their package management in an attempt to avoid just writing down all their deps.
Isn't that what pip freeze is for?
Oh and I forgot about setup.py. That too.
Please use something like Poetry to manage deps.