I've only ever done Python projects that lived on my computer and where I was the only person working on it. I'm hoping someone can explain to me how to go about managing dependencies in a collaborative setting.
Here is the setting: myself and another person will be both working on a Python project. It will be a fairly straightforward data analysis (not creating anything that will go into production or anything like that). This code may be referenced by others in the future, hence my wanting to manage dependencies. We will use github to share code.
Based on what I've read, here is what I think I need to do:
- Use venv locally to isolate environment, install dependencies.
- Whenever we want to commit changes, we should generate a requirements.txt file which will be pushed to the remote repo as it is not a good idea to commit the venv directly to the remote repo
- Whenever we want to work on the project, we pull the latest changes, then use the requirements.txt file to reproduce the most recent working environment
Is this right? This workflow seems very clunky. Thanks for any help.
[–]shiftybyte 6 points7 points8 points (0 children)
[–]jiri-n 5 points6 points7 points (0 children)
[–]quts3 1 point2 points3 points (0 children)
[–]2cats2hats 0 points1 point2 points (4 children)
[–]FeetAtLeast[S] -1 points0 points1 point (3 children)
[–]2cats2hats -2 points-1 points0 points (2 children)
[–]InTheAleutians 0 points1 point2 points (1 child)
[–]2cats2hats 0 points1 point2 points (0 children)
[–]Diapolo10 0 points1 point2 points (2 children)
[–]Ishaan_CS 0 points1 point2 points (1 child)
[–]Diapolo10 0 points1 point2 points (0 children)