summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2017-10-15 17:06:42 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2017-10-16 17:48:48 -0700
commit5f3f9a1198011f6bede70b907829cb61e05d18ec (patch)
tree0e01157bc45f6c06d42cfcf906c0aacbf4d431f6
parentca049ad958f89de4f4f01d7b1015d707ff750a18 (diff)
downloadpep8-5f3f9a1198011f6bede70b907829cb61e05d18ec.tar.gz
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
-rw-r--r--MANIFEST.in1
-rw-r--r--setup.cfg3
2 files changed, 4 insertions, 0 deletions
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