Skip to content

Commit

Permalink
fix(manager/pip-compile): allow --all-extras arg (#27637)
Browse files Browse the repository at this point in the history
  • Loading branch information
not7cd committed Mar 1, 2024
1 parent 60a7de5 commit 17be5a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/modules/manager/pip-compile/common.spec.ts
Expand Up @@ -23,6 +23,7 @@ describe('modules/manager/pip-compile/common', () => {
describe('extractHeaderCommand()', () => {
it.each([
'-v',
'--all-extras',
'--generate-hashes',
'--resolver=backtracking',
'--resolver=legacy',
Expand Down
5 changes: 5 additions & 0 deletions lib/modules/manager/pip-compile/common.ts
Expand Up @@ -84,6 +84,7 @@ export const optionsWithArguments = [
];
export const allowedPipOptions = [
'-v',
'--all-extras',
'--allow-unsafe',
'--generate-hashes',
'--no-emit-index-url',
Expand Down Expand Up @@ -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`);
}
Expand Down
3 changes: 2 additions & 1 deletion lib/modules/manager/pip-compile/types.ts
@@ -1,4 +1,4 @@
// 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'
Expand All @@ -11,6 +11,7 @@ export interface PipCompileArgs {
isCustomCommand: boolean;
constraintsFiles?: string[];
extra?: string[];
allExtras?: boolean;
extraIndexUrl?: string[];
indexUrl?: string;
noEmitIndexUrl?: boolean;
Expand Down

0 comments on commit 17be5a0

Please sign in to comment.