Skip to content
Snippets Groups Projects
Unverified Commit 886d02cd authored by Trim21's avatar Trim21 Committed by GitHub
Browse files

fix(poetry): don't take `python` as a pypi deps (#6490)

parent 5d624ed4
Branches
No related tags found
No related merge requests found
...@@ -473,16 +473,6 @@ Array [ ...@@ -473,16 +473,6 @@ Array [
}, },
"versioning": "poetry", "versioning": "poetry",
}, },
Object {
"currentValue": "~2.7 || ^3.4",
"datasource": "pypi",
"depName": "python",
"depType": "dependencies",
"managerData": Object {
"nestedVersion": false,
},
"versioning": "poetry",
},
Object { Object {
"currentValue": "^3.0", "currentValue": "^3.0",
"datasource": "pypi", "datasource": "pypi",
......
...@@ -61,7 +61,7 @@ describe('lib/manager/poetry/extract', () => { ...@@ -61,7 +61,7 @@ describe('lib/manager/poetry/extract', () => {
it('extracts multiple dependencies', () => { it('extracts multiple dependencies', () => {
const res = extractPackageFile(pyproject1toml, filename); const res = extractPackageFile(pyproject1toml, filename);
expect(res.deps).toMatchSnapshot(); expect(res.deps).toMatchSnapshot();
expect(res.deps).toHaveLength(10); expect(res.deps).toHaveLength(9);
expect(res.compatibility).toEqual({ expect(res.compatibility).toEqual({
poetry: 'poetry>=1.0 wheel', poetry: 'poetry>=1.0 wheel',
python: '~2.7 || ^3.4', python: '~2.7 || ^3.4',
......
...@@ -18,6 +18,9 @@ function extractFromSection( ...@@ -18,6 +18,9 @@ function extractFromSection(
return []; return [];
} }
Object.keys(sectionContent).forEach((depName) => { Object.keys(sectionContent).forEach((depName) => {
if (depName === 'python') {
return;
}
let skipReason: SkipReason; let skipReason: SkipReason;
let currentValue = sectionContent[depName]; let currentValue = sectionContent[depName];
let nestedVersion = false; let nestedVersion = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment