When building an SDist via pipx run build, flit doesn't include LICENSE* files, so when building the wheel also via pipx run build, there are no licenses files unless there is a license = {files = ...} key (and then only one file is allowed). However, when directly building the wheel, using pipx run build --wheel without going through an SDist first, then LICENSE* is included, see
|
for path in sorted(self.directory.glob(base + '*')): |
.
#540 is slightly related. Noticed when trying to setup packaging on Flit in pypa/packaging#340 (comment) .
When building an SDist via
pipx run build, flit doesn't includeLICENSE*files, so when building the wheel also viapipx run build, there are no licenses files unless there is alicense = {files = ...}key (and then only one file is allowed). However, when directly building the wheel, usingpipx run build --wheelwithout going through an SDist first, thenLICENSE*is included, seeflit/flit_core/flit_core/wheel.py
Line 185 in 048c87c
#540 is slightly related. Noticed when trying to setup
packagingon Flit in pypa/packaging#340 (comment) .