From 6b3c8be8893521fc854b5243abcd084b32231f71 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 26 Jul 2024 15:15:09 -0700 Subject: [PATCH] Fix django-stubs installation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit django-stubs has two packages that both need to be installed. Otherwise we get this error (and mypy_primer seems to hang forever). × No solution found when resolving dependencies: ╰─▶ Because only django-stubs-ext<5.0.3 is available and django-stubs==5.0.3 depends on django-stubs-ext>=5.0.3, we can conclude that django-stubs==5.0.3 cannot be used. And because only django-stubs==5.0.3 is available and you require django-stubs, we can conclude that the requirements are unsatisfiable. Signed-off-by: Anders Kaseorg --- mypy_primer/projects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypy_primer/projects.py b/mypy_primer/projects.py index eebfb3c..e08a57d 100644 --- a/mypy_primer/projects.py +++ b/mypy_primer/projects.py @@ -1221,7 +1221,7 @@ def get_projects() -> list[Project]: ], needs_mypy_plugins=True, expected_mypy_success=True, - install_cmd="{install} .", + install_cmd="{install} . ./ext", ), ] assert len(projects) == len({p.name for p in projects})