Feature Request
There are a handful of files that need to be added to builds result, for legal reasons.
This affects wheel and sdist builds.
The related files MUST be added to the package. the files MUST NOT install on the host system.
well-known legal files are:
LICENCE/LICENSE - obviously
NOTICE - some license texts, like Apache-2.0, explicitly state this exact file (name) as a optional source of custom license addendum
COPYING - obviously
AUTHORS - obviously
read also: https://wheel.readthedocs.io/en/stable/user_guide.html?#including-license-files-in-the-generated-wheel-file
They describe this already, and they also allow arbitrary file suffixes.
desired behavior
- all the well-known legal files are detected automatically, and are added to be build result.
- possibly arbitrary file suffixes are allowed
- added to
sdist root
- added to
wheel's .dist-info directory
- the bundled legal files are not "installed" during installation. they are not deflated into the
site-packages
current behavior
with poetry 1.6.1:
LICENSE is detected
NOTICE is not detected
COPYING is detected for wheel only
AUTHORS is not detected
tried to add the needed files manually with include.
This will also cause the files to be installed into site-packages, which MUST NOT happen.
found a feature request to have the list of legal_files configurable, which made it never to public.
But this issue is not about configuration but about auto-detect, one like other packaging systems have.
Feature Request
There are a handful of files that need to be added to builds result, for legal reasons.
This affects
wheelandsdistbuilds.The related files MUST be added to the package. the files MUST NOT install on the host system.
well-known legal files are:
LICENCE/LICENSE- obviouslyNOTICE- some license texts, like Apache-2.0, explicitly state this exact file (name) as a optional source of custom license addendumCOPYING- obviouslyAUTHORS- obviouslyread also: https://wheel.readthedocs.io/en/stable/user_guide.html?#including-license-files-in-the-generated-wheel-file
They describe this already, and they also allow arbitrary file suffixes.
desired behavior
sdistrootwheel's.dist-infodirectorysite-packagescurrent behavior
with poetry 1.6.1:
LICENSEis detectedNOTICEis not detectedCOPYINGis detected forwheelonlyAUTHORSis not detectedtried to add the needed files manually with
include.This will also cause the files to be installed into
site-packages, which MUST NOT happen.found a feature request to have the list of
legal_filesconfigurable, which made it never to public.But this issue is not about configuration but about auto-detect, one like other packaging systems have.