From 9fc1bc86aa9dc26a270a0b4c0575bef24365f085 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 23 Apr 2025 17:56:06 +1000 Subject: [PATCH] Declare dependency on typing_extensions venv as things like black depended on it. When running in a packaged build, it wasn't being included, and Anki was failing to start. I've added it to the anki module instead of aqt, even though only the latter is currently using it, so that we don't accidentally introduce the same bug in the future when using typing_extensions from within libanki. (cherry picked from commit 72abb7ec5bfdb0e00029f721fc5f5cf13b5085a4) --- python/requirements.anki.in | 1 + python/requirements.bundle.txt | 4 ++++ python/requirements.dev.txt | 1 + 3 files changed, 6 insertions(+) diff --git a/python/requirements.anki.in b/python/requirements.anki.in index 001a5a7d5..45796e6fe 100644 --- a/python/requirements.anki.in +++ b/python/requirements.anki.in @@ -6,3 +6,4 @@ protobuf>=4.21 requests[socks] distro; sys_platform != "darwin" and sys_platform != "win32" psutil; sys_platform == "win32" +typing_extensions diff --git a/python/requirements.bundle.txt b/python/requirements.bundle.txt index 9e67ffd7a..1a2ffdbd9 100644 --- a/python/requirements.bundle.txt +++ b/python/requirements.bundle.txt @@ -382,6 +382,10 @@ tomli==2.0.1 \ # via # build # pip-tools +typing-extensions==4.13.2 \ + --hash=sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c \ + --hash=sha256:e6c81219bd689f51865d9e372991c540bda33a0379d5573cddb9a3a23f7caaef + # via -r requirements.anki.in urllib3==2.2.2 \ --hash=sha256:a448b2f64d686155468037e1ace9f2d2199776e17f0a46610480d311f73e3472 \ --hash=sha256:dd505485549a7a552833da5e6063639d0d177c04f23bc3864e41e5dc5f612168 diff --git a/python/requirements.dev.txt b/python/requirements.dev.txt index fa847531f..2ad1d9d15 100644 --- a/python/requirements.dev.txt +++ b/python/requirements.dev.txt @@ -597,6 +597,7 @@ typing-extensions==4.12.2 \ --hash=sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d \ --hash=sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8 # via + # -r requirements.anki.in # astroid # black # fluent-syntax