Anki/qt/pyproject.toml
Damien Elmes b32a972f1f Extend launcher to other platforms + more
- Switch to Qt 6.8 for repo default, as 6.7 depends on an older
libwebp/tiff which is unavailable on newer installs
- Drop tools/mac-x86, as we no longer need to test against Qt 5
- Add flags to cross compile wheels on Mac and Linux
- Bump glibc target to 2_36, building on Debian Stable
- Increase mpv timeout on macOS to allow for initial gatekeeper checks
- Ship both arm64 and amd64 uv on Linux, with a bash stub to pick
the appropriate arch.
2025-06-16 19:37:52 +07:00

80 lines
1.5 KiB
TOML

[project]
name = "aqt"
# dynamic = ["version"]
version = "0.1.2"
requires-python = ">=3.9"
license = "AGPL-3.0-or-later"
dependencies = [
"beautifulsoup4==4.12.3", # temporary pin during uv migration
"flask",
"flask_cors",
"jsonschema",
"requests",
"send2trash",
"waitress>=2.0.0",
"psutil; sys.platform == 'win32'",
"pywin32; sys.platform == 'win32'",
"pip-system-certs",
"mock",
"types-decorator",
"types-flask",
"types-flask-cors",
"types-markdown",
"types-waitress",
"types-pywin32",
"pyqt6>=6.2",
"pyqt6-webengine>=6.2",
]
[project.optional-dependencies]
audio = [
"anki-audio==0.1.0; sys.platform == 'win32' or sys.platform == 'darwin'",
]
qt66 = [
"pyqt6==6.6.1",
"pyqt6-qt6==6.6.2",
"pyqt6-webengine==6.6.0",
"pyqt6-webengine-qt6==6.6.2",
"pyqt6_sip==13.6.0",
]
qt67 = [
"pyqt6==6.7.1",
"pyqt6-qt6==6.7.3",
"pyqt6-webengine==6.7.0",
"pyqt6-webengine-qt6==6.7.3",
"pyqt6_sip==13.10.2",
]
qt = [
"pyqt6==6.8.0",
"pyqt6-qt6==6.8.1",
"pyqt6-webengine==6.8.0",
"pyqt6-webengine-qt6==6.8.1",
"pyqt6_sip==13.10.2",
]
[tool.uv]
conflicts = [
[
{ extra = "qt" },
{ extra = "qt66" },
{ extra = "qt67" },
],
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project.scripts]
anki = "aqt:run"
[tool.hatch.build.targets.wheel]
packages = ["aqt"]
exclude = ["**/*.scss", "**/*.ui"]
[tool.hatch.version]
source = "code"
path = "../python/version.py"
[tool.hatch.build.hooks.custom]
path = "hatch_build.py"