Skip to content

Commit 5f3f9a1

Browse files
committed
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
1 parent ca049ad commit 5f3f9a1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
include *.txt
22
include *.rst
3+
include LICENSE
34
recursive-include docs *
45
recursive-include testsuite *
56
recursive-exclude docs *.pyc

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
[bdist_wheel]
22
universal = 1
33

4+
[metadata]
5+
license_file = LICENSE
6+
47
[pycodestyle]
58
select =
69
ignore = E226,E24

0 commit comments

Comments
 (0)