Skip to content

Commit 4dcc031

Browse files
microeehovland
authored andcommitted
Include LICENSE in package.
Use the keyword argument data_files in the setup function in setup.py to include the LICENSE file in the resulting package. This is very helpful for including the LICENSE file in a conda package.
1 parent b3b6497 commit 4dcc031

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def getVersion():
1717
],
1818
url='https://github.com/ribozz/sphinx-argparse',
1919
license='MIT',
20+
data_files=[("", ["LICENSE"])],
2021
author='Aleksandr Rudakov and Devon Ryan',
2122
author_email='ribozz@gmail.com',
2223
description='A sphinx extension that automatically documents argparse commands and options',

0 commit comments

Comments
 (0)