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

fix(pypi): lookup simple api first #26505

Closed
wants to merge 12 commits into from
144 changes: 142 additions & 2 deletions lib/modules/datasource/pypi/__snapshots__/index.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,48 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`modules/datasource/pypi/index getReleases fall back from json and process data from simple endpoint 1`] = `
exports[`modules/datasource/pypi/index getReleases process data from simple api with pypijson unavailable 1`] = `
{
"registryUrl": "https://custom.pypi.net/foo",
"releases": [
{
"version": "0.1.2",
},
{
"version": "0.1.3",
},
{
"version": "0.1.4",
},
{
"version": "0.2.0",
},
{
"version": "0.2.1",
},
{
"version": "0.2.2",
},
{
"version": "0.3.0",
},
{
"version": "0.4.0",
},
{
"version": "0.4.1",
},
{
"version": "0.4.2",
},
{
"isDeprecated": true,
"version": "0.5.0",
},
],
}
`;

exports[`modules/datasource/pypi/index getReleases process data from simple api with pypijson unavailable 2`] = `
{
"registryUrl": "https://custom.pypi.net/foo",
"releases": [
Expand Down Expand Up @@ -281,7 +323,7 @@ exports[`modules/datasource/pypi/index getReleases respects constraints 1`] = `
}
`;

exports[`modules/datasource/pypi/index uses https://pypi.org/pypi/ instead of https://pypi.org/simple/ 1`] = `
exports[`modules/datasource/pypi/index uses https://pypi.org/pypi/ and https://pypi.org/simple/ (no find) 1`] = `
{
"registryUrl": "https://pypi.org/simple",
"releases": [
Expand Down Expand Up @@ -378,3 +420,101 @@ exports[`modules/datasource/pypi/index uses https://pypi.org/pypi/ instead of ht
"sourceUrl": "https://github.com/Azure/azure-cli",
}
`;

exports[`modules/datasource/pypi/index uses https://pypi.org/pypi/ and https://pypi.org/simple/ (no find) 2`] = `
{
"registryUrl": "https://pypi.org/pypi",
"releases": [
{
"releaseTimestamp": "2017-04-03T16:55:14.000Z",
"version": "0.0.1",
},
{
"releaseTimestamp": "2017-04-17T20:32:30.000Z",
"version": "0.0.2",
},
{
"releaseTimestamp": "2017-04-28T21:18:54.000Z",
"version": "0.0.3",
},
{
"releaseTimestamp": "2017-05-09T21:36:51.000Z",
"version": "0.0.4",
},
{
"releaseTimestamp": "2017-05-30T23:13:49.000Z",
"version": "0.0.5",
},
{
"releaseTimestamp": "2017-06-13T22:21:05.000Z",
"version": "0.0.6",
},
{
"releaseTimestamp": "2017-06-21T22:12:36.000Z",
"version": "0.0.7",
},
{
"releaseTimestamp": "2017-07-07T16:22:26.000Z",
"version": "0.0.8",
},
{
"releaseTimestamp": "2017-08-28T20:14:33.000Z",
"version": "0.0.9",
},
{
"releaseTimestamp": "2017-09-22T23:47:59.000Z",
"version": "0.0.10",
},
{
"releaseTimestamp": "2017-10-24T02:14:07.000Z",
"version": "0.0.11",
},
{
"releaseTimestamp": "2017-11-14T18:31:57.000Z",
"version": "0.0.12",
},
{
"releaseTimestamp": "2017-12-05T18:57:54.000Z",
"version": "0.0.13",
},
{
"releaseTimestamp": "2018-01-05T21:26:03.000Z",
"version": "0.0.14",
},
{
"releaseTimestamp": "2018-01-17T18:36:39.000Z",
"version": "0.1.0",
},
{
"releaseTimestamp": "2018-01-31T18:05:22.000Z",
"version": "0.1.1",
},
{
"releaseTimestamp": "2018-02-13T18:17:52.000Z",
"version": "0.1.2",
},
{
"releaseTimestamp": "2018-03-13T17:08:20.000Z",
"version": "0.1.3",
},
{
"releaseTimestamp": "2018-03-27T17:55:25.000Z",
"version": "0.1.4",
},
{
"releaseTimestamp": "2018-04-10T17:25:47.000Z",
"version": "0.1.5",
},
{
"isDeprecated": true,
"releaseTimestamp": "2018-05-07T17:59:09.000Z",
"version": "0.1.6",
},
{
"releaseTimestamp": "2018-05-22T17:25:23.000Z",
"version": "0.1.7",
},
],
"sourceUrl": "https://github.com/Azure/azure-cli",
}
`;
Loading