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.
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
|
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 👍 |
| 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.
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'; | ||
| } |
* 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 compileinside thepip-compilemanager.Context
Closes #30909
Relevant docs:
uv pip compilepip compiledefaultsDocumentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: