We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f8482a commit b9e7333Copy full SHA for b9e7333
flit_core/flit_core/config.py
@@ -603,12 +603,12 @@ def read_pep621_metadata(proj, path) -> LoadedConfig:
603
raise ConfigError(
604
"[project.license] should specify file or text, not both"
605
)
606
- license_f = license_tbl['file']
+ license_f = osp.normpath(license_tbl['file'])
607
if isabs_ish(license_f):
608
609
f"License file path ({license_f}) cannot be an absolute path"
610
611
- if ".." in license_f:
+ if license_f.startswith('..' + os.sep):
612
613
f"License file path ({license_f}) cannot contain '..'"
614
0 commit comments