Update comment wrt setuptools not putting licenses in licenses/ directory

This commit is contained in:
Miro Hrončok 2025-04-11 19:23:18 +02:00
parent c1326723a9
commit 5e1a6e91f0

View File

@ -357,7 +357,7 @@ def classify_paths(
license_files = metadata.get_all('License-File') license_files = metadata.get_all('License-File')
license_directory = distinfo / 'licenses' # See PEP 639 "Root License Directory" license_directory = distinfo / 'licenses' # See PEP 639 "Root License Directory"
# setuptools was the first known build backend to implement License-File. # setuptools was the first known build backend to implement License-File.
# Unfortunately they don't put licenses to the license directory (yet): # Unfortunately they didn't put licenses to the license directory in setuptools<78:
# https://github.com/pypa/setuptools/issues/3596 # https://github.com/pypa/setuptools/issues/3596
# Hence, we check licenses in both licenses and dist-info # Hence, we check licenses in both licenses and dist-info
license_directories = (license_directory, distinfo) license_directories = (license_directory, distinfo)