Skip to content

Commit

Permalink
Include license file in the generated wheel package
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jdufresne committed Nov 12, 2018
1 parent 2ef9c88 commit adf5680
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changelog/1083.misc.rst
@@ -0,0 +1 @@
Include the license file in the wheel distribution - by :user:`jdufresne`.
3 changes: 3 additions & 0 deletions setup.cfg
@@ -1,2 +1,5 @@
[bdist_wheel]
universal = 1

[metadata]
license_file = LICENSE

0 comments on commit adf5680

Please sign in to comment.