We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d60848 commit 06faa0bCopy full SHA for 06faa0b
flit_core/flit_core/config.py
@@ -765,6 +765,10 @@ def normalize_license_expr(s: str):
765
try:
766
info = licenses[ls]
767
except KeyError:
768
+ if os.environ.get('FLIT_ALLOW_INVALID'):
769
+ log.warning("Invalid license ID {!r} allowed by FLIT_ALLOW_INVALID"
770
+ .format(s))
771
+ return s
772
raise ConfigError(f"{s!r} is not a recognised SPDX license ID")
773
774
return info['id'] + ('+' if or_later else '')
0 commit comments