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)
32 lines
685 B
TOML
32 lines
685 B
TOML
[project]
|
|
name = "anki"
|
|
dynamic = ["version"]
|
|
requires-python = ">=3.9"
|
|
license = "AGPL-3.0-or-later"
|
|
dependencies = [
|
|
"beautifulsoup4",
|
|
"decorator",
|
|
"markdown",
|
|
"orjson",
|
|
"protobuf>=4.21",
|
|
"requests[socks]",
|
|
# remove after we update to min python 3.11+
|
|
"typing_extensions",
|
|
# platform-specific dependencies
|
|
"distro; sys_platform != 'darwin' and sys_platform != 'win32'",
|
|
"psutil; sys_platform == 'win32'",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["anki"]
|
|
|
|
[tool.hatch.version]
|
|
source = "code"
|
|
path = "../python/version.py"
|
|
|
|
[tool.hatch.build.hooks.custom]
|
|
path = "hatch_build.py"
|