From 4dcc03185585d12b055fda2bbd50369125a2aed2 Mon Sep 17 00:00:00 2001 From: Erik Hovland Date: Fri, 30 Oct 2020 12:31:35 -0700 Subject: [PATCH] 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. --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 0e2e305..ed2d2df 100644 --- a/setup.py +++ b/setup.py @@ -17,6 +17,7 @@ def getVersion(): ], url='https://github.com/ribozz/sphinx-argparse', license='MIT', + data_files=[("", ["LICENSE"])], author='Aleksandr Rudakov and Devon Ryan', author_email='ribozz@gmail.com', description='A sphinx extension that automatically documents argparse commands and options',