OK, so let me preface this by saying that I’m a total newb at Python coming into this, so that is the perspective I’m writing this from.
Looking at packaging tools and managing dependencies for your project is a bit daunting in early 2022. There is a LOT of history with lots of different approaches over the years, meaning when you google for information on how to do this, you’ll be flooded with lots of rather conflicting-seeming information. As a solid grounding in the history, I found this series of three posts by Bernát Gábor to be very helpful.
While that set of articles was quite helpful, I’m still finding my way around this new-to-me ecosystem. As a result, I’m still trying to figure out how to best declare dependencies for a Python script I’m writing that is just meant to be run from the git checkout directory. It won’t be distributed, just run locally. It seems that depending on all this stuff for just making sure I pull in the correct dependencies I need for my script is a bit much, but it sure is interesting to learn about! ;]
I may or may not update this post if/when I learn more. No promises.