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/index.html#including-the-license-in-the-generated-wheel-file

Helps project comply with its own license:

> Redistributions in binary form must reproduce the above copyright
> notice, this list of conditions and the following disclaimer in the
> documentation and/or other materials provided with the distribution.

Additionally, rename [wheel] section to [bdist_wheel] as the former is
legacy. For additional details, see:

https://github.com/pypa/wheel/blob/3dc261abc98a5e43bc7fcf5783d080aaf8f9f0cf/wheel/bdist_wheel.py#L127-L133

http://pythonwheels.com/
  • Loading branch information
jdufresne authored and waylan committed Sep 18, 2018
1 parent 592e085 commit a2d4241
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.cfg
@@ -1,2 +1,5 @@
[wheel]
[bdist_wheel]
universal = 1

[metadata]
license_file = LICENSE

0 comments on commit a2d4241

Please sign in to comment.