From: Scott Gasch Date: Mon, 7 Feb 2022 21:56:00 +0000 (-0800) Subject: How to do the thing. X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;h=dfc2136113428b99719c49a57d3ce68391dcb307;p=python_utils.git How to do the thing. --- 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://git@git.house/usr/local/git/base/python_utils.git + + Your SSH identity will need to be authorized by the git@git.house 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=/ + +4. Install the dependencies: + + cd / + for file in $( cat ./requirements.txt ); do + pip install $file + done + +5. Run the unittests to make sure they all work: + + cd //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. diff --git a/requirements.txt b/requirements.txt index 2302354..b6264c9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,29 +1,24 @@ +SpeechRecognition aiohttp -antlr4 - python3 - runtime +antlr4-python3-runtime +astral bitstring black cloudpickle coverage flake8 holidays +meross-iot mypy nltk numpy -opencv - python overrides -psutil -python - dateutil +pychromecast +pyserial +python-dateutil pytype pytz readchar requests +tinytuya wheel -astral -grpcio -meross - iot -pandas -protobuf -pychromecast -pyserial -scikit - learn -SpeechRecognition