davejagoda 7 hours ago

Yet 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 = "abcdefghijklmnopqrstuvwxyz"
It's a few more characters to type, but easier to examine for correctness.
  • jeremyscanvic 2 hours ago

    That's really neat. I didn't know about those string constants!

Joker_vD 17 hours ago

I express my deepest gratitude to the author for not publishing all those "wordle-*" packages to the PyPI. Thank you!

stared 20 hours ago

Next step: playing Doom with uv's dependency resolver

(reference to: https://news.ycombinator.com/item?id=43184291)

  • slightwinder 20 hours ago

    Extra points when it runs on an oscilloscope (because pregnancy testers are boring now).

spelunker 17 hours ago

Ok, now do npm!

  • chatmasta 17 hours ago

    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.”

    • spelunker 17 hours ago

      Yeah, turns out I should have read TFA:

      >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.