Skip to content
Snippets Groups Projects
Unverified Commit 17be5a04 authored by Norbert Szulc's avatar Norbert Szulc Committed by GitHub
Browse files

fix(manager/pip-compile): allow --all-extras arg (#27637)

parent 60a7de50
Branches
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@ describe('modules/manager/pip-compile/common', () => {
describe('extractHeaderCommand()', () => {
it.each([
'-v',
'--all-extras',
'--generate-hashes',
'--resolver=backtracking',
'--resolver=legacy',
......
......@@ -84,6 +84,7 @@ export const optionsWithArguments = [
];
export const allowedPipOptions = [
'-v',
'--all-extras',
'--allow-unsafe',
'--generate-hashes',
'--no-emit-index-url',
......@@ -171,6 +172,10 @@ export function extractHeaderCommand(
result.emitIndexUrl = true;
continue;
}
if (arg === '--all-extras') {
result.allExtras = true;
continue;
}
logger.warn(`pip-compile: option ${arg} not handled`);
}
......
// managers supported by pip-tools Python package
// managers supported by pip-tools mapped to Renovate's internal names
export type SupportedManagers =
| 'pip_requirements'
| 'pip_setup'
......@@ -11,6 +11,7 @@ export interface PipCompileArgs {
isCustomCommand: boolean;
constraintsFiles?: string[];
extra?: string[];
allExtras?: boolean;
extraIndexUrl?: string[];
indexUrl?: string;
noEmitIndexUrl?: boolean;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment