From 834692417a8d3c91f3ac5a03142754a6df643d25 Mon Sep 17 00:00:00 2001 From: Shawn Hartsock Date: Mon, 25 Aug 2014 15:23:23 -0400 Subject: [PATCH] Improve sdist and bdist packaging * Include tests in sdist * Include license and notices in all distributions * Update manifest * Use more conventional file names for licenses, notices, etc. related to https://github.com/vmware/pyvmomi/issues/133 related to https://github.com/vmware/pyvmomi/issues/123 closes: https://github.com/vmware/pyvmomi/issues/139 --- License.txt => LICENSE.txt | 0 MANIFEST.in | 7 ++++--- Notice.txt => NOTICE.txt | 0 setup.py | 2 ++ 4 files changed, 6 insertions(+), 3 deletions(-) rename License.txt => LICENSE.txt (100%) rename Notice.txt => NOTICE.txt (100%) diff --git a/License.txt b/LICENSE.txt similarity index 100% rename from License.txt rename to LICENSE.txt diff --git a/MANIFEST.in b/MANIFEST.in index 29da0a037..ed784d246 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,5 @@ -include README.md -include requirements.txt -include test-requirements.txt +include README.* +include *.txt +include setup.py +recursive-include tests * recursive-include sample * diff --git a/Notice.txt b/NOTICE.txt similarity index 100% rename from Notice.txt rename to NOTICE.txt diff --git a/setup.py b/setup.py index b63f564aa..507da1684 100644 --- a/setup.py +++ b/setup.py @@ -36,6 +36,8 @@ def read(fname): packages=['pyVmomi', 'pyVim'], install_requires=required, license='License :: OSI Approved :: Apache Software License', + data_files = [("", ["LICENSE.txt", "NOTICE.txt", "MANIFEST.in", + "setup.py"])], # NOTE: pypi prefers the use of RST to render docs long_description=read('README.rst'), classifiers=[