From 6a1cf8a4e570b34765ac946edc9dbb3cd5f146a9 Mon Sep 17 00:00:00 2001 From: Scott Date: Mon, 10 Jan 2022 17:49:58 -0800 Subject: [PATCH] Add requirements.txt --- arper.py | 1 - bootstrap.py | 1 + pip_install.sh | 7 +------ requirements.txt | 24 ++++++++++++++++++++++++ 4 files changed, 26 insertions(+), 7 deletions(-) create mode 100644 requirements.txt diff --git a/arper.py b/arper.py index 8f419f9..c187023 100644 --- a/arper.py +++ b/arper.py @@ -130,7 +130,6 @@ class Arper(persistent.Persistent): f'{cache_file} sucks, only {len(cached_state)} entries. Deleting it.' ) os.remove(cache_file) - logger.debug('No usable saved state found') return None diff --git a/bootstrap.py b/bootstrap.py index c445aef..738fcea 100644 --- a/bootstrap.py +++ b/bootstrap.py @@ -60,6 +60,7 @@ def handle_uncaught_exception(exc_type, exc_value, exc_tb): Top-level exception handler for exceptions that make it past any exception handlers in the python code being run. Logs the error and stacktrace then maybe attaches a debugger. + """ global original_hook msg = f'Unhandled top level exception {exc_type}' diff --git a/pip_install.sh b/pip_install.sh index 1ee08c9..3982748 100755 --- a/pip_install.sh +++ b/pip_install.sh @@ -5,9 +5,4 @@ set -e python3 -m ensurepip --upgrade -for x in pip wheel aiohttp antlr4-python3-runtime astral bankroll bitstring python-dateutil \ - grpcio holidays cloudpickle dill numpy pandas protobuf psutil pyserial pytype \ - pychromecast requests SpeechRecognition sklearn scikit-learn nltk; do - echo "--- Installing ${x} ---" - pip install -U ${x} -done +pip install requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..7921da6 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,24 @@ +pip install wheel +pip install aiohttp +pip install antlr4-python3-runtime +pip install astral +pip install bitstring +pip install python-dateutil +pip install grpcio +pip install holidays +pip install cloudpickle +pip install dill +pip install numpy +pip install pandas +pip install protobuf +pip install psutil +pip install pyserial +pip install pytype +pip install pychromecast +pip install requests +pip install SpeechRecognition +pip install scikit-learn +pip install nltk +pip install meross-iot + + -- 2.45.2