summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-11-12 10:14:25 -0800
committerBernát Gábor <gaborjbernat@gmail.com>2018-11-12 18:14:25 +0000
commit1e8fa7ba9d88aefb1888cc0a951a252f7098f311 (patch)
treeb6edc8381e6854f3bade3801d4662b76e826a357
parent2ef9c88b44d7ed75090c13e246958139ce1ca989 (diff)
downloadtox-git-1e8fa7ba9d88aefb1888cc0a951a252f7098f311.tar.gz
Include license file in the generated wheel package (#1083)
The wheel package format supports including the license file. This is done using the [metadata] section in the setup.cfg file. For additional information on this feature, see: https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file Helps project comply with its own license. > The above copyright notice and this permission notice shall be > included in all copies or substantial portions of the Software.
-rw-r--r--docs/changelog/1083.misc.rst1
-rw-r--r--setup.cfg3
2 files changed, 4 insertions, 0 deletions
diff --git a/docs/changelog/1083.misc.rst b/docs/changelog/1083.misc.rst
new file mode 100644
index 00000000..9cf6c661
--- /dev/null
+++ b/docs/changelog/1083.misc.rst
@@ -0,0 +1 @@
+Include the license file in the wheel distribution - by :user:`jdufresne`.
diff --git a/setup.cfg b/setup.cfg
index 2a9acf13..ed8a958e 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,2 +1,5 @@
[bdist_wheel]
universal = 1
+
+[metadata]
+license_file = LICENSE