From 7a344cfc1249d5c59ec7d607bf623b55f907305d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Os=C3=B3rio?= Date: Tue, 21 Nov 2023 23:42:18 -0800 Subject: [PATCH] Support PyPy3.9 for cph-submit (#393) Python3.6 is ancient. PyPy3.6 (7.3.0) is significantly slower than the most recent PyPy3.9 (7.3.9 64-bit) version supported by codeforces. This adds support for the most recent version and makes it default for Python submissions. Also, fix the version number for PyPy3.6. --- package.json | 3 ++- src/config.ts | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 7945c5f..57a4876 100644 --- a/package.json +++ b/package.json @@ -138,9 +138,10 @@ }, "cph.language.python.SubmissionCompiler": { "type": "string", - "default": "PyPy 3.6 (7.2.0)", + "default": "PyPy 3.9.10 (7.3.9, 64bit)", "enum": [ "PyPy 3.6 (7.2.0)", + "PyPy 3.9.10 (7.3.9, 64bit)", "Python 3.7.2", "PyPy 2.7 (7.2.0)", "Python 2.7.15" diff --git a/src/config.ts b/src/config.ts index 0598037..bf82478 100644 --- a/src/config.ts +++ b/src/config.ts @@ -36,10 +36,11 @@ export default { 'Java 11.0.6': 60, 'Java 1.8.0_241': 36, 'Node.js 15.8.0 (64bit)': 55, - 'PyPy 3.6 (7.2.0)': 41, - 'Python 3.7.2': 31, - 'PyPy 2.7 (7.2.0)': 40, - 'Python 2.7.15': 7, + 'PyPy 3.6.9 (7.3.0)': 41, + 'PyPy 3.9.10 (7.3.9, 64bit)': 70, + 'Python 3.8.10': 31, + 'PyPy 2.7.13 (7.3.0)': 40, + 'Python 2.7.18': 7, 'GNU GCC C11 5.1.0': 43, 'Go 1.19.5': 32, 'Rust 1.66.0 (2021)': 75,