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
|
- name: Set up python
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: '3.6'
|
python-version: '3.7
|
||||||
- name: Set up protoc
|
- name: Set up protoc
|
||||||
uses: Arduino/actions/setup-protoc@master
|
uses: Arduino/actions/setup-protoc@master
|
||||||
- name: Set up node
|
- 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:
|
To start, make sure you have the following installed:
|
||||||
|
|
||||||
- Python 3.6+
|
- Python 3.7+
|
||||||
- portaudio
|
- portaudio
|
||||||
- mpv
|
- mpv
|
||||||
- lame
|
- lame
|
||||||
|
|
|
@ -6,8 +6,8 @@ import sys
|
||||||
from anki.buildinfo import version
|
from anki.buildinfo import version
|
||||||
from anki.storage import Collection
|
from anki.storage import Collection
|
||||||
|
|
||||||
if sys.version_info[0] < 3 or sys.version_info[1] < 5:
|
if sys.version_info[0] < 3 or sys.version_info[1] < 7:
|
||||||
raise Exception("Anki requires Python 3.5+")
|
raise Exception("Anki requires Python 3.7+")
|
||||||
|
|
||||||
if sys.getfilesystemencoding().lower() in ("ascii", "ansi_x3.4-1968"):
|
if sys.getfilesystemencoding().lower() in ("ascii", "ansi_x3.4-1968"):
|
||||||
raise Exception("Anki requires a UTF-8 locale.")
|
raise Exception("Anki requires a UTF-8 locale.")
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[mypy]
|
[mypy]
|
||||||
python_version = 3.6
|
python_version = 3.7
|
||||||
pretty = true
|
pretty = true
|
||||||
no_strict_optional = true
|
no_strict_optional = true
|
||||||
show_error_codes = true
|
show_error_codes = true
|
||||||
|
|
|
@ -13,7 +13,7 @@ setuptools.setup(
|
||||||
url="https://apps.ankiweb.net",
|
url="https://apps.ankiweb.net",
|
||||||
packages=setuptools.find_packages(".", exclude=["tests"]),
|
packages=setuptools.find_packages(".", exclude=["tests"]),
|
||||||
classifiers=[],
|
classifiers=[],
|
||||||
python_requires=">=3.6",
|
python_requires=">=3.7",
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"beautifulsoup4",
|
"beautifulsoup4",
|
||||||
"requests",
|
"requests",
|
||||||
|
|
|
@ -52,7 +52,3 @@ qtpoint = QT_VERSION & 0xFF
|
||||||
|
|
||||||
if qtmajor != 5 or qtminor < 9 or qtminor == 10:
|
if qtmajor != 5 or qtminor < 9 or qtminor == 10:
|
||||||
raise Exception("Anki does not support your Qt version.")
|
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]
|
[mypy]
|
||||||
python_version = 3.6
|
python_version = 3.7
|
||||||
pretty = true
|
pretty = true
|
||||||
no_strict_optional = true
|
no_strict_optional = true
|
||||||
show_error_codes = true
|
show_error_codes = true
|
||||||
|
|
|
@ -26,7 +26,7 @@ setuptools.setup(
|
||||||
packages=setuptools.find_packages(".", exclude=["tests"]),
|
packages=setuptools.find_packages(".", exclude=["tests"]),
|
||||||
data_files=extra_files,
|
data_files=extra_files,
|
||||||
classifiers=[],
|
classifiers=[],
|
||||||
python_requires=">=3.6",
|
python_requires=">=3.7",
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"beautifulsoup4",
|
"beautifulsoup4",
|
||||||
"requests",
|
"requests",
|
||||||
|
|
Loading…
Reference in a new issue