Browse Source

Change allow Python 3.9.4.

Change prevent use of Python 3.9.3 and alert users to upgrade to 3.9.4 due to a recall.
tags/release_0.23.16^2
JackDandy 4 years ago
parent
commit
6d5b9ce3be
  1. 8
      CHANGES.md
  2. 8
      gui/slick/interfaces/default/inc_top.tmpl
  3. 3
      sickgear.py

8
CHANGES.md

@ -1,4 +1,10 @@
### 0.23.15 (2021-04-03 10:05:00 UTC)
### 0.23.16 (2021-04-05 23:45:00 UTC)
* Change allow Python 3.9.4
* Change prevent use of Python 3.9.3 and alert users to upgrade to 3.9.4 due to a recall
### 0.23.15 (2021-04-03 10:05:00 UTC)
* Change allow Python 3.8.9 and 3.9.3

8
gui/slick/interfaces/default/inc_top.tmpl

@ -336,9 +336,13 @@
#end if
##
#set $py_ver = sys.version_info[:3]
#if $py_ver in [(3, 8, 1), (3, 7, 6)]:
#if $py_ver in [(3, 9, 3), (3, 8, 1), (3, 7, 6)]:
<div class="alert alert-danger upgrade-notification upgrade-py" role="alert">
#if (3, 8, 1) == $py_ver:
#if (3, 9, 3) == $py_ver:
<p>Your installed Python 3.9.3 has been <a href="<%= anon_url('https://bugs.python.org/issue43710') %>" onclick="window.open(this.href);return !1;">recalled</a> due to breakage with C extensions<br>
Please replace with Python <b>3.9.4</b>: <a href="<%= anon_url('https://www.python.org/downloads/') %>" onclick="window.open(this.href);return !1;">download here</a>
</p>
#elif (3, 8, 1) == $py_ver:
<p>Your installed Python 3.8.1 has a <a href="<%= anon_url('https://github.com/python/cpython/commit/ea316fd21527dec53e704a5b04833ac462ce3863') %>" onclick="window.open(this.href);return !1;">critical issue</a> affecting the parsing of URLs<br>
Please replace with Python <b>3.8.2</b>, <b>3.8.0</b>, or older: <a href="<%= anon_url('https://www.python.org/downloads/') %>" onclick="window.open(this.href);return !1;">download here</a>
</p>

3
sickgear.py

@ -40,7 +40,8 @@ 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, 9)), ((3, 9, 0), (3, 9, 3))] # inclusive version ranges
versions = [((2, 7, 9), (2, 7, 18)), ((3, 9, 0), (3, 9, 2)),
((3, 7, 1), (3, 8, 9)), ((3, 9, 4), (3, 9, 4))] # 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(

Loading…
Cancel
Save