Skip to content

Commit

Permalink
Fix django-stubs installation
Browse files Browse the repository at this point in the history
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 <andersk@mit.edu>
  • Loading branch information
andersk committed Jul 26, 2024
1 parent 541bb89 commit 6b3c8be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy_primer/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 6b3c8be

Please sign in to comment.