Skip to content

Conversation

@danieleades
Copy link
Contributor

@danieleades danieleades commented Dec 3, 2025

this PR is a redux of #12817

now that pyproject.toml has standard support for dependency groups, it can be used with either pip or uv at the discretion of individual contributors.

This PR makes two changes:

  • recommends UV as the workflow to use
  • commits the UV lockfile so that contributors and CI use a consistent environment

note that there is more we can do around using the native UV interface in CI jobs rather than UV's pip-compatible layer, but i suggest saving this for future PRs

@AA-Turner
Copy link
Member

Thanks!

What would the expectations be on updating uv.lock? When would we do this? Does dependabot have support for automatic updates?

A

@danieleades
Copy link
Contributor Author

Thanks!

What would the expectations be on updating uv.lock? When would we do this? Does dependabot have support for automatic updates?

uv.lock would generally be updated whenever the dependencies change. dependabot supports updating the lockfile when it proposes updates. It's support is relatively new, so there are a few open issues on the dependabot repo for UV. I've been using it for a while without issues though.

Renovate has better support- it can also just refresh the lockfile without updating direct dependencies (which amounts to updating the project's transient dependencies). It's supported UV for a while now and is rock solid.

see https://docs.astral.sh/uv/guides/integration/dependency-bots/

@AA-Turner
Copy link
Member

Cheers @danieleades

Should we add the YAML from https://docs.astral.sh/uv/guides/integration/dependency-bots/#dependabot to this PR?

I'd prefer not to adopt a new dependency bot if possible, dependabot is built-in to the platform and works decently enough.

A

@AA-Turner AA-Turner changed the title chore: recommend UV for local development Recommend UV for local development Dec 3, 2025
@AA-Turner AA-Turner changed the title Recommend UV for local development Recommend uv for local development Dec 3, 2025
Copy link
Member

@AA-Turner AA-Turner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for seeing this through @danieleades

A

@AA-Turner AA-Turner added type:enhancement enhance or introduce a new feature internals:other labels Dec 3, 2025
@AA-Turner AA-Turner merged commit 7926051 into sphinx-doc:master Dec 3, 2025
8 checks passed
@AA-Turner AA-Turner added this to the 9.0.x milestone Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internals:other type:enhancement enhance or introduce a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants