Skip to content
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

feat(pip_setup): Add JavaScript-based implementation #11796

Merged
merged 30 commits into from Nov 10, 2021
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
7977db7
feat(pip_setup): Add JavaScript-based implementation
Sep 17, 2021
0bb256c
Replace old implementation
Sep 18, 2021
77bfc78
Merge branch 'main' into feat/pip-setup-js-based
Sep 18, 2021
d94e2ed
Require depName length to be at least 3 chars
Sep 18, 2021
94ff96d
Require at least 2 chars for dep name
Sep 18, 2021
0550654
Add null guards
Sep 19, 2021
51197b9
Merge branch 'main' of github.com:renovatebot/renovate into feat/pip-…
Sep 22, 2021
5ffdf44
Use package from GitHub NPM registry
Sep 22, 2021
0a1ff9d
Merge branch 'main' of github.com:renovatebot/renovate into feat/pip-…
Sep 22, 2021
73cf74c
Fix vscode defaults
Sep 24, 2021
50ad9c2
Merge branch 'main' into feat/pip-setup-js-based
zharinov Sep 24, 2021
a9a3cea
Fix
Sep 24, 2021
f6c8d9d
Bump `parser-utils` dependency
Sep 27, 2021
a847081
Merge branch 'main' into feat/pip-setup-js-based
zharinov Sep 27, 2021
cfb6dfb
Fix imports
Sep 27, 2021
8b2947e
Fix coverage
Sep 27, 2021
79bf0da
Merge branch 'main' of github.com:renovatebot/renovate into feat/pip-…
Sep 27, 2021
06b00b0
Merge branch 'main' into feat/pip-setup-js-based
rarkins Oct 11, 2021
c5f3249
Merge branch 'main' of github.com:renovatebot/renovate into feat/pip-…
Nov 3, 2021
ae4dcbd
Small fixes
Nov 3, 2021
743d334
Fixes
Nov 3, 2021
cba6f20
Lightweight type import
Nov 3, 2021
01c7d9b
Merge branch 'main' into feat/pip-setup-js-based
zharinov Nov 4, 2021
d428cc0
Bump parser deps
Nov 4, 2021
e64fb57
Merge branch 'main' of github.com:renovatebot/renovate into feat/pip-…
Nov 7, 2021
db50571
Bump to 1.0.0
Nov 7, 2021
2fef871
Merge branch 'main' into feat/pip-setup-js-based
zharinov Nov 8, 2021
da9be71
Merge branch 'main' of github.com:renovatebot/renovate into feat/pip-…
Nov 10, 2021
d17766e
Explicit snapshot test
Nov 10, 2021
3d0520f
Merge branch 'main' into feat/pip-setup-js-based
rarkins Nov 10, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
54 changes: 0 additions & 54 deletions data/extract.py

This file was deleted.

185 changes: 126 additions & 59 deletions lib/manager/pip_setup/__snapshots__/extract.spec.ts.snap
@@ -1,62 +1,129 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`manager/pip_setup/extract getPythonAlias returns the python alias to use 1`] = `"python3.8"`;

exports[`manager/pip_setup/extract getPythonAlias returns the python alias to use 2`] = `
Array [
Object {
"cmd": "python --version",
"options": Object {
"cwd": "/tmp/foo/bar",
"encoding": "utf-8",
"env": Object {
"HOME": "/home/user",
"HTTPS_PROXY": "https://example.com",
"HTTP_PROXY": "http://example.com",
"LANG": "en_US.UTF-8",
"LC_ALL": "en_US",
"NO_PROXY": "localhost",
"PATH": "/tmp/path",
},
"maxBuffer": 10485760,
"timeout": 900000,
},
},
Object {
"cmd": "python3 --version",
"options": Object {
"cwd": "/tmp/foo/bar",
"encoding": "utf-8",
"env": Object {
"HOME": "/home/user",
"HTTPS_PROXY": "https://example.com",
"HTTP_PROXY": "http://example.com",
"LANG": "en_US.UTF-8",
"LC_ALL": "en_US",
"NO_PROXY": "localhost",
"PATH": "/tmp/path",
},
"maxBuffer": 10485760,
"timeout": 900000,
},
},
Object {
"cmd": "python3.8 --version",
"options": Object {
"cwd": "/tmp/foo/bar",
"encoding": "utf-8",
"env": Object {
"HOME": "/home/user",
"HTTPS_PROXY": "https://example.com",
"HTTP_PROXY": "http://example.com",
"LANG": "en_US.UTF-8",
"LC_ALL": "en_US",
"NO_PROXY": "localhost",
"PATH": "/tmp/path",
},
"maxBuffer": 10485760,
"timeout": 900000,
},
},
]
exports[`manager/pip_setup/extract extractPackageFile() returns found deps 1`] = `
Object {
"deps": Array [
Object {
"currentValue": ">=3.1.13.0,<5.0",
"datasource": "pypi",
"depName": "celery",
"managerData": Object {
"lineNumber": 49,
},
},
Object {
"currentValue": ">=1.7",
"datasource": "pypi",
"depName": "logging_tree",
"managerData": Object {
"lineNumber": 52,
},
},
Object {
"currentValue": ">=2.2",
"datasource": "pypi",
"depName": "pygments",
"managerData": Object {
"lineNumber": 53,
},
},
Object {
"currentValue": ">=5.0",
"datasource": "pypi",
"depName": "psutil",
"managerData": Object {
"lineNumber": 54,
},
},
Object {
"currentValue": ">=3.0",
"datasource": "pypi",
"depName": "objgraph",
"managerData": Object {
"lineNumber": 55,
},
},
Object {
"currentValue": ">=1.11.23,<2.0",
"datasource": "pypi",
"depName": "django",
"managerData": Object {
"lineNumber": 58,
},
},
Object {
"currentValue": ">=0.11,<2.0",
"datasource": "pypi",
"depName": "flask",
"managerData": Object {
"lineNumber": 61,
},
},
Object {
"currentValue": ">=1.4,<2.0",
"datasource": "pypi",
"depName": "blinker",
"managerData": Object {
"lineNumber": 62,
},
},
Object {
"currentValue": ">=19.7.0,<20.0",
"datasource": "pypi",
"depName": "gunicorn",
"managerData": Object {
"lineNumber": 74,
},
},
Object {
"currentValue": ">=0.15.3,<0.16",
"datasource": "pypi",
"depName": "Werkzeug",
"managerData": Object {
"lineNumber": 75,
},
},
Object {
"currentValue": ">=3.2.1,<4.0",
"datasource": "pypi",
"depName": "statsd",
"managerData": Object {
"lineNumber": 75,
},
},
Object {
"currentValue": ">=2.10.0,<3.0",
"datasource": "pypi",
"depName": "requests",
"managerData": Object {
"lineNumber": 76,
},
"skipReason": "ignored",
},
Object {
"currentValue": ">=5.27.1,<7.0",
"datasource": "pypi",
"depName": "raven",
"managerData": Object {
"lineNumber": 77,
},
},
Object {
"currentValue": ">=0.15.2,<0.17",
"datasource": "pypi",
"depName": "future",
"managerData": Object {
"lineNumber": 78,
},
},
Object {
"currentValue": ">=1.0.16,<2.0",
"datasource": "pypi",
"depName": "ipaddress",
"managerData": Object {
"lineNumber": 79,
},
},
],
}
`;