From 2f153af513934e98f35e81ce8c490628e2686586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=BE=D0=BC=D0=B0=D0=BD=20=D0=94=D0=BE=D0=BD=D1=87?= =?UTF-8?q?=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Tue, 21 Mar 2023 18:06:05 +0300 Subject: [PATCH] Include `AUTHORS.txt` in pip's wheels Wheels already include `LICENSE.txt`, which refers to `AUTHORS.txt`, so `AUTHORS.txt` should be included too. Conveniently, both `LICENSE.txt` and `AUTHORS.txt` are included by setuptools by default, so all we need is to remove the manual `license_file` setting. This also fixes a build-time warning, since `license_file` is deprecated in favor of `license_files`. --- news/11882.bugfix.rst | 1 + setup.cfg | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) create mode 100644 news/11882.bugfix.rst diff --git a/news/11882.bugfix.rst b/news/11882.bugfix.rst new file mode 100644 index 00000000000..5373487b188 --- /dev/null +++ b/news/11882.bugfix.rst @@ -0,0 +1 @@ +Include ``AUTHORS.txt`` in pip's wheels. diff --git a/setup.cfg b/setup.cfg index ce6662d898d..2e35be30dd6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -111,6 +111,3 @@ exclude_lines = pragma: no cover # This excludes typing-specific code, which will be validated by mypy anyway. if TYPE_CHECKING - -[metadata] -license_file = LICENSE.txt