From 531dbbf86bb1e1ef716b6439df867a27117f4bf3 Mon Sep 17 00:00:00 2001 From: Thomas Sibley Date: Fri, 12 Feb 2021 14:55:34 -0800 Subject: [PATCH] Include LICENSE.txt in distribution artifacts with MANIFEST.in not data_files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit data_files are installed immediately under the Python installation root (sys.prefix), e.g. /usr/local or ~/.conda/envs/…/, which is just rude. It's also causing permission issues that otherwise wouldn't happen on the macOS CI I'm setting up for Nextstrain CLI. --- MANIFEST.in | 1 + setup.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 000000000..42eb4101e --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include LICENSE.txt diff --git a/setup.py b/setup.py index 98829222f..ee1f0a6fa 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,6 @@ }, packages = setuptools.find_packages(), package_data = {'augur': ['data/*']}, - data_files = [("", ["LICENSE.txt"])], python_requires = '>={}'.format('.'.join(str(n) for n in min_version)), install_requires = [ "bcbio-gff >=0.6.0, ==0.6.*",