update wheel definitions to require Python 3.9; make PyQt optional
While we do require PyQt, it's not possible to declare that we require either 5 or 6, and so we need to mark it as optional. Instead, we provide optional dependencies, so the user can e.g. 'pip install aqt[qt6]'
This commit is contained in:
parent
36fdc607c6
commit
0d246c9e0b
@ -76,7 +76,7 @@ py_wheel(
|
|||||||
"//platforms:linux_x86_64": "manylinux2014_x86_64",
|
"//platforms:linux_x86_64": "manylinux2014_x86_64",
|
||||||
"//platforms:linux_arm64": "manylinux2014_aarch64",
|
"//platforms:linux_arm64": "manylinux2014_aarch64",
|
||||||
}),
|
}),
|
||||||
python_tag = "cp38",
|
python_tag = "cp39",
|
||||||
python_version = ">=3.9",
|
python_version = ">=3.9",
|
||||||
requires = [
|
requires = [
|
||||||
"beautifulsoup4",
|
"beautifulsoup4",
|
||||||
|
@ -107,10 +107,20 @@ py_wheel(
|
|||||||
entry_points = {
|
entry_points = {
|
||||||
"console_scripts": ["anki = aqt:run"],
|
"console_scripts": ["anki = aqt:run"],
|
||||||
},
|
},
|
||||||
|
extra_requires = {
|
||||||
|
"qt5": [
|
||||||
|
"pyqt5>=5.14",
|
||||||
|
"pyqtwebengine",
|
||||||
|
],
|
||||||
|
"qt6": [
|
||||||
|
"pyqt6>=6.2",
|
||||||
|
"pyqt6-webengine>=6.2",
|
||||||
|
],
|
||||||
|
},
|
||||||
homepage = "https://apps.ankiweb.net",
|
homepage = "https://apps.ankiweb.net",
|
||||||
license = "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
|
license = "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
|
||||||
python_tag = "py3",
|
python_tag = "py3",
|
||||||
python_version = ">=3.8",
|
python_version = ">=3.9",
|
||||||
requires = [
|
requires = [
|
||||||
"beautifulsoup4",
|
"beautifulsoup4",
|
||||||
"requests",
|
"requests",
|
||||||
@ -119,12 +129,9 @@ py_wheel(
|
|||||||
"flask",
|
"flask",
|
||||||
"flask_cors",
|
"flask_cors",
|
||||||
"waitress",
|
"waitress",
|
||||||
"pyqt5>=5.12",
|
|
||||||
"pyqtwebengine",
|
|
||||||
'psutil; sys.platform == "win32"',
|
'psutil; sys.platform == "win32"',
|
||||||
'pywin32; sys.platform == "win32"',
|
'pywin32; sys.platform == "win32"',
|
||||||
'winrt==1.0.20239.1; sys.platform == "win32" and platform_release == "10" and python_version == "3.8"',
|
'winrt; sys.platform == "win32"',
|
||||||
'winrt; sys.platform == "win32" and platform_release == "10" and python_version >= "3.9"',
|
|
||||||
"anki==" + anki_version,
|
"anki==" + anki_version,
|
||||||
],
|
],
|
||||||
strip_path_prefixes = [
|
strip_path_prefixes = [
|
||||||
|
Loading…
Reference in New Issue
Block a user