prefix-dev / pixi

Package management made easy
https://pixi.sh
BSD 3-Clause "New" or "Revised" License
3.24k stars 178 forks source link

Misleading prerelease hint for pypi dependency #1357

Open nichmor opened 6 months ago

nichmor commented 6 months ago

Checks

Reproducible example

[dependencies]
python = "~=3.9.0"

[pypi-dependencies]
colorama = "~=5.0"

Issue description

During the resolution phase for pixi install it will fail and print a hint

hint: colorama was requested with a pre-release marker (e.g., colorama>=5.0,<6.dev0), but pre-releases weren't enabled (try:
      `--prerelease=allow`)

Screenshot 2024-05-08 at 17 54 40

This hint (--prerelease=allow ) is not present in pixi install so it fail with following error:

Screenshot 2024-05-08 at 17 55 53

Expected behavior

Hide the tip or allow passing --prerelease=allow downstream from pixi to uv

ruben-arts commented 6 months ago

Related: https://github.com/prefix-dev/pixi/issues/1291

cdeil commented 2 months ago

I ran into this issue trying to install arcade, because they depend on a prerelease of pyglet, see https://github.com/pythonarcade/arcade/issues/2358

Would be great if you could support installing such packages with pixi.