-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat(pip-compile): support uv pip compile
#33952
feat(pip-compile): support uv pip compile
#33952
Conversation
c406d0e
to
e586242
Compare
e586242
to
9a7f496
Compare
🎉 This PR is included in version 39.158.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
// uv's headers do not include the Python version | ||
// https://github.com/astral-sh/uv/issues/3588 | ||
if (commandType === 'uv') { | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, we don't include the host Python version but you can solve for a Python version.
❯ echo "anyio" | uv pip compile - --python-version 3.11
Resolved 4 packages in 94ms
# This file was autogenerated by uv via the following command:
# uv pip compile - --python-version 3.11
anyio==4.8.0
idna==3.10
# via anyio
sniffio==1.3.1
# via anyio
typing-extensions==4.12.2
# via anyio
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow up #34029 👍
Should https://github.com/renovatebot/renovate/blob/699f28360b5af4a60744d15a9736e9f0b344394d/lib/modules/manager/pip-compile/readme.md#assumption-of-header-with-a-command be updated or is the current documentation sufficient? |
Documentation pull request for uv astral-sh/uv#11204 Thanks for adding support! |
Follow up #34030 👍 |
@@ -28,6 +28,18 @@ jest.mock('../../../util/host-rules', () => mockDeep()); | |||
jest.mock('../../../util/http'); | |||
jest.mock('../../datasource', () => mockDeep()); | |||
|
|||
const requirementsWithUv = `# This file was autogenerated by uv via the following command: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move to test if only used once next time and use codeBlock
template helper
if (command === 'pip-compile') { | ||
commandType = 'pip-compile'; | ||
} else if (command === 'uv') { | ||
commandType = 'uv'; | ||
} else { | ||
commandType = 'custom'; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use switch case next time
* upstream/main: (27 commits) chore(deps): update python:3.13 docker digest to 7be9b75 (renovatebot#34045) chore(deps): update ghcr.io/containerbase/devcontainer docker tag to v13.7.7 (renovatebot#34043) docs(gitea): fix `gitUrl` support (renovatebot#34038) feat(npm): Support for new option `replacementApproach` (renovatebot#34018) chore(deps): lock file maintenance (renovatebot#33998) chore(deps): update sigstore/cosign-installer action to v3.8.0 (renovatebot#34034) docs(managers/pip-compile): update list of source files and managers (renovatebot#34030) chore(deps): update linters to v8.22.0 (renovatebot#33880) fix(gitea): use endpoint for pr cache pagination (renovatebot#34022) chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.119.0 (renovatebot#34032) feat(gradle): add support for gradle repository content descriptors (renovatebot#33692) feat(manager): add elixir as a mise core tooling (renovatebot#34025) chore(deps): update python:3.13 docker digest to d59d263 (renovatebot#34026) chore(deps): update ghcr.io/containerbase/devcontainer docker tag to v13.7.6 (renovatebot#34021) fix(gitea): allow overriding platform version (renovatebot#34019) chore(deps): update dependency @types/lodash to v4.17.15 (renovatebot#34020) fix(manager/terragrunt): Update terragrunt packageName (renovatebot#33810) feat(pip-compile): support `uv pip compile` (renovatebot#33952) fix(deps): update dependency mkdocs-material to v9.6.2 (renovatebot#34010) chore(label-actions): improve logs, pr closing (renovatebot#33995) ...
Changes
This adds the basics to support
uv pip compile
inside thepip-compile
manager.Context
Closes #30909
Relevant docs:
uv pip compile
pip compile
defaultsDocumentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: