FjolleJagt / kbhff_selenium_tests

2 stars 1 forks source link

Python virtual environment #14

Closed cleborys closed 5 years ago

cleborys commented 5 years ago

To keep versions of packages used stable and synchronized between different machines, and to allow installs specific to the project without affecting the whole system. Use source kbhff-selenium-venv/bin/\activate to activate.

Also includes adding mail_credentials to gitignore, which is relevant later but allows that file to exist on my system without being checked into git and still being private. (It persists through changes of branches, so I'm running in danger of checking it in accidentally when changing to earlier branches.)

This should not ever conflict with anything.

cleborys commented 5 years ago

On second thought, checking the whole venv into git seems a bit overkill, pip freeze and generating a requirements.txt to install dependencies seems to be the better choice... See https://stackoverflow.com/questions/6590688/is-it-bad-to-have-my-virtualenv-directory-inside-my-git-repository