-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Support updating uv.lock
#10478
Comments
DEPS: - Support updating uv.lock dependabot/dependabot-core#10478
Hell ye 🙌 |
We're stuck with Dependabot due to corporate reasons and we'd love Dependabot support for uv.lock files as soon as possible. |
This has also blocked us, so +1 for prioritising this. As a stopgap in the meantime, I've hacked together a small GitHub Actions workflow which provides fairly similar functionality to unblock our project whilst we wait. A small demo is available here https://github.com/EdmundGoodman/update-bot if it is helpful to anyone else. It slightly differs from dependabot in that it makes a PR on a cron schedule if any dependency can be updated rather than whenever a security vulnerability is found, but is good enough for us for now. It differs from other workflows I've seen in this thread, as it PRs rather than just directly committing to main which could break things. |
Hi everyone, according to Astral, uv is used to download over 200M packages from pypi everyday. I verified this info via BigQuery and it is true as yesterday there were 219M downloads from pypi out of 1950M downloads. A total of 11% of all requests made. Another tool that dependabot supports is poetry and it only comprises <4% of all requests on the same date. Please see that uv is a extremely relevant project that would be incredibly appreciated if dependabot supports. I don't know if there is any maintainer reading this, but please check the stats. Query:
|
As this is taking a while, I have created a github action as a temporary workaround which mimics pip-complile for dependabot. If the previous commit author is dependabot it will add the new updated requirements.txt as constraint to pyproject.toml and run It exports there is a demo https://github.com/win845/uv-light which has couple of outdated major and minor dependencies, causing dependabot to make pull requests. NOTE: the extra commit in a github action will not retrigger the workflow again by convention |
Can someone from the Dependabot team comment on if this is on their backlog and with what priority? I agree with @inoa-jboliveira that |
We switched to another tool for dependency management so that we could start using |
@samuelhwilliams What is the alternative with uv support you are using? |
@bosd Renovate's pep621 manager supports updating |
^ yep, that |
We've just released uv 0.6.7 with the aforementioned validation fix (astral-sh/uv#12235). I've preemptively written an issue summarizing my understanding of the problem: astral-sh/uv#12254 I'd like to reiterate that the uv team continues to be excited about Dependabot support for uv. If you're working on a fix for this issue in Dependabot, feel free to ping me for review — I can loop in relevant stakeholders from Astral. |
I created an update PR for 0.6.7 version, can be found at #11844 |
FYI: Looks like the list of |
There still seem to be some TOML issues, strangely only affecting some dependencies. Details
apparently happening in
For reference: |
With recent changes I am no longer getting #10478 (comment), which is great, thanks! But all my PR are removing extras now, as per #10478 (comment). |
I'm getting some build errors related to setuptools-scm not being able to detect the correct version: https://github.com/randovania/randovania/actions/runs/13977902638/job/39136100713 (These usually happens with my project when you use a shallow clone or a fork without tags.) |
For this run the changes look now pretty good, but dependabot adapts the |
@abdulapopoola I've logged this as |
This is tangential, but does this update include support for dependabot's dependency graph? |
I think I'm seeing a similar problem, except |
For xref purposes: I've opened #11946 as a related issue for PEP 723, i.e. "inline script metadata," which is another common way people use |
Does this work with UV workspaces? I'm seeing failures like:
This seems to be because dependabot copies |
Noticing the same issue here codl/mastodon-apod@a9d8866. It gets overwritten by uv on the first sync or lock but it generates a lot of unnecessary diff. |
It also looks like the uv manager does not have the same behaviour as the poetry one when it comes to updating the lockfile only. For instance, we have a bunch or dependencies that are not locked to a specific version in our pyproject.toml. With poetry, the poetry.lock would be updated by dependabot to update those, and it only changed the lock file. This also worked for indirect deps, which doesn't seem to be happening for uv. |
Is there an existing issue for this?
Feature description
Now that uv has a lockfile, it would be nice if dependabot supported making updates to
pyproject.toml
and/oruv.lock
using uv.Related:
[dependency-groups]
inpyproject.toml
#10847The text was updated successfully, but these errors were encountered: