Solving Wordle with uv's dependency resolver
11–20 of 23 posts
Re: Solving Wordle with uv's dependency resolver
#12Re: Solving Wordle with uv's dependency resolver
#13Ok, now do npm!
Re: Solving Wordle with uv's dependency resolver
#14Ok, now do npm!
npm allows you to have multiple versions of one package installed, so I’m not sure it will work for this, unless you use a package manager that allows you to set constraints like “only one version of this package can be installed.”
>The short summary of the Sudoku + Poetry post is that unlike Rust or JavaScript, a single Python project cannot use more than one version of a specific Python package.
Re: Solving Wordle with uv's dependency resolver
#15I express my deepest gratitude to the author for not publishing all those "wordle-*" packages to the PyPI. Thank you!
Re: Solving Wordle with uv's dependency resolver
#16Next step: playing Doom with uv's dependency resolver (reference to: https://news.ycombinator.com/item?id=43184291 )
Re: Solving Wordle with uv's dependency resolver
#17Re: Solving Wordle with uv's dependency resolver
#18I try to avoid bugs like this:
By accident, at first, I omitted the letter u in my list of letters that I was generating packages for, which caused extremely cryptic and long (500KB of uv painstakingly explaining to me why I was wrong) dependency resolution errors on specific guesses:
by doing this:
import string
LETTERS = string.ascii_lowercase
instead of this: LETTERS = "abcdefghijklmnopqrstuvwxyz"
It's a few more characters to type, but easier to examine for correctness.Re: Solving Wordle with uv's dependency resolver
#19Yet another reason to use `uv`! I try to avoid bugs like this: By accident, at first, I omitted the letter u in my list of letters that I was generating packages for, which caused extremely cryptic and long (500KB of uv painstakingly explaining to me why I was wrong) dependency resolution errors on specific guesses: by doing this: import string LETTERS = string.ascii_lowercase instead of this: LETTERS = "abcdefghijkl…