mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
Support per-requirement overrides in requirements.txt parsing
This commit is contained in:
@@ -135,6 +135,9 @@ public class PyRequirement {
|
||||
"(?<" + VERSIONS_SPECS_GROUP + ">" + REQUIREMENT_VERSION_SPEC_REGEXP +
|
||||
"(" + LINE_WS_REGEXP + "*," + LINE_WS_REGEXP + "*" + REQUIREMENT_VERSION_SPEC_REGEXP + ")*)?";
|
||||
|
||||
@NotNull
|
||||
private static final String REQUIREMENT_OPTIONS_REGEXP = "((" + LINE_WS_REGEXP + "+(--global-option|--install-option)=\"[^\"]*\")+)?";
|
||||
|
||||
@NotNull
|
||||
private static final Pattern REQUIREMENT = Pattern.compile(
|
||||
REQUIREMENT_NAME_REGEXP +
|
||||
@@ -142,6 +145,7 @@ public class PyRequirement {
|
||||
REQUIREMENT_EXTRAS_REGEXP +
|
||||
LINE_WS_REGEXP + "*" +
|
||||
REQUIREMENT_VERSIONS_SPECS_REGEXP +
|
||||
REQUIREMENT_OPTIONS_REGEXP +
|
||||
COMMENT_REGEXP);
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user