2 To set up a new testing environment:
4 1. Create a python virtual environment:
6 python3 -m venv /path/to/your/venv --system-site-packages
8 2. Checkout a copy of the utils project.
14 3. Make the virtual environment "exclusive" by editing bin/activate to
15 clear PYTHONPATH, if set, by adding this:
17 if [ -n "${PYTHONPATH}" ] ; then
20 export PYTHONPATH=<your venv>/<your dev root>
22 4. Install the dependencies:
24 cd <your venv>/<your dev root>
25 for file in $( cat ./requirements.txt ); do
29 5. Run the unittests to make sure they all work:
31 cd <your venv>/<your dev root>/tests
34 6. Create a local git branch
36 git checkout -b your_dev
38 7. Install git pre-commit hooks from master:
40 [s]cp /home/scott/lib/python_modules/.git/hooks/pre-commit .