From 5f3f9a1198011f6bede70b907829cb61e05d18ec Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 15 Oct 2017 17:06:42 -0700 Subject: Include license file in the generated packages Use MANIFEST.in to include LICENSE in the source distribution. 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/index.html#including-the-license-in-the-generated-wheel-file --- MANIFEST.in | 1 + setup.cfg | 3 +++ 2 files changed, 4 insertions(+) diff --git a/MANIFEST.in b/MANIFEST.in index 4532c06..fb8bc97 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,6 @@ include *.txt include *.rst +include LICENSE recursive-include docs * recursive-include testsuite * recursive-exclude docs *.pyc diff --git a/setup.cfg b/setup.cfg index fcc079a..91ea674 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,9 @@ [bdist_wheel] universal = 1 +[metadata] +license_file = LICENSE + [pycodestyle] select = ignore = E226,E24 -- cgit v1.2.1