我正在使用
python setup.py bdist_wheel
基本上是 setuptools
库。
我的项目在存储库的根目录中包含 LICENSE.txt
文件。
在轮子中正确包含这个特定的许可文件
setup(
...,
license_files='LICENSE.txt',
...
)
warning: Failed to find the configured license file 'L'
warning: Failed to find the configured license file 'C'
warning: Failed to find the configured license file 'N'
warning: Failed to find the configured license file 't
答案 0 :(得分:0)
https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html#metadata
Setuptools 官方文档声明 license_file
的数据类型为“str”,license_files
为列表逗号
license_file
与 str
结合使用setup(
...,
license_file='LICENSE.txt',
...
)
license_files
与逗号分隔的列表一起使用setup(
...,
license_file=LICENSE.txt,
...
)
license_files
的解决方案 2b setup.cfg我创建了一个新文件 setup.cfg
并升级了我的 setuptools 以允许它从 setup.cfg 中获取元数据
[metadata]
license_files = <name-of-license-file>