mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

- Use --locked to assert that the lockfile won't change, so we need to explicitly 'uv lock' when making changes. Still trying to get to the bottom of why the lockfile sometimes has editable entries, which break things when switching between platforms. - Exclude __pycache__ from wheels - Move the typing stubs to our dev deps (https://github.com/ankitects/anki/pull/4074#pullrequestreview-2948088436)
85 lines
1.6 KiB
TOML
85 lines
1.6 KiB
TOML
[project]
|
|
name = "aqt"
|
|
dynamic = ["version"]
|
|
requires-python = ">=3.9"
|
|
license = "AGPL-3.0-or-later"
|
|
dependencies = [
|
|
"beautifulsoup4",
|
|
"flask",
|
|
"flask_cors",
|
|
"jsonschema",
|
|
"requests",
|
|
"send2trash",
|
|
"waitress>=2.0.0",
|
|
"psutil; sys.platform == 'win32'",
|
|
"pywin32; sys.platform == 'win32'",
|
|
"anki-mac-helper; sys.platform == 'darwin'",
|
|
"pip-system-certs!=5.1",
|
|
"pyqt6>=6.2",
|
|
"pyqt6-webengine>=6.2",
|
|
# anki dependency is added dynamically in hatch_build.py with exact version
|
|
]
|
|
|
|
[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",
|
|
]
|
|
qt69 = [
|
|
"pyqt6==6.9.1",
|
|
"pyqt6-qt6==6.9.1",
|
|
"pyqt6-webengine==6.9.0",
|
|
"pyqt6-webengine-qt6==6.9.1",
|
|
"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" },
|
|
{ extra = "qt69" },
|
|
],
|
|
]
|
|
|
|
[tool.uv.sources]
|
|
anki = { workspace = true }
|
|
|
|
[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"
|