-
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
Add docs for uv pip compile
and renovate
#11204
base: main
Are you sure you want to change the base?
Conversation
b93b0ba
to
dda616c
Compare
cc @mkniewallner (as an authority on these docs) |
Tried the feature in Renovate (from First, it doesn't seem to support dependencies defined in
and I ended up with different errors on the 3 attempts when running: RENOVATE_TOKEN=<GITHUB_TOKEN> LOG_LEVEL=DEBUG npx renovate@latest mkniewallner/mkv-playground With WARN: pip-compile error (repository=mkniewallner/mkv-playground)
"fileMatch": "requirements.txt",
"errorMessage": "Option -o not supported (yet)" With WARN: pip-compile error (repository=mkniewallner/mkv-playground)
"fileMatch": "requirements.txt",
"errorMessage": "Option --output-file must have equal sign '=' separating it's argument" With DEBUG: pip-compile: extracted command from header (repository=mkniewallner/mkv-playground)
"fileName": "requirements.txt",
"argv": ["uv", "pip", "compile", "pyproject.toml", "--output-file=requirements.txt"],
"commandType": "uv"
DEBUG: Poetry: error parsing pyproject.toml (repository=mkniewallner/mkv-playground, packageFile=pyproject.toml)
"err": {
"message": "Schema error",
"stack": "ZodError: Schema error\n at Object.get error [as error] (/home/mathieu/.npm/_npx/59c0475bfd22776c/node_modules/zod/lib/types.js:55:31)\n at fromZodResult (/home/mathieu/.npm/_npx/59c0475bfd22776c/node_modules/renovate/lib/util/result.ts:60:67)\n at Function.parse (/home/mathieu/.npm/_npx/59c0475bfd22776c/node_modules/renovate/lib/util/result.ts:566:12)\n at Object.extractPackageFile (/home/mathieu/.npm/_npx/59c0475bfd22776c/node_modules/renovate/lib/modules/manager/poetry/extract.ts:19:36)\n at extractPackageFile (/home/mathieu/.npm/_npx/59c0475bfd22776c/node_modules/renovate/lib/modules/manager/index.ts:75:9)\n at getManagerPackageFiles (/home/mathieu/.npm/_npx/59c0475bfd22776c/node_modules/renovate/lib/workers/repository/extract/manager-files.ts:58:43)\n at /home/mathieu/.npm/_npx/59c0475bfd22776c/node_modules/renovate/lib/workers/repository/extract/index.ts:57:28\n at async Promise.all (index 4)\n at extractAllDependencies (/home/mathieu/.npm/_npx/59c0475bfd22776c/node_modules/renovate/lib/workers/repository/extract/index.ts:54:26)\n at extract (/home/mathieu/.npm/_npx/59c0475bfd22776c/node_modules/renovate/lib/workers/repository/process/extract-update.ts:160:28)\n at extractDependencies (/home/mathieu/.npm/_npx/59c0475bfd22776c/node_modules/renovate/lib/workers/repository/process/index.ts:158:26)\n at Object.renovateRepository (/home/mathieu/.npm/_npx/59c0475bfd22776c/node_modules/renovate/lib/workers/repository/index.ts:71:9)\n at attributes.repository (/home/mathieu/.npm/_npx/59c0475bfd22776c/node_modules/renovate/lib/workers/global/index.ts:206:11)\n at start (/home/mathieu/.npm/_npx/59c0475bfd22776c/node_modules/renovate/lib/workers/global/index.ts:191:7)\n at /home/mathieu/.npm/_npx/59c0475bfd22776c/node_modules/renovate/lib/renovate.ts:19:22",
"issues": {"tool": "Required"}
}
WARN: pip-compile: support for manager is not yet implemented (repository=mkniewallner/mkv-playground, packageFile=pyproject.toml)
"manager": "pep621"
WARN: pip-compile: failed to find dependencies in source file (repository=mkniewallner/mkv-playground, packageFile=pyproject.toml) What did work though is defining dependencies in
So in the current state, I would not recommend announcing support for it. I can raise the issues I've found in Renovate repository and/or work on some of the issues/features. If support for |
{ | ||
$schema: "https://docs.renovatebot.com/renovate-schema.json", | ||
{ | ||
"pip-compile": { | ||
fileMatch: ["(^|/)requirements\\.txt$"], | ||
}, | ||
}; | ||
} |
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.
{ | |
$schema: "https://docs.renovatebot.com/renovate-schema.json", | |
{ | |
"pip-compile": { | |
fileMatch: ["(^|/)requirements\\.txt$"], | |
}, | |
}; | |
} | |
{ | |
$schema: "https://docs.renovatebot.com/renovate-schema.json", | |
"pip-compile": { | |
fileMatch: ["(^|/)requirements\\.txt$"], | |
}, | |
} |
Thank you so much! Appreciate it. I guess I should have tried it.. :) |
Now that the github app has updated to a newer version of renovate, I tried the version of replacing
I can see it installing python and pip-tools in the logs, so possibly there's somewhere else in the config settings to add |
Renovate installs the tools it needs based on the package managers it detects. In Renovate, As this is an issue in Renovate itself, feel free to open a discussion on Renovate repository to report the issue. |
Actually, there is already a PR in review for handling this: renovatebot/renovate#34029. |
Support landed upstream