mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
bump minimum python version from 3.6 to 3.7
This commit is contained in:
parent
fe18594c50
commit
8b94d69abc
8 changed files with 8 additions and 12 deletions
2
.github/workflows/checks.yml
vendored
2
.github/workflows/checks.yml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
|||
- name: Set up python
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: '3.6'
|
||||
python-version: '3.7
|
||||
- name: Set up protoc
|
||||
uses: Arduino/actions/setup-protoc@master
|
||||
- name: Set up node
|
||||
|
|
|
@ -9,7 +9,7 @@ provide support for problems you encounter when running from source.
|
|||
|
||||
To start, make sure you have the following installed:
|
||||
|
||||
- Python 3.6+
|
||||
- Python 3.7+
|
||||
- portaudio
|
||||
- mpv
|
||||
- lame
|
||||
|
|
|
@ -6,8 +6,8 @@ import sys
|
|||
from anki.buildinfo import version
|
||||
from anki.storage import Collection
|
||||
|
||||
if sys.version_info[0] < 3 or sys.version_info[1] < 5:
|
||||
raise Exception("Anki requires Python 3.5+")
|
||||
if sys.version_info[0] < 3 or sys.version_info[1] < 7:
|
||||
raise Exception("Anki requires Python 3.7+")
|
||||
|
||||
if sys.getfilesystemencoding().lower() in ("ascii", "ansi_x3.4-1968"):
|
||||
raise Exception("Anki requires a UTF-8 locale.")
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[mypy]
|
||||
python_version = 3.6
|
||||
python_version = 3.7
|
||||
pretty = true
|
||||
no_strict_optional = true
|
||||
show_error_codes = true
|
||||
|
|
|
@ -13,7 +13,7 @@ setuptools.setup(
|
|||
url="https://apps.ankiweb.net",
|
||||
packages=setuptools.find_packages(".", exclude=["tests"]),
|
||||
classifiers=[],
|
||||
python_requires=">=3.6",
|
||||
python_requires=">=3.7",
|
||||
install_requires=[
|
||||
"beautifulsoup4",
|
||||
"requests",
|
||||
|
|
|
@ -52,7 +52,3 @@ qtpoint = QT_VERSION & 0xFF
|
|||
|
||||
if qtmajor != 5 or qtminor < 9 or qtminor == 10:
|
||||
raise Exception("Anki does not support your Qt version.")
|
||||
|
||||
# GUI code assumes python 3.6+
|
||||
if sys.version_info[0] < 3 or sys.version_info[1] < 6:
|
||||
raise Exception("Anki requires Python 3.6+")
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[mypy]
|
||||
python_version = 3.6
|
||||
python_version = 3.7
|
||||
pretty = true
|
||||
no_strict_optional = true
|
||||
show_error_codes = true
|
||||
|
|
|
@ -26,7 +26,7 @@ setuptools.setup(
|
|||
packages=setuptools.find_packages(".", exclude=["tests"]),
|
||||
data_files=extra_files,
|
||||
classifiers=[],
|
||||
python_requires=">=3.6",
|
||||
python_requires=">=3.7",
|
||||
install_requires=[
|
||||
"beautifulsoup4",
|
||||
"requests",
|
||||
|
|
Loading…
Reference in a new issue