From 33deb4df80de733ac25c4d4061c18b2e0eac39e7 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Wed, 10 Aug 2022 10:11:27 -0700 Subject: [PATCH] Upgrade to python 3.9. --- executors.py | 2 +- requirements.txt | 4 ++++ tests/run_some_dependencies_test.py | 2 +- tests/run_tests.py | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/executors.py b/executors.py index 4269371..6485afa 100644 --- a/executors.py +++ b/executors.py @@ -993,7 +993,7 @@ class RemoteExecutor(BaseExecutor): self.status.record_processing_began(uuid) cmd = ( f'{SSH} {bundle.username}@{bundle.machine} ' - f'"source py38-venv/bin/activate &&' + f'"source py39-venv/bin/activate &&' f' /home/scott/lib/python_modules/remote_worker.py' f' --code_file {bundle.code_file} --result_file {bundle.result_file}"' ) diff --git a/requirements.txt b/requirements.txt index fe2a4ba..cafc33a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -24,3 +24,7 @@ readchar requests tinytuya wheel +sqlalchemy +pymysql +kazoo + diff --git a/tests/run_some_dependencies_test.py b/tests/run_some_dependencies_test.py index a7ee9b4..addb015 100755 --- a/tests/run_some_dependencies_test.py +++ b/tests/run_some_dependencies_test.py @@ -32,7 +32,7 @@ class RunSomeDependenciesTest(unittest.TestCase): ] for command in commands: try: - ret = exec_utils.cmd_exitcode(command, 15.0) + ret = exec_utils.cmd_exitcode(command, 25.0) self.assertEqual(0, ret) except Exception as e: logger.exception(e) diff --git a/tests/run_tests.py b/tests/run_tests.py index 6d6c0b8..bc1c09b 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -27,7 +27,7 @@ import text_utils import thread_utils logger = logging.getLogger(__name__) -args = config.add_commandline_args(f'({__file__})', 'Args related to __file__') +args = config.add_commandline_args(f'({__file__})', f'Args related to {__file__}') args.add_argument('--unittests', '-u', action='store_true', help='Run unittests.') args.add_argument('--doctests', '-d', action='store_true', help='Run doctests.') args.add_argument('--integration', '-i', action='store_true', help='Run integration tests.') -- 2.46.0