uv icon indicating copy to clipboard operation
uv copied to clipboard

Hint to "try: `--prerelease=allow`" when I already am

Open adamtheturtle opened this issue 1 month ago • 3 comments

Apologies for not minimising this reproduction - I do not have the time right now and I hope that this report is still useful. I am trying to restore an old project, https://github.com/adamtheturtle/dcos-e2e.

I try to install dependencies:

$ uv --version
uv 0.1.45
$ uv pip install --exclude-newer 2018-10-08 --prerelease=allow --verbose .
INFO Found a virtualenv through VIRTUAL_ENV at: /Users/adam/.virtualenvs/dcos-e2e
DEBUG Cached interpreter info for Python 3.12.3, skipping probing: /Users/adam/.virtualenvs/dcos-e2e/bin/python
DEBUG Using Python 3.12.3 environment at /Users/adam/.virtualenvs/dcos-e2e/bin/python
DEBUG Trying to lock if free: /Users/adam/.virtualenvs/dcos-e2e/.lock
DEBUG At least one requirement is not satisfied: file:///Users/adam/Documents/forks/dcos-e2e
DEBUG Using registry request timeout of 30s
DEBUG Trying to lock if free: /Users/adam/Library/Caches/uv/built-wheels-v3/path/ffcc5eebe36891de/.lock
DEBUG Preparing metadata for: file:///Users/adam/Documents/forks/dcos-e2e
DEBUG No static `PKG-INFO` available for: file:///Users/adam/Documents/forks/dcos-e2e (MissingPkgInfo)
DEBUG No static `pyproject.toml` available for: file:///Users/adam/Documents/forks/dcos-e2e (MissingPyprojectToml)
DEBUG Solving with target Python version 3.12.3
DEBUG Adding direct dependency: setuptools>=40.8.0
DEBUG Found fresh response for: https://pypi.org/simple/setuptools/
DEBUG Searching for a compatible version of setuptools (>=40.8.0)
DEBUG No compatible version found for: setuptools
error: Failed to build: `file:///Users/adam/Documents/forks/dcos-e2e`
  Caused by: Failed to install requirements from setup.py build (resolve)
  Caused by: No solution found when resolving: setuptools>=40.8.0
  Caused by: Because only setuptools<40.8.0 is available and you require setuptools>=40.8.0, we can conclude that the requirements are unsatisfiable.

hint: Pre-releases are available for setuptools in the requested range (e.g., 63.0.0b1), but pre-releases weren't enabled (try: `--prerelease=allow`)

I would not expect the hint at the bottom - I am already using --prerelease=allow.

adamtheturtle avatar May 21 '24 04:05 adamtheturtle