Skip to content

Commit

Permalink
fix(poetry): don't take python as a pypi deps (#6490)
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Jun 12, 2020
1 parent 5d624ed commit 886d02c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
10 changes: 0 additions & 10 deletions lib/manager/poetry/__snapshots__/extract.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -473,16 +473,6 @@ Array [
},
"versioning": "poetry",
},
Object {
"currentValue": "~2.7 || ^3.4",
"datasource": "pypi",
"depName": "python",
"depType": "dependencies",
"managerData": Object {
"nestedVersion": false,
},
"versioning": "poetry",
},
Object {
"currentValue": "^3.0",
"datasource": "pypi",
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/poetry/extract.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('lib/manager/poetry/extract', () => {
it('extracts multiple dependencies', () => {
const res = extractPackageFile(pyproject1toml, filename);
expect(res.deps).toMatchSnapshot();
expect(res.deps).toHaveLength(10);
expect(res.deps).toHaveLength(9);
expect(res.compatibility).toEqual({
poetry: 'poetry>=1.0 wheel',
python: '~2.7 || ^3.4',
Expand Down
3 changes: 3 additions & 0 deletions lib/manager/poetry/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ function extractFromSection(
return [];
}
Object.keys(sectionContent).forEach((depName) => {
if (depName === 'python') {
return;
}
let skipReason: SkipReason;
let currentValue = sectionContent[depName];
let nestedVersion = false;
Expand Down

0 comments on commit 886d02c

Please sign in to comment.