Repository navigation
Declare click as a direct dependency - #174
Closed
Arseni10Lk wants to merge 1 commit into
Closed
Arseni10Lk wants to merge 1 commit into
Arseni10Lk wants to merge 1 commit into
Conversation
Collaborator
|
The issue isn't algobattle transitively depending on click, but that uv is trying to install an older version of algobattle with a newer version of typer. I suspect that you have an existing uv install that only knows older Python versions and have set it to try to use one of those? Either way, what you want is to run I'll update the docs to include the version specifier to prevent this issue. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Declare
clickas a direct dependencyProblem
Following the installation instructions on the website currently produces a broken install:
fails with:
Cause
algobattle/cli.pyimportsclickdirectly, butclickis not listed in thepackage's dependencies. It was previously installed transitively through
typer,but recent
typerreleases no longer pull it in, so a fresh install resolveswithout
clickand the CLI fails on import.I found some other people facing the same issue: explosion/spaCy#13971
Fix
Add
clickto[project.dependencies]inpyproject.toml(viauv add click,which also updates
uv.lock).Testing
uv tool install --force .algobattle --helpnow runs successfullyWorkaround
Before it is merged, the CLI can be installed with: