We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 790e456 commit 9bd1477Copy full SHA for 9bd1477
flit_core/flit_core/config.py
@@ -868,6 +868,9 @@ def normalise_compound_license_expr(s: str) -> str:
868
raise ConfigError(invalid_msg.format(s=s, reason=reason))
869
parts.append(part)
870
else:
871
+ if parts and parts[-1] not in {' AND ', ' OR ', '('}:
872
+ reason = "a license ID must follow a license expression operator or '('"
873
+ raise ConfigError(invalid_msg.format(s=s, reason=reason))
874
simple_expr = normalise_simple_license_expr(part)
875
parts.append(simple_expr)
876
0 commit comments