From 882e848733499384c45a5ca3052836469a4b6f23 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Tue, 31 Aug 2021 00:55:12 +0100 Subject: [PATCH] Change allow Python 3.8.12, 3.9.7, and 3.10.0 --- CHANGES.md | 7 ++++++- sickgear.py | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index c1a4c9a..455b6a5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 0.24.16 (2021-08-28 16:05:00 UTC) +### 0.24.17 (2021-08-31 01:00:00 UTC) + +* Change allow Python 3.8.12, 3.9.7, and 3.10.0 + + +### 0.24.16 (2021-08-28 16:05:00 UTC) * Update Windows recommended modules lxml, pip, regex, setuptools, and add cffi, python-Levenshtein * Change newznab provider add handler for http response code 401 diff --git a/sickgear.py b/sickgear.py index a43e4c6..857ebbc 100755 --- a/sickgear.py +++ b/sickgear.py @@ -39,8 +39,9 @@ warnings.filterwarnings('ignore', module=r'.*ssl_.*', message='.*SSLContext obje warnings.filterwarnings('ignore', module=r'.*zoneinfo.*', message='.*file or directory.*') warnings.filterwarnings('ignore', message='.*deprecated in cryptography.*') -versions = [((2, 7, 9), (2, 7, 18)), ((3, 7, 1), (3, 8, 11)), - ((3, 9, 0), (3, 9, 2)), ((3, 9, 4), (3, 9, 6))] # inclusive version ranges +versions = [((2, 7, 9), (2, 7, 18)), ((3, 7, 1), (3, 8, 12)), + ((3, 9, 0), (3, 9, 2)), ((3, 9, 4), (3, 9, 7)), + ((3, 10, 0), (3, 10, 0))] # inclusive version ranges if not any(list(map(lambda v: v[0] <= sys.version_info[:3] <= v[1], versions))) and not int(os.environ.get('PYT', 0)): print('Python %s.%s.%s detected.' % sys.version_info[:3]) print('Sorry, SickGear requires a Python version %s' % ', '.join(map(