-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable setting up version from .uv-version
file
#215
Comments
Thank you for opening this issue. Can you please add context on how this would work locally? This seams to me like this is a feature request for uv itself to detect this file and automatically upgrade/downgrade itself depending on the content? |
Related - uv [tool.uv]
required-version = ">=0.5.0" see https://docs.astral.sh/uv/reference/settings/#required-version and astral-sh/uv#10248 |
Also there is previous discussion here about pinning a uv version for use with |
@my1e5 Thanks! But does required-version = "==0.5.14" Will the action use that specifier when setting |
It is my understanding uv itself will respect the required version; the action doesn't have to do that. I had success with setting the required verson in |
I guess this worked because you specified the latest version in As explained in the docs:
I will add support to automatically read the version from the required-version setting for this action. |
I don't seem to get what you're saying exactly. Is it about specifying the latest version (or specifically 0.5.14 as the first to support this) as minimum required version in My goal was that the latest version of uv is being used in CI, and that works so far. For example, with |
1. If defined use version input 2. If defined use uv-file input 3. If defined use pyproject-file input 4. Search for required-version in uv.toml in repo root 5. Search for required-version in pyproject.toml in repo root 6. Use latest Closes: #215
I added the following new behavior:
It will be part of the next release. |
The uv project changes dynamically, so keeping both local and CI version of
uv
might be challenging. In order to keep both versions consistent, I would suggest to enable pinning them in a "version" file.For example, this can be achieved by adding an extra input variable:
The file could be also auto-detected if neither
version
norversion-file
is explicitly stated.The text was updated successfully, but these errors were encountered: