summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2022-02-07 13:56:00 -0800
committerScott Gasch <[email protected]>2022-02-07 13:56:00 -0800
commitdfc2136113428b99719c49a57d3ce68391dcb307 (patch)
tree66ec5ce7486ec5b2856f0c2f645eb8d66d1c5ab1 /README
parent6e8e3458d9641394b8f061d55ba569a72e6a8493 (diff)
How to do the thing.
Diffstat (limited to 'README')
-rw-r--r--README42
1 files changed, 42 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..e94da3b
--- /dev/null
+++ b/README
@@ -0,0 +1,42 @@
+
+To set up a new testing environment:
+
+1. Create a python virtual environment:
+
+ python3 -m venv /path/to/your/venv --system-site-packages
+
+2. Checkout a copy of the utils project.
+
+ git clone ssh://[email protected]/usr/local/git/base/python_utils.git
+
+ Your SSH identity will need to be authorized by the [email protected] user.
+
+3. Make the virtual environment "exclusive" by editing bin/activate to
+ clear PYTHONPATH, if set, by adding this:
+
+ if [ -n "${PYTHONPATH}" ] ; then
+ unset PYTHONPATH
+ fi
+ export PYTHONPATH=<your venv>/<your dev root>
+
+4. Install the dependencies:
+
+ cd <your venv>/<your dev root>
+ for file in $( cat ./requirements.txt ); do
+ pip install $file
+ done
+
+5. Run the unittests to make sure they all work:
+
+ cd <your venv>/<your dev root>/tests
+ ./run_tests -a
+
+6. Create a local git branch
+
+ git checkout -b your_dev
+
+7. Install git pre-commit hooks from master:
+
+ [s]cp /home/scott/lib/python_modules/.git/hooks/pre-commit .
+
+That's it.