mirror of
https://github.com/ankitects/anki.git
synced 2026-09-10 14:38:10 -04:00
## Linked issue Closes #5369 ## Summary This updates to Briefcase 0.4.5 for some improvements: - Fix signal handling (#5369). - Pin Python support packages and stub binaries to known hashes (https://github.com/beeware/briefcase/issues/2980). - Use uv for setting up the Briefcase environment and installing dependencies (https://github.com/beeware/briefcase/issues/2231). ## Steps to reproduce (before) Confirm #5369 is fixed using the example code in the linked forum post. ## How to test (after) - Run `./ninja installer` to test the build. - Run Python tests: `just test-py`. - Test the CI build artifacts: https://github.com/ankitects/anki/actions/runs/34235392781
59 lines
1.3 KiB
TOML
59 lines
1.3 KiB
TOML
[project]
|
|
name = "anki-dev"
|
|
version = "0.0.0"
|
|
description = "Local-only environment"
|
|
requires-python = ">=3.12"
|
|
classifiers = ["Private :: Do Not Upload"]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pre-commit",
|
|
"mypy",
|
|
"mypy-protobuf",
|
|
"ruff",
|
|
"pytest",
|
|
"pytest-mock",
|
|
"PyChromeDevTools",
|
|
"wheel",
|
|
"hatchling", # for type checking hatch_build.py files
|
|
"mock",
|
|
"types-protobuf",
|
|
"types-requests",
|
|
"types-orjson",
|
|
"types-decorator",
|
|
"types-flask",
|
|
"types-flask-cors",
|
|
"types-markdown",
|
|
"types-waitress",
|
|
"types-pywin32",
|
|
"types-mock",
|
|
"briefcase>=0.4.5",
|
|
"coverage>=7.15.3",
|
|
"complexipy>=5.6.0",
|
|
"cogapp>=3.6.0",
|
|
]
|
|
docs = [
|
|
"sphinx",
|
|
"myst-parser",
|
|
"sphinx-book-theme",
|
|
"sphinx-autoapi",
|
|
"sphinx-autobuild>=2024.10.3",
|
|
"click-extra[sphinx]", # for GitHub alerts
|
|
"sphinxcontrib-mermaid>=2.1.0",
|
|
]
|
|
|
|
# Local resolution guard; keep in sync with Dependabot cooldown.
|
|
[tool.uv]
|
|
exclude-newer = "7 days"
|
|
exclude-newer-package = { anki-mac-helper = false, anki-audio = false, briefcase = false }
|
|
required-version = ">=0.9.25"
|
|
|
|
[tool.uv.workspace]
|
|
members = ["pylib", "qt", "qt/installer/briefcase_plugins"]
|
|
|
|
[[tool.uv.index]]
|
|
name = "testpypi"
|
|
url = "https://test.pypi.org/simple/"
|
|
publish-url = "https://test.pypi.org/legacy/"
|
|
explicit = true
|