You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into an issue with locking and version specifiers similar to #4668 and #4669, but the fix there of creating environments for different python versions does not work with workspaces.
Here's how I reproduced this.
I started with this pyproject.toml and confirmed that it works with uv==0.4.17
$ uv lock
Using CPython 3.8.19 interpreter at: /usr/local/opt/[email protected]/bin/python3.8
× No solution found when resolving dependencies:
╰─▶ Because the requested Python version (>=3.7) does not satisfy Python>=3.8 and your project depends on types-psutil{python_full_version
>= '3.8'}==6.0.0.20240901, we can conclude that your project's requirements are unsatisfiable.
I ran into an issue with locking and version specifiers similar to #4668 and #4669, but the fix there of creating environments for different python versions does not work with workspaces.
Here's how I reproduced this.
I started with this pyproject.toml and confirmed that it works with uv==0.4.17
Note that this requires the
tool.uv.environment
setting recommended in #4668Next I setup my repo using workspaces, with a folder structure like this:
The root pyproject.toml looks like this:
The child looks like this (same as before but without the
uv.tool.environment
setting):Locking from the root of the workspace fails:
I made a repo to demonstrate: https://github.com/chadrik/uv-tests
These are some PRs mentioned that could be related:
Is there a way to indicate that a dependency simply should not be installed on certain versions of python?
The text was updated successfully, but these errors were encountered: