Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/cli/tools/python/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,12 @@
if (satisfies(version, '>=1.2.1')) {
args.push('poetry-plugin-pypi-mirror');
}
if (!satisfies(version, '>=2.0.0')) {
// virtualenv version 20.31.0 and above is not compatible with poetry < 2.0.0
if (!satisfies(version, '>=2')) {

Check warning on line 222 in src/cli/tools/python/utils.ts

View check run for this annotation

Codecov / codecov/patch

src/cli/tools/python/utils.ts#L222

Added line #L222 was not covered by tests
// virtualenv version v20.31.0 and v20.31.1 are not compatible with poetry < v2.
// v20.31.2 fixed it, but we enforce < v21 to avoid issues with a future v21.
// https://github.com/python-poetry/poetry/issues/10378
args.push('virtualenv<20.31.0');
// https://github.com/pypa/virtualenv/releases/tag/20.31.2
args.push('virtualenv<21');

Check warning on line 227 in src/cli/tools/python/utils.ts

View check run for this annotation

Codecov / codecov/patch

src/cli/tools/python/utils.ts#L227

Added line #L227 was not covered by tests
}
return args;
}
Expand Down
Loading