From e59ebe153f5d8f09321a82d9d2946ee6a5488688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Donner?= Date: Tue, 11 Jul 2023 16:50:59 +0000 Subject: [PATCH 1/5] downgrade gitpod to python3.7 --- .gitpod.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 000000000..c34a57846 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,10 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) +# and commit this file to your remote git repository to share the goodness with others. + +# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart +image: gitpod/workspace-python-3.7 + +tasks: + - init: pip install -r requirements.txt + From 9be0897778848610ffda578f46f194db4dfcf946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Donner?= Date: Wed, 12 Jul 2023 15:08:42 +0000 Subject: [PATCH 2/5] drop some useless stuff on python visu page --- v5-unity/visualize.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/v5-unity/visualize.html b/v5-unity/visualize.html index 043a23c45..b9c52b81e 100644 --- a/v5-unity/visualize.html +++ b/v5-unity/visualize.html @@ -8,7 +8,7 @@ --> - Visualize Python, Java, JavaScript, C, C++, Ruby code execution + Visualize Python code execution @@ -23,7 +23,6 @@ - From 3eba3e13ab126ed1e181f61c74b4e0d339c5d998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Donner?= Date: Wed, 12 Jul 2023 15:09:01 +0000 Subject: [PATCH 3/5] remove some limits --- v5-unity/pg_logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v5-unity/pg_logger.py b/v5-unity/pg_logger.py index 5e7d58783..1aa96cab6 100644 --- a/v5-unity/pg_logger.py +++ b/v5-unity/pg_logger.py @@ -53,7 +53,7 @@ # upper-bound on the number of executed lines, in order to guard against # infinite loops #MAX_EXECUTED_LINES = 300 -MAX_EXECUTED_LINES = 1000 # on 2016-05-01, I increased the limit from 300 to 1000 for Python due to popular user demand! and I also improved the warning message +MAX_EXECUTED_LINES = 3000 # on 2016-05-01, I increased the limit from 300 to 1000 for Python due to popular user demand! and I also improved the warning message #DEBUG = False DEBUG = True @@ -167,7 +167,7 @@ def write(self, s): ALLOWED_STDLIB_MODULE_IMPORTS = ('math', 'random', 'time', 'datetime', 'functools', 'itertools', 'operator', 'string', 'collections', 're', 'json', - 'heapq', 'bisect', 'copy', 'hashlib', 'typing', + 'heapq', 'bisect', 'copy', 'hashlib', 'typing', 'os', 'sys', 'platform', # the above modules were first added in 2012-09 # and then incrementally appended to up until # 2016-ish (see git blame logs) From a7f4a9705224aab5cba324640c91ec42e8735ab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Donner?= Date: Wed, 12 Jul 2023 14:12:09 +0200 Subject: [PATCH 4/5] upgrade to python 3.11 --- .gitignore | 2 ++ .gitpod.yml | 2 +- requirements.txt | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6e1dff2bd..15152d2ff 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,5 @@ v4-cokapi/backends/javascript/node-v6.0.0-darwin-x64/ # this .gz file is too big to fit into a github repo v4-cokapi/backends/java/jdk-8u20-linux-x64.tar.gz + +venv \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml index c34a57846..beeb451dd 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -3,7 +3,7 @@ # and commit this file to your remote git repository to share the goodness with others. # Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart -image: gitpod/workspace-python-3.7 +image: gitpod/workspace-python-3.11 tasks: - init: pip install -r requirements.txt diff --git a/requirements.txt b/requirements.txt index 51bd392b5..e86706452 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -bottle==0.12.17 -gunicorn==19.9.0 +bottle==0.12.25 +gunicorn==19 From ab6840cb42e2b4cc684bff94926573691f214cd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Donner?= Date: Wed, 12 Jul 2023 14:36:40 +0200 Subject: [PATCH 5/5] remove dangerous modules added only for testing purposes --- v5-unity/pg_logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v5-unity/pg_logger.py b/v5-unity/pg_logger.py index 1aa96cab6..931372c26 100644 --- a/v5-unity/pg_logger.py +++ b/v5-unity/pg_logger.py @@ -167,7 +167,7 @@ def write(self, s): ALLOWED_STDLIB_MODULE_IMPORTS = ('math', 'random', 'time', 'datetime', 'functools', 'itertools', 'operator', 'string', 'collections', 're', 'json', - 'heapq', 'bisect', 'copy', 'hashlib', 'typing', 'os', 'sys', 'platform', + 'heapq', 'bisect', 'copy', 'hashlib', 'typing', # the above modules were first added in 2012-09 # and then incrementally appended to up until # 2016-ish (see git blame logs)